]> source.dussan.org Git - gwtquery.git/commitdiff
Fix mvn compilation warnings, and Eclipse errors when importing
authorManolo Carrasco <manolo@apache.org>
Wed, 4 Jan 2012 17:18:42 +0000 (17:18 +0000)
committerManolo Carrasco <manolo@apache.org>
Wed, 4 Jan 2012 17:18:42 +0000 (17:18 +0000)
archetype/src/main/resources/archetype-resources/.classpath
archetype/src/main/resources/archetype-resources/pom.xml

index daed4300a2b53666b81145d16bcae7e85aeba865..df9acc348d7e494a8422dd8980246c7dc1617f75 100644 (file)
@@ -4,10 +4,10 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <classpath>
        <classpathentry kind="con" path="com.google.gwt.eclipse.core.GWT_CONTAINER"/>
-       <classpathentry kind="src" path="src/main/java"/>
-       <classpathentry kind="src" path="src/test/java"/>
        <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
        <classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"/>
        <classpathentry kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/3"/>
-       <classpathentry kind="output" path="src/main/webapp/WEB-INF/classes"/>
+       <classpathentry kind="src" output="target/${artifactId}-${version}/WEB-INF/classes" path="src/main/java"/>
+       <classpathentry kind="src" output="target/test-classes" path="src/test/java"/>
+       <classpathentry kind="output" path="target/${artifactId}-${version}/WEB-INF/classes"/>
 </classpath>
index 596b0e1f9e5651e7bf6a48b9f8077d7e3c6bad18..a079e6fff6c1eb2c8258b359346b73aff585a145 100644 (file)
@@ -98,7 +98,7 @@
                     <logLevel>${gwt.loglevel}</logLevel>\r
                     <style>${gwt.outputstyle}</style>\r
                     <gwtVersion>${gwtversion}</gwtVersion>\r
-                    <soyc>false</soyc>\r
+                    <compileReport>true</compileReport>\r
                     <runTarget>${projectName}/${projectName}.html</runTarget>\r
                     <hostedWebApp>${project.build.directory}/${project.build.finalName}</hostedWebApp>\r
                 </configuration>\r
             </plugin>\r
             <plugin>\r
                <artifactId>maven-surefire-plugin</artifactId>\r
+               <version>2.8.1</version>\r
                <configuration>\r
                  <additionalClasspathElements>\r
                    <additionalClasspathElement>\${project.build.sourceDirectory}</additionalClasspathElement>\r
                  <systemProperties>\r
                    <property>\r
                      <name>gwt.args</name>\r
-                     <value>-out target/www</value>\r
+                     <value>-out target/gwt-tests</value>\r
+                   </property>\r
+                   <property>\r
+                     <!-- Setting this to true (default) causes a exception first time test are run Gwt issue_6443 -->\r
+                     <name>gwt.persistentunitcache</name>\r
+                     <value>false</value>\r
                    </property>\r
                  </systemProperties>\r
                </configuration>\r
             </plugin>\r
-            <plugin>\r
-              <artifactId>maven-clean-plugin</artifactId>\r
-              <configuration>\r
-                <filesets>\r
-                  <fileset><directory>src/main/webapp/${projectName}</directory></fileset>\r
-                  <fileset><directory>src/main/webapp/WEB-INF/classes</directory></fileset>\r
-                  <fileset><directory>tomcat</directory></fileset>\r
-                  <fileset><directory>www-test</directory></fileset>\r
-                  <fileset><directory>.gwt-tmp</directory></fileset>\r
-                </filesets>\r
-              </configuration>\r
-            </plugin>\r
             <plugin>\r
               <groupId>org.apache.maven.plugins</groupId>\r
               <artifactId>maven-eclipse-plugin</artifactId>\r
+              <version>2.8</version>\r
               <configuration>\r
                  <downloadSources>true</downloadSources>\r
                  <downloadJavadocs>false</downloadJavadocs>\r
                  <additionalBuildcommands>\r
-                   <buildCommand>com.google.gwt.eclipse.core.gwtProjectValidator</buildCommand>\r
+                   <buildcommand>com.google.gwt.eclipse.core.gwtProjectValidator</buildcommand>\r
                    <buildcommand>org.eclipse.wst.common.modulecore.ComponentStructuralBuilder</buildcommand>\r
                    <buildcommand>org.eclipse.jdt.core.javabuilder</buildcommand>\r
                    <buildcommand>org.eclipse.wst.common.modulecore.ComponentStructuralBuilderDependencyResolver</buildcommand>\r