Hello,
we are using the GWT maven plugin 2.4.0 on Linux in the command line, and we've noticed that after "mvn clean" + "mvn install", the Javascript isn't updated correctly. The build fully regenerates .js files correctly on the eclipse m2e plugin.
Any clue how to correct or bypass this issue ? This is a critical issue for us as the Linux build is the production one.
Our main pom.xml contains this:
<build>
<finalName>XXXApp</finalName>
<outputDirectory>${webappDirectory}/WEB-INF/classes</outputDirectory>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>gwt-maven-plugin</artifactId>
<version>${gwtVersion}</version>
<executions>
<execution>
<goals>
<goal>compile</goal>
<!-- <goal>resources</goal> -->
<!--<goal>generateAsync</goal> <goal>test</goal> -->
</goals>
</execution>
</executions>
<configuration>
<runTarget>XXXApp15.html</runTarget>
<hostedWebapp>${webappDirectory}</hostedWebapp>
<!-- for production use replace style PRETTY by OBF -->
<style>PRETTY</style>
</configuration>
</plugin>
<!-- Copy static web files before executing gwt:run -->
<!-- <plugin> -->
<!-- <groupId>org.apache.maven.plugins</groupId> -->
<!-- <artifactId>maven-war-plugin</artifactId> -->
<!-- <version>2.1.1</version> -->
<!-- <executions> -->
<!-- <execution> -->
<!-- <phase>compile</phase> -->
<!-- <goals> -->
<!-- <goal>exploded</goal> -->
<!-- </goals> -->
<!-- </execution> -->
<!-- </executions> -->
<!-- <configuration> -->
<!-- <webappDirectory>${webappDirectory}</webappDirectory> -->
<!-- </configuration> -->
<!-- </plugin> -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
</configuration>
</plugin>
</plugins>
</build>
Best regards,
Nicolas