]> source.dussan.org Git - gwtquery.git/commitdiff
Add eclipse classpath entries and fix maven eclipse: tasks
authorManolo Carrasco <manolo@apache.org>
Wed, 4 Jan 2012 18:22:21 +0000 (18:22 +0000)
committerManolo Carrasco <manolo@apache.org>
Wed, 4 Jan 2012 18:22:21 +0000 (18:22 +0000)
archetype/src/main/resources/archetype-resources/README.txt
archetype/src/main/resources/archetype-resources/pom.xml

index 1a51f9e546a7d5302b72871f412d7724179a0230..52c178a6457ccfe2573e0545d73185d53f2d844e 100644 (file)
@@ -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)
index a079e6fff6c1eb2c8258b359346b73aff585a145..6a8fd8d4edef512d7a7a5b2d80cffaf3077acc44 100644 (file)
     </dependencies>\r
     <build>\r
         <plugins>\r
+            <plugin>\r
+              <groupId>org.apache.maven.plugins</groupId>\r
+              <artifactId>maven-compiler-plugin</artifactId>\r
+              <version>2.1</version>\r
+              <configuration>\r
+                <source>1.6</source>\r
+                <target>1.6</target>\r
+              </configuration>\r
+            </plugin>\r
             <plugin>\r
                 <groupId>org.codehaus.mojo</groupId>\r
                 <artifactId>gwt-maven-plugin</artifactId>\r
             <plugin>\r
               <groupId>org.apache.maven.plugins</groupId>\r
               <artifactId>maven-eclipse-plugin</artifactId>\r
-              <version>2.8</version>\r
+              <version>2.7</version>\r
               <configuration>\r
                  <downloadSources>true</downloadSources>\r
                  <downloadJavadocs>false</downloadJavadocs>\r
                    <projectnature>org.eclipse.jdt.core.javanature</projectnature>\r
                    <projectnature>org.eclipse.wst.common.modulecore.ModuleCoreNature</projectnature>\r
                  </additionalProjectnatures>\r
+                 <classpathContainers>\r
+                   <classpathContainer>com.google.gwt.eclipse.core.GWT_CONTAINER</classpathContainer>\r
+                   <classpathContainer>org.eclipse.jdt.launching.JRE_CONTAINER</classpathContainer>\r
+                   <classpathContainer>org.eclipse.jdt.junit.JUNIT_CONTAINER/3</classpathContainer>\r
+                </classpathContainers>\r
               </configuration>\r
             </plugin>\r
             <!-- GWT plugin does not copy the webapp folder in hosted mode -->\r