vraptor-scaffold 1.1.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis.yml +7 -0
- data/CHANGELOG.rdoc +164 -0
- data/Gemfile.lock +5 -8
- data/README.textile +20 -7
- data/bin/vraptor +1 -1
- data/index.sample.html +169 -0
- data/lib/vraptor-scaffold.rb +10 -29
- data/lib/vraptor-scaffold/configuration.rb +27 -4
- data/lib/vraptor-scaffold/execution.rb +24 -0
- data/lib/vraptor-scaffold/generators/app/app_generator.rb +196 -0
- data/lib/vraptor-scaffold/generators/{app_generator → app}/dependency.rb +0 -0
- data/lib/vraptor-scaffold/generators/app/dependency_manager.rb +53 -0
- data/lib/vraptor-scaffold/generators/{app_generator → app}/freemarker_template_engine.rb +0 -0
- data/lib/vraptor-scaffold/generators/{app_generator → app}/jsp_template_engine.rb +0 -0
- data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/build.gradle.erb +19 -1
- data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/build.properties.erb +0 -0
- data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/build.xml +6 -2
- data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/decorators.erb +0 -0
- data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/eclipse/classpath.erb +0 -5
- data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/eclipse/project.erb +0 -0
- data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/eclipse/settings/org.eclipse.jdt.core.prefs +0 -0
- data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/eclipse/settings/org.eclipse.wst.common.component.tt +0 -0
- data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/eclipse/settings/org.eclipse.wst.common.project.facet.core.xml +0 -0
- data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/eclipse/settings/org.eclipse.wst.jsdt.ui.superType.container +0 -0
- data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/eclipse/settings/org.eclipse.wst.jsdt.ui.superType.name +0 -0
- data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/freemarker/freemarker-web.xml +0 -0
- data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/freemarker/infrastructure/FreemarkerPathResolver.java.tt +0 -0
- data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/freemarker/macros/html.ftl +0 -0
- data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/freemarker/main.ftl +0 -0
- data/lib/vraptor-scaffold/generators/app/templates/heroku/Main.java +21 -0
- data/lib/vraptor-scaffold/generators/app/templates/heroku/Procfile +1 -0
- data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/ivy-2.2.0.jar +0 -0
- data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/ivy.erb +1 -1
- data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/jsp/jsp-web.xml +0 -0
- data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/jsp/main.jsp +2 -2
- data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/jsp/prelude.jspf +0 -0
- data/lib/vraptor-scaffold/generators/{app_generator/templates/src/models/Entity.java.tt → app/templates/models/Entity.erb} +1 -1
- data/lib/vraptor-scaffold/generators/app/templates/orm/Repository-hibernate.java.tt +50 -0
- data/lib/vraptor-scaffold/generators/{app_generator/templates/src/repositories/Repository.java.tt → app/templates/orm/Repository-jpa.java.tt} +3 -3
- data/lib/vraptor-scaffold/generators/app/templates/orm/hibernate.cfg.xml +7 -0
- data/lib/vraptor-scaffold/generators/app/templates/orm/persistence.xml +10 -0
- data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/pom.erb +29 -13
- data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/resources-test/.empty_directory +0 -0
- data/lib/vraptor-scaffold/generators/app/templates/resources/hibernate.properties +16 -0
- data/lib/vraptor-scaffold/generators/app/templates/resources/log4j.properties +4 -0
- data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/resources/messages.properties +0 -0
- data/lib/vraptor-scaffold/generators/app/templates/vraptor-scaffold.erb +7 -0
- data/lib/vraptor-scaffold/generators/{app_generator/templates/webapp/WEB-INF/web.xml → app/templates/webapp/WEB-INF/web.xml.tt} +2 -2
- data/lib/vraptor-scaffold/generators/{app_generator/templates/src-test/controllers → app/templates/webapp/images}/.empty_directory +0 -0
- data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/webapp/index.jsp +0 -0
- data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/webapp/stylesheets/common.css +0 -0
- data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/webapp/stylesheets/scaffold.css +0 -0
- data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/webapp/stylesheets/stylesheets.css +0 -0
- data/lib/vraptor-scaffold/generators/plugin/plugin_generator.rb +42 -0
- data/lib/vraptor-scaffold/generators/plugin/vraptor_gem.rb +36 -0
- data/lib/vraptor-scaffold/generators/{scaffold_generator → scaffold}/attribute.rb +1 -1
- data/lib/vraptor-scaffold/generators/{scaffold_generator → scaffold}/base_scaffold.rb +6 -2
- data/lib/vraptor-scaffold/generators/{scaffold_generator → scaffold}/controller_generator/controller_generator.rb +3 -3
- data/lib/vraptor-scaffold/generators/{scaffold_generator → scaffold}/controller_generator/templates/controller.erb +3 -3
- data/lib/vraptor-scaffold/generators/{scaffold_generator → scaffold}/controller_generator/templates/controller_test.erb +1 -1
- data/lib/vraptor-scaffold/generators/scaffold/model_generator/model_generator.rb +20 -0
- data/lib/vraptor-scaffold/generators/{scaffold_generator → scaffold}/model_generator/templates/model.erb +3 -3
- data/lib/vraptor-scaffold/generators/{scaffold_generator → scaffold}/model_generator/templates/model_test.erb +1 -1
- data/lib/vraptor-scaffold/generators/scaffold/repository_generator/repository_generator.rb +27 -0
- data/lib/vraptor-scaffold/generators/{scaffold_generator → scaffold}/repository_generator/templates/repository.erb +3 -3
- data/lib/vraptor-scaffold/generators/scaffold/repository_generator/templates/repository_impl.erb +16 -0
- data/lib/vraptor-scaffold/generators/{scaffold_generator → scaffold}/repository_generator/templates/repository_test.erb +1 -1
- data/lib/vraptor-scaffold/generators/{scaffold_generator → scaffold}/scaffold_generator.rb +0 -0
- data/lib/vraptor-scaffold/generators/scaffold/template_engine_generator/freemarker_generator/freemarker_generator.rb +18 -0
- data/lib/vraptor-scaffold/generators/{scaffold_generator → scaffold/template_engine_generator}/freemarker_generator/templates/edit.erb +0 -0
- data/lib/vraptor-scaffold/generators/{scaffold_generator → scaffold/template_engine_generator}/freemarker_generator/templates/form.erb +4 -4
- data/lib/vraptor-scaffold/generators/scaffold/template_engine_generator/freemarker_generator/templates/index.erb +36 -0
- data/lib/vraptor-scaffold/generators/{scaffold_generator → scaffold/template_engine_generator}/freemarker_generator/templates/new.erb +0 -0
- data/lib/vraptor-scaffold/generators/scaffold/template_engine_generator/freemarker_generator/templates/show.erb +14 -0
- data/lib/vraptor-scaffold/generators/scaffold/template_engine_generator/jsp_generator/jsp_generator.rb +18 -0
- data/lib/vraptor-scaffold/generators/{scaffold_generator → scaffold/template_engine_generator}/jsp_generator/templates/edit.erb +0 -0
- data/lib/vraptor-scaffold/generators/{scaffold_generator → scaffold/template_engine_generator}/jsp_generator/templates/form.erb +4 -4
- data/lib/vraptor-scaffold/generators/{scaffold_generator → scaffold/template_engine_generator}/jsp_generator/templates/index.erb +6 -6
- data/lib/vraptor-scaffold/generators/{scaffold_generator → scaffold/template_engine_generator}/jsp_generator/templates/new.erb +0 -0
- data/lib/vraptor-scaffold/generators/scaffold/template_engine_generator/jsp_generator/templates/show.erb +14 -0
- data/lib/vraptor-scaffold/generators/scaffold/template_engine_generator/template_engine_generator.rb +21 -0
- data/lib/vraptor-scaffold/load_paths.rb +13 -21
- data/lib/vraptor-scaffold/runner.rb +11 -0
- data/lib/vraptor-scaffold/runner/commands_help.rb +13 -0
- data/lib/vraptor-scaffold/runner/configure.rb +21 -0
- data/lib/vraptor-scaffold/runner/generator.rb +15 -0
- data/lib/vraptor-scaffold/runner/help.rb +12 -0
- data/lib/vraptor-scaffold/runner/plugin.rb +19 -0
- data/lib/vraptor-scaffold/runner/scaffold.rb +16 -0
- data/lib/vraptor-scaffold/version.rb +1 -1
- data/spec/resources/vraptor-scaffold.properties +5 -0
- data/spec/simple_custom_plugin.rb +10 -0
- data/spec/spec_helper.rb +5 -6
- data/spec/vraptor-scaffold/configuration_spec.rb +88 -4
- data/spec/vraptor-scaffold/execution_spec.rb +47 -0
- data/spec/vraptor-scaffold/generators/{app_generator → app}/app_generator_spec.rb +136 -54
- data/spec/vraptor-scaffold/generators/{app_generator → app}/dependency_manager_spec.rb +1 -1
- data/spec/vraptor-scaffold/generators/{app_generator → app}/dependency_spec.rb +0 -0
- data/spec/vraptor-scaffold/generators/{app_generator → app}/freemarker_template_engine_spec.rb +1 -1
- data/spec/vraptor-scaffold/generators/{app_generator → app}/jsp_template_engine_spec.rb +0 -0
- data/spec/vraptor-scaffold/generators/{app_generator → app}/templates/Entity.java +1 -1
- data/spec/vraptor-scaffold/generators/{app_generator → app}/templates/FreemarkerPathResolver.java +0 -0
- data/spec/vraptor-scaffold/generators/{app_generator → app}/templates/Repository.java +3 -3
- data/spec/vraptor-scaffold/generators/{app_generator → app}/templates/build.gradle +24 -5
- data/spec/vraptor-scaffold/generators/{app_generator → app}/templates/build.properties +0 -0
- data/spec/vraptor-scaffold/generators/{app_generator → app}/templates/decorators-jsp.xml +0 -0
- data/spec/vraptor-scaffold/generators/{app_generator → app}/templates/decorators.xml +0 -0
- data/spec/vraptor-scaffold/generators/{app_generator → app}/templates/freemarker-web.xml +2 -2
- data/spec/vraptor-scaffold/generators/{app_generator → app}/templates/ivy.xml +6 -5
- data/spec/vraptor-scaffold/generators/{app_generator → app}/templates/jsp-web.xml +1 -1
- data/spec/vraptor-scaffold/generators/app/templates/pom-heroku.xml +168 -0
- data/spec/vraptor-scaffold/generators/{app_generator → app}/templates/pom.xml +11 -14
- data/spec/vraptor-scaffold/generators/app/templates/vraptor-scaffold.properties +7 -0
- data/spec/vraptor-scaffold/generators/plugin/expected_configs/build.gradle +61 -0
- data/spec/vraptor-scaffold/generators/plugin/expected_configs/default_org_build.gradle +61 -0
- data/spec/vraptor-scaffold/generators/plugin/expected_configs/default_org_ivy.xml +40 -0
- data/spec/vraptor-scaffold/generators/plugin/expected_configs/default_org_pom.xml +147 -0
- data/spec/vraptor-scaffold/generators/plugin/expected_configs/ivy.xml +40 -0
- data/spec/vraptor-scaffold/generators/plugin/expected_configs/pom.xml +147 -0
- data/spec/vraptor-scaffold/generators/plugin/plugin_generator_spec.rb +130 -0
- data/spec/vraptor-scaffold/generators/{scaffold_generator → scaffold}/attribute_spec.rb +13 -9
- data/spec/vraptor-scaffold/generators/scaffold/base_scaffold_spec.rb +73 -0
- data/spec/vraptor-scaffold/generators/{scaffold_generator → scaffold}/controller_generator/controller_generator_spec.rb +18 -9
- data/spec/vraptor-scaffold/generators/{scaffold_generator → scaffold}/controller_generator/templates/ProductController.java +3 -3
- data/spec/vraptor-scaffold/generators/scaffold/freemarker_generator/freemarker_generator_spec.rb +74 -0
- data/spec/vraptor-scaffold/generators/scaffold/jsp_generator/jsp_generator_spec.rb +75 -0
- data/spec/vraptor-scaffold/generators/scaffold/model_generator/model_generator_spec.rb +50 -0
- data/spec/vraptor-scaffold/generators/{scaffold_generator → scaffold}/model_generator/templates/Product.java +6 -6
- data/spec/vraptor-scaffold/generators/scaffold/model_generator/templates/hibernate.cfg.xml +8 -0
- data/spec/vraptor-scaffold/generators/scaffold/repository_generator/repository_generator_spec.rb +60 -0
- data/spec/vraptor-scaffold/generators/scaffold/repository_generator/templates/ClientRepository.java +22 -0
- data/spec/vraptor-scaffold/generators/scaffold/repository_generator/templates/ClientRepositoryImpl.java +16 -0
- data/spec/vraptor-scaffold/generators/{scaffold_generator → scaffold}/repository_generator/templates/ProductRepository.java +3 -3
- data/spec/vraptor-scaffold/generators/{scaffold_generator → scaffold}/repository_generator/templates/ProductRepositoryImpl.java +3 -3
- data/spec/vraptor-scaffold/generators/{scaffold_generator → scaffold}/scaffold_generator_spec.rb +0 -0
- data/spec/vraptor-scaffold/runner/commands_help_spec.rb +12 -0
- data/spec/vraptor-scaffold/runner/configure_spec.rb +12 -0
- data/spec/vraptor-scaffold/runner/generator_spec.rb +31 -0
- data/spec/vraptor-scaffold/runner/help_spec.rb +29 -0
- data/spec/vraptor-scaffold/runner/plugin_spec.rb +45 -0
- data/spec/vraptor-scaffold/runner/scaffold_spec.rb +35 -0
- data/spec/vraptor-scaffold_spec.rb +1 -94
- data/vraptor-scaffold.gemspec +3 -3
- metadata +137 -140
- data/History.txt +0 -128
- data/lib/vraptor-scaffold/generators/app_generator/app_generator.rb +0 -102
- data/lib/vraptor-scaffold/generators/app_generator/dependency_manager.rb +0 -37
- data/lib/vraptor-scaffold/generators/app_generator/templates/ivysettings.xml +0 -9
- data/lib/vraptor-scaffold/generators/app_generator/templates/resources/META-INF/persistence.xml +0 -20
- data/lib/vraptor-scaffold/generators/app_generator/templates/resources/log4j.properties +0 -4
- data/lib/vraptor-scaffold/generators/app_generator/templates/src-test/models/.empty_directory +0 -0
- data/lib/vraptor-scaffold/generators/app_generator/templates/src-test/repositories/.empty_directory +0 -0
- data/lib/vraptor-scaffold/generators/app_generator/templates/src/controllers/.empty_directory +0 -0
- data/lib/vraptor-scaffold/generators/app_generator/templates/vraptor-scaffold.erb +0 -2
- data/lib/vraptor-scaffold/generators/app_generator/templates/webapp/images/.empty_directory +0 -0
- data/lib/vraptor-scaffold/generators/app_generator/templates/webapp/javascripts/application.js +0 -0
- data/lib/vraptor-scaffold/generators/app_generator/templates/webapp/javascripts/jquery.min.js +0 -16
- data/lib/vraptor-scaffold/generators/scaffold_generator/freemarker_generator/freemarker_generator.rb +0 -22
- data/lib/vraptor-scaffold/generators/scaffold_generator/freemarker_generator/templates/index.erb +0 -36
- data/lib/vraptor-scaffold/generators/scaffold_generator/freemarker_generator/templates/show.erb +0 -14
- data/lib/vraptor-scaffold/generators/scaffold_generator/jsp_generator/jsp_generator.rb +0 -22
- data/lib/vraptor-scaffold/generators/scaffold_generator/jsp_generator/templates/show.erb +0 -14
- data/lib/vraptor-scaffold/generators/scaffold_generator/model_generator/model_generator.rb +0 -11
- data/lib/vraptor-scaffold/generators/scaffold_generator/repository_generator/repository_generator.rb +0 -12
- data/lib/vraptor-scaffold/generators/scaffold_generator/repository_generator/templates/repository_impl.erb +0 -16
- data/spec/vraptor-scaffold/generators/scaffold_generator/base_scaffold_spec.rb +0 -41
- data/spec/vraptor-scaffold/generators/scaffold_generator/freemarker_generator/freemarker_generator_spec.rb +0 -36
- data/spec/vraptor-scaffold/generators/scaffold_generator/jsp_generator/jsp_generator_spec.rb +0 -34
- data/spec/vraptor-scaffold/generators/scaffold_generator/model_generator/model_generator_spec.rb +0 -25
- data/spec/vraptor-scaffold/generators/scaffold_generator/repository_generator/repository_generator_spec.rb +0 -31
@@ -12,7 +12,7 @@ describe DependencyManager do
|
|
12
12
|
context "compile scope" do
|
13
13
|
it "should include freemarker dependency when template is freemarker" do
|
14
14
|
options = {:template_engine => "ftl"}
|
15
|
-
Dependency.stub!(:new).with("org.freemarker", "freemarker", "2.3.
|
15
|
+
Dependency.stub!(:new).with("org.freemarker", "freemarker", "2.3.18").and_return(@dependency)
|
16
16
|
DependencyManager.new(options).compile_scope.include?(@dependency).should be_true
|
17
17
|
end
|
18
18
|
end
|
File without changes
|
data/spec/vraptor-scaffold/generators/{app_generator → app}/freemarker_template_engine_spec.rb
RENAMED
@@ -12,7 +12,7 @@ describe FreemarkerTemplateEngine do
|
|
12
12
|
|
13
13
|
context "configuring" do
|
14
14
|
before(:all) do
|
15
|
-
AppGenerator.new(@project_path, ["--template-engine=ftl", "-p=br.com.caelum"]).invoke_all
|
15
|
+
AppGenerator.new(@project_path, ["--template-engine=ftl", "-p=br.com.caelum", "--orm=hibernate"]).invoke_all
|
16
16
|
end
|
17
17
|
|
18
18
|
after(:all) do
|
File without changes
|
data/spec/vraptor-scaffold/generators/{app_generator → app}/templates/FreemarkerPathResolver.java
RENAMED
File without changes
|
@@ -1,4 +1,4 @@
|
|
1
|
-
package app.
|
1
|
+
package app.repository;
|
2
2
|
|
3
3
|
import java.io.Serializable;
|
4
4
|
import java.lang.reflect.ParameterizedType;
|
@@ -25,8 +25,8 @@ public abstract class Repository<T, I extends Serializable> {
|
|
25
25
|
entityManager.persist(entity);
|
26
26
|
}
|
27
27
|
|
28
|
-
public
|
29
|
-
entityManager.merge(entity);
|
28
|
+
public T update(T entity) {
|
29
|
+
return entityManager.merge(entity);
|
30
30
|
}
|
31
31
|
|
32
32
|
public void destroy(T entity) {
|
@@ -1,6 +1,5 @@
|
|
1
1
|
repositories {
|
2
2
|
mavenCentral()
|
3
|
-
mavenRepo urls: "https://repository.jboss.org/nexus/content/groups/public-jboss"
|
4
3
|
}
|
5
4
|
|
6
5
|
apply plugin: 'java'
|
@@ -13,6 +12,25 @@ sourceCompatibility = 1.6
|
|
13
12
|
targetCompatibility = 1.6
|
14
13
|
version = '1.0'
|
15
14
|
|
15
|
+
sourceSets {
|
16
|
+
main {
|
17
|
+
java {
|
18
|
+
srcDir 'src/main/java'
|
19
|
+
}
|
20
|
+
resources {
|
21
|
+
srcDir 'src/main/resources'
|
22
|
+
}
|
23
|
+
}
|
24
|
+
test {
|
25
|
+
java {
|
26
|
+
srcDir 'src/test/java'
|
27
|
+
}
|
28
|
+
resources {
|
29
|
+
srcDir 'src/test/resources'
|
30
|
+
}
|
31
|
+
}
|
32
|
+
}
|
33
|
+
|
16
34
|
sourceSets.main.classesDir = new File('src/main/webapp/WEB-INF/classes')
|
17
35
|
|
18
36
|
jettyRun.scanIntervalSeconds=3
|
@@ -22,12 +40,13 @@ jettyRun.contextPath = '/'
|
|
22
40
|
|
23
41
|
dependencies {
|
24
42
|
compile group: 'br.com.caelum', name: 'vraptor', version: '3.3.1'
|
25
|
-
compile group: 'org.hsqldb', name: 'hsqldb', version: '2.
|
43
|
+
compile group: 'org.hsqldb', name: 'hsqldb', version: '2.2.4'
|
26
44
|
compile group: 'opensymphony', name: 'sitemesh', version: '2.4.2'
|
27
45
|
compile group: 'javax.servlet', name: 'jstl', version: '1.2'
|
28
|
-
compile group: 'org.hibernate', name: 'hibernate-entitymanager', version: '3.6.
|
29
|
-
compile group: 'org.hibernate', name: 'hibernate-
|
30
|
-
compile group: '
|
46
|
+
compile group: 'org.hibernate', name: 'hibernate-entitymanager', version: '3.6.7.Final'
|
47
|
+
compile group: 'org.hibernate', name: 'hibernate-c3p0', version: '3.6.7.Final'
|
48
|
+
compile group: 'org.hibernate', name: 'hibernate-validator', version: '4.2.0.Final'
|
49
|
+
compile group: 'joda-time', name: 'joda-time', version: '2.0'
|
31
50
|
|
32
51
|
//Provided dependencies
|
33
52
|
providedCompile group: 'javax.servlet', name: 'servlet-api', version: '2.5'
|
File without changes
|
File without changes
|
File without changes
|
@@ -3,11 +3,11 @@
|
|
3
3
|
xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
|
4
4
|
id="WebApp_ID" version="2.5">
|
5
5
|
|
6
|
-
<display-name>vraptor-scaffold
|
6
|
+
<display-name>vraptor-scaffold</display-name>
|
7
7
|
|
8
8
|
<context-param>
|
9
9
|
<param-name>br.com.caelum.vraptor.packages</param-name>
|
10
|
-
<param-value>br.com.caelum.vraptor.util.
|
10
|
+
<param-value>br.com.caelum.vraptor.util.hibernate</param-value>
|
11
11
|
</context-param>
|
12
12
|
|
13
13
|
<context-param>
|
@@ -11,12 +11,13 @@
|
|
11
11
|
|
12
12
|
<dependencies>
|
13
13
|
<dependency org="br.com.caelum" name="vraptor" rev="3.3.1" conf="default" />
|
14
|
-
<dependency org="org.hsqldb" name="hsqldb" rev="2.
|
14
|
+
<dependency org="org.hsqldb" name="hsqldb" rev="2.2.4" conf="default" />
|
15
15
|
<dependency org="opensymphony" name="sitemesh" rev="2.4.2" conf="default" />
|
16
16
|
<dependency org="javax.servlet" name="jstl" rev="1.2" conf="default" />
|
17
|
-
<dependency org="org.hibernate" name="hibernate-entitymanager" rev="3.6.
|
18
|
-
<dependency org="org.hibernate" name="hibernate-
|
19
|
-
<dependency org="
|
17
|
+
<dependency org="org.hibernate" name="hibernate-entitymanager" rev="3.6.7.Final" conf="default" />
|
18
|
+
<dependency org="org.hibernate" name="hibernate-c3p0" rev="3.6.7.Final" conf="default" />
|
19
|
+
<dependency org="org.hibernate" name="hibernate-validator" rev="4.2.0.Final" conf="default" />
|
20
|
+
<dependency org="joda-time" name="joda-time" rev="2.0" conf="default" />
|
20
21
|
|
21
22
|
<!-- Provided dependencies -->
|
22
23
|
<dependency org="javax.servlet" name="servlet-api" rev="2.5" conf="provided->default" />
|
@@ -31,7 +32,7 @@
|
|
31
32
|
<dependency org="org.mortbay.jetty" name="jsp-api-2.1" rev="6.1.14" conf="jetty->default" />
|
32
33
|
<dependency org="org.mortbay.jetty" name="jsp-2.1" rev="6.1.14" conf="jetty->default" />
|
33
34
|
<dependency org="org.mortbay.jetty" name="jetty-ant" rev="6.1.14" conf="jetty->default" />
|
34
|
-
|
35
|
+
|
35
36
|
<!-- Minify dependencies -->
|
36
37
|
<dependency org="com.yahoo.platform.yui" name="yuicompressor" rev="2.3.6" conf="minify->default" />
|
37
38
|
</dependencies>
|
@@ -3,7 +3,7 @@
|
|
3
3
|
xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
|
4
4
|
id="WebApp_ID" version="2.5">
|
5
5
|
|
6
|
-
<display-name>vraptor-scaffold
|
6
|
+
<display-name>vraptor-scaffold</display-name>
|
7
7
|
|
8
8
|
<context-param>
|
9
9
|
<param-name>br.com.caelum.vraptor.packages</param-name>
|
@@ -0,0 +1,168 @@
|
|
1
|
+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
2
|
+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
3
|
+
<modelVersion>4.0.0</modelVersion>
|
4
|
+
<groupId>heroku</groupId>
|
5
|
+
<artifactId>heroku</artifactId>
|
6
|
+
<version>0.0.1-SNAPSHOT</version>
|
7
|
+
<name>heroku</name>
|
8
|
+
|
9
|
+
<properties>
|
10
|
+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
11
|
+
</properties>
|
12
|
+
|
13
|
+
<build>
|
14
|
+
<outputDirectory>${basedir}/src/main/webapp/WEB-INF/classes</outputDirectory>
|
15
|
+
<plugins>
|
16
|
+
<plugin>
|
17
|
+
<artifactId>maven-compiler-plugin</artifactId>
|
18
|
+
<version>2.3.2</version>
|
19
|
+
<configuration>
|
20
|
+
<source>1.6</source>
|
21
|
+
<target>1.6</target>
|
22
|
+
<encoding>UTF-8</encoding>
|
23
|
+
</configuration>
|
24
|
+
</plugin>
|
25
|
+
<plugin>
|
26
|
+
<artifactId>maven-eclipse-plugin</artifactId>
|
27
|
+
<version>2.8</version>
|
28
|
+
<configuration>
|
29
|
+
<downloadSources>true</downloadSources>
|
30
|
+
<downloadJavadocs>true</downloadJavadocs>
|
31
|
+
<wtpversion>2.0</wtpversion>
|
32
|
+
</configuration>
|
33
|
+
</plugin>
|
34
|
+
<plugin>
|
35
|
+
<groupId>org.apache.maven.plugins</groupId>
|
36
|
+
<artifactId>maven-war-plugin</artifactId>
|
37
|
+
<version>2.1.1</version>
|
38
|
+
</plugin>
|
39
|
+
<plugin>
|
40
|
+
<groupId>org.mortbay.jetty</groupId>
|
41
|
+
<artifactId>maven-jetty-plugin</artifactId>
|
42
|
+
<version>6.1.14</version>
|
43
|
+
<configuration>
|
44
|
+
<scanIntervalSeconds>3</scanIntervalSeconds>
|
45
|
+
<stopKey>foo</stopKey>
|
46
|
+
<stopPort>9999</stopPort>
|
47
|
+
<webAppConfig>
|
48
|
+
<contextPath>/</contextPath>
|
49
|
+
</webAppConfig>
|
50
|
+
</configuration>
|
51
|
+
</plugin>
|
52
|
+
<plugin>
|
53
|
+
<groupId>org.codehaus.mojo</groupId>
|
54
|
+
<artifactId>appassembler-maven-plugin</artifactId>
|
55
|
+
<version>1.1.1</version>
|
56
|
+
<executions>
|
57
|
+
<execution>
|
58
|
+
<phase>package</phase>
|
59
|
+
<goals>
|
60
|
+
<goal>assemble</goal>
|
61
|
+
</goals>
|
62
|
+
<configuration>
|
63
|
+
<assembleDirectory>target</assembleDirectory>
|
64
|
+
<generateRepository>false</generateRepository>
|
65
|
+
<extraJvmArguments>-Xmx512m</extraJvmArguments>
|
66
|
+
<programs>
|
67
|
+
<program>
|
68
|
+
<mainClass>Main</mainClass>
|
69
|
+
<name>webapp</name>
|
70
|
+
</program>
|
71
|
+
</programs>
|
72
|
+
</configuration>
|
73
|
+
</execution>
|
74
|
+
</executions>
|
75
|
+
</plugin>
|
76
|
+
</plugins>
|
77
|
+
</build>
|
78
|
+
|
79
|
+
<dependencies>
|
80
|
+
<dependency>
|
81
|
+
<groupId>br.com.caelum</groupId>
|
82
|
+
<artifactId>vraptor</artifactId>
|
83
|
+
<version>3.3.1</version>
|
84
|
+
</dependency>
|
85
|
+
<dependency>
|
86
|
+
<groupId>org.hsqldb</groupId>
|
87
|
+
<artifactId>hsqldb</artifactId>
|
88
|
+
<version>2.2.4</version>
|
89
|
+
</dependency>
|
90
|
+
<dependency>
|
91
|
+
<groupId>opensymphony</groupId>
|
92
|
+
<artifactId>sitemesh</artifactId>
|
93
|
+
<version>2.4.2</version>
|
94
|
+
</dependency>
|
95
|
+
<dependency>
|
96
|
+
<groupId>javax.servlet</groupId>
|
97
|
+
<artifactId>jstl</artifactId>
|
98
|
+
<version>1.2</version>
|
99
|
+
</dependency>
|
100
|
+
<dependency>
|
101
|
+
<groupId>org.hibernate</groupId>
|
102
|
+
<artifactId>hibernate-entitymanager</artifactId>
|
103
|
+
<version>3.6.7.Final</version>
|
104
|
+
</dependency>
|
105
|
+
<dependency>
|
106
|
+
<groupId>org.hibernate</groupId>
|
107
|
+
<artifactId>hibernate-c3p0</artifactId>
|
108
|
+
<version>3.6.7.Final</version>
|
109
|
+
</dependency>
|
110
|
+
<dependency>
|
111
|
+
<groupId>org.hibernate</groupId>
|
112
|
+
<artifactId>hibernate-validator</artifactId>
|
113
|
+
<version>4.2.0.Final</version>
|
114
|
+
</dependency>
|
115
|
+
<dependency>
|
116
|
+
<groupId>joda-time</groupId>
|
117
|
+
<artifactId>joda-time</artifactId>
|
118
|
+
<version>2.0</version>
|
119
|
+
</dependency>
|
120
|
+
<dependency>
|
121
|
+
<groupId>org.eclipse.jetty</groupId>
|
122
|
+
<artifactId>jetty-webapp</artifactId>
|
123
|
+
<version>7.4.4.v20110707</version>
|
124
|
+
</dependency>
|
125
|
+
<dependency>
|
126
|
+
<groupId>org.mortbay.jetty</groupId>
|
127
|
+
<artifactId>jsp-2.1-glassfish</artifactId>
|
128
|
+
<version>2.1.v20100127</version>
|
129
|
+
</dependency>
|
130
|
+
<dependency>
|
131
|
+
<groupId>javax.servlet</groupId>
|
132
|
+
<artifactId>servlet-api</artifactId>
|
133
|
+
<version>2.5</version>
|
134
|
+
</dependency>
|
135
|
+
|
136
|
+
<!-- Test dependencies -->
|
137
|
+
<dependency>
|
138
|
+
<groupId>junit</groupId>
|
139
|
+
<artifactId>junit</artifactId>
|
140
|
+
<version>4.8.2</version>
|
141
|
+
<scope>test</scope>
|
142
|
+
</dependency>
|
143
|
+
<dependency>
|
144
|
+
<groupId>org.hamcrest</groupId>
|
145
|
+
<artifactId>hamcrest-all</artifactId>
|
146
|
+
<version>1.1</version>
|
147
|
+
<scope>test</scope>
|
148
|
+
</dependency>
|
149
|
+
<dependency>
|
150
|
+
<groupId>org.mockito</groupId>
|
151
|
+
<artifactId>mockito-all</artifactId>
|
152
|
+
<version>1.8.5</version>
|
153
|
+
<scope>test</scope>
|
154
|
+
</dependency>
|
155
|
+
|
156
|
+
<!-- Provided dependencies -->
|
157
|
+
</dependencies>
|
158
|
+
|
159
|
+
<reporting>
|
160
|
+
<plugins>
|
161
|
+
<plugin>
|
162
|
+
<groupId>org.codehaus.mojo</groupId>
|
163
|
+
<artifactId>cobertura-maven-plugin</artifactId>
|
164
|
+
<version>2.5.1</version>
|
165
|
+
</plugin>
|
166
|
+
</plugins>
|
167
|
+
</reporting>
|
168
|
+
</project>
|
@@ -7,14 +7,6 @@
|
|
7
7
|
<version>0.0.1-SNAPSHOT</version>
|
8
8
|
<name>vraptor-scaffold</name>
|
9
9
|
|
10
|
-
<repositories>
|
11
|
-
<repository>
|
12
|
-
<id>JBoss</id>
|
13
|
-
<name>JBoss repository</name>
|
14
|
-
<url>https://repository.jboss.org/nexus/content/groups/public-jboss</url>
|
15
|
-
</repository>
|
16
|
-
</repositories>
|
17
|
-
|
18
10
|
<properties>
|
19
11
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
20
12
|
</properties>
|
@@ -43,7 +35,7 @@
|
|
43
35
|
<plugin>
|
44
36
|
<groupId>org.apache.maven.plugins</groupId>
|
45
37
|
<artifactId>maven-war-plugin</artifactId>
|
46
|
-
<version>2.1</version>
|
38
|
+
<version>2.1.1</version>
|
47
39
|
</plugin>
|
48
40
|
<plugin>
|
49
41
|
<groupId>org.mortbay.jetty</groupId>
|
@@ -70,7 +62,7 @@
|
|
70
62
|
<dependency>
|
71
63
|
<groupId>org.hsqldb</groupId>
|
72
64
|
<artifactId>hsqldb</artifactId>
|
73
|
-
<version>2.
|
65
|
+
<version>2.2.4</version>
|
74
66
|
</dependency>
|
75
67
|
<dependency>
|
76
68
|
<groupId>opensymphony</groupId>
|
@@ -85,17 +77,22 @@
|
|
85
77
|
<dependency>
|
86
78
|
<groupId>org.hibernate</groupId>
|
87
79
|
<artifactId>hibernate-entitymanager</artifactId>
|
88
|
-
<version>3.6.
|
80
|
+
<version>3.6.7.Final</version>
|
81
|
+
</dependency>
|
82
|
+
<dependency>
|
83
|
+
<groupId>org.hibernate</groupId>
|
84
|
+
<artifactId>hibernate-c3p0</artifactId>
|
85
|
+
<version>3.6.7.Final</version>
|
89
86
|
</dependency>
|
90
87
|
<dependency>
|
91
88
|
<groupId>org.hibernate</groupId>
|
92
89
|
<artifactId>hibernate-validator</artifactId>
|
93
|
-
<version>4.
|
90
|
+
<version>4.2.0.Final</version>
|
94
91
|
</dependency>
|
95
92
|
<dependency>
|
96
93
|
<groupId>joda-time</groupId>
|
97
94
|
<artifactId>joda-time</artifactId>
|
98
|
-
<version>
|
95
|
+
<version>2.0</version>
|
99
96
|
</dependency>
|
100
97
|
|
101
98
|
<!-- Test dependencies -->
|
@@ -138,7 +135,7 @@
|
|
138
135
|
<plugin>
|
139
136
|
<groupId>org.codehaus.mojo</groupId>
|
140
137
|
<artifactId>cobertura-maven-plugin</artifactId>
|
141
|
-
<version>2.
|
138
|
+
<version>2.5.1</version>
|
142
139
|
</plugin>
|
143
140
|
</plugins>
|
144
141
|
</reporting>
|
@@ -0,0 +1,61 @@
|
|
1
|
+
repositories {
|
2
|
+
mavenCentral()
|
3
|
+
}
|
4
|
+
|
5
|
+
apply plugin: 'java'
|
6
|
+
apply plugin: 'war'
|
7
|
+
apply plugin: 'jetty'
|
8
|
+
apply plugin: 'eclipse'
|
9
|
+
apply plugin: 'project-report'
|
10
|
+
|
11
|
+
sourceCompatibility = 1.6
|
12
|
+
targetCompatibility = 1.6
|
13
|
+
version = '1.0'
|
14
|
+
|
15
|
+
sourceSets {
|
16
|
+
main {
|
17
|
+
java {
|
18
|
+
srcDir 'src/main/java'
|
19
|
+
}
|
20
|
+
resources {
|
21
|
+
srcDir 'src/main/resources'
|
22
|
+
}
|
23
|
+
}
|
24
|
+
test {
|
25
|
+
java {
|
26
|
+
srcDir 'src/test/java'
|
27
|
+
}
|
28
|
+
resources {
|
29
|
+
srcDir 'src/test/resources'
|
30
|
+
}
|
31
|
+
}
|
32
|
+
}
|
33
|
+
|
34
|
+
sourceSets.main.classesDir = new File('src/main/webapp/WEB-INF/classes')
|
35
|
+
|
36
|
+
jettyRun.scanIntervalSeconds=3
|
37
|
+
jettyRun.contextPath = '/'
|
38
|
+
[jettyRunWar,jettyStop]*.stopPort = 8081
|
39
|
+
[jettyRunWar,jettyStop]*.stopKey = 'stopKey'
|
40
|
+
|
41
|
+
dependencies {
|
42
|
+
compile group: 'br.com.caelum.vraptor.plugin', name: 'vraptor-environment', version: '0.0.8'
|
43
|
+
|
44
|
+
compile group: 'br.com.caelum', name: 'vraptor', version: '3.3.1'
|
45
|
+
compile group: 'org.hsqldb', name: 'hsqldb', version: '2.2.4'
|
46
|
+
compile group: 'opensymphony', name: 'sitemesh', version: '2.4.2'
|
47
|
+
compile group: 'javax.servlet', name: 'jstl', version: '1.2'
|
48
|
+
compile group: 'org.hibernate', name: 'hibernate-entitymanager', version: '3.6.7.Final'
|
49
|
+
compile group: 'org.hibernate', name: 'hibernate-c3p0', version: '3.6.7.Final'
|
50
|
+
compile group: 'org.hibernate', name: 'hibernate-validator', version: '4.2.0.Final'
|
51
|
+
compile group: 'joda-time', name: 'joda-time', version: '2.0'
|
52
|
+
|
53
|
+
//Provided dependencies
|
54
|
+
providedCompile group: 'javax.servlet', name: 'servlet-api', version: '2.5'
|
55
|
+
providedCompile group: 'javax.servlet.jsp', name: 'jsp-api', version: '2.1'
|
56
|
+
|
57
|
+
//Test dependencies
|
58
|
+
testCompile group: 'junit', name: 'junit', version: '4.8.2'
|
59
|
+
testCompile group: 'org.hamcrest', name: 'hamcrest-all', version: '1.1'
|
60
|
+
testCompile group: 'org.mockito', name: 'mockito-all', version: '1.8.5'
|
61
|
+
}
|