diff options
author | Manolo Carrasco <manolo@apache.org> | 2012-01-04 18:22:21 +0000 |
---|---|---|
committer | Manolo Carrasco <manolo@apache.org> | 2012-01-04 18:22:21 +0000 |
commit | 1c0cf16293c3b7d295b0fce2de8ae33ce65f35dc (patch) | |
tree | 6a4d60adb1a235ec320ff53591cb4ed3effb63ee /archetype | |
parent | 0c21f92320e42c7a47f1aec6b6efb5630857a3d9 (diff) | |
download | gwtquery-1c0cf16293c3b7d295b0fce2de8ae33ce65f35dc.tar.gz gwtquery-1c0cf16293c3b7d295b0fce2de8ae33ce65f35dc.zip |
Add eclipse classpath entries and fix maven eclipse: tasks
Diffstat (limited to 'archetype')
-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 -->
|