diff options
-rw-r--r-- | archetype/src/main/resources/archetype-resources/README.txt | 6 | ||||
-rw-r--r-- | archetype/src/main/resources/archetype-resources/pom.xml | 16 |
2 files changed, 21 insertions, 1 deletions
diff --git a/archetype/src/main/resources/archetype-resources/README.txt b/archetype/src/main/resources/archetype-resources/README.txt index 1a51f9e5..52c178a6 100644 --- a/archetype/src/main/resources/archetype-resources/README.txt +++ b/archetype/src/main/resources/archetype-resources/README.txt @@ -24,3 +24,9 @@ $ mvn gwt:run * Right click on the project -> Run as -> Web Application * Right click on the test class -> Run as -> GWT JUnit Test + +- Although the project has the files .classpath and .project, you could generate them running any + of the following commands: + +$ mvn eclipse:m2eclipse (if you like to use m2eclipse) +$ mvn eclipse:eclipse (to use the project without m2eclipse) diff --git a/archetype/src/main/resources/archetype-resources/pom.xml b/archetype/src/main/resources/archetype-resources/pom.xml index a079e6ff..6a8fd8d4 100644 --- a/archetype/src/main/resources/archetype-resources/pom.xml +++ b/archetype/src/main/resources/archetype-resources/pom.xml @@ -91,6 +91,15 @@ <build>
<plugins>
<plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <version>2.1</version>
+ <configuration>
+ <source>1.6</source>
+ <target>1.6</target>
+ </configuration>
+ </plugin>
+ <plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>gwt-maven-plugin</artifactId>
<version>${gwtmaven}</version>
@@ -137,7 +146,7 @@ <plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-eclipse-plugin</artifactId>
- <version>2.8</version>
+ <version>2.7</version>
<configuration>
<downloadSources>true</downloadSources>
<downloadJavadocs>false</downloadJavadocs>
@@ -152,6 +161,11 @@ <projectnature>org.eclipse.jdt.core.javanature</projectnature>
<projectnature>org.eclipse.wst.common.modulecore.ModuleCoreNature</projectnature>
</additionalProjectnatures>
+ <classpathContainers>
+ <classpathContainer>com.google.gwt.eclipse.core.GWT_CONTAINER</classpathContainer>
+ <classpathContainer>org.eclipse.jdt.launching.JRE_CONTAINER</classpathContainer>
+ <classpathContainer>org.eclipse.jdt.junit.JUNIT_CONTAINER/3</classpathContainer>
+ </classpathContainers>
</configuration>
</plugin>
<!-- GWT plugin does not copy the webapp folder in hosted mode -->
|