Use maven profile to recompile vaadin widgetset
Today I will show you my maven profile to configure Vaadin widgetset recompilation.
The Vaadin wiki shows the basics … but I want widgetset update only if its necessary … so I moved the gwt/vaadin plugins in a profile and add a activation per file for this profile:
<profile>
<!--
Updates Vaadin widgetset definitions based on project dependencies
Remove widgetset directory to trigger recompile:
rm -Rf src/main/webapp/VAADIN/widgetsets/
-->
<id>update-widgetset</id>
<activation>
<file>
${basedir}/src/main/webapp/VAADIN/widgetsets/
</file>
</activation>
<build>
<plugins>
<plugin>
<groupId>com.vaadin</groupId>
<artifactId>vaadin-maven-plugin</artifactId>
<version>1.0.2</version>
<configuration>
<!-- if you don't specify any modules, the plugin will find them -->
</configuration>
<executions>
<execution>
<phase>generate-resources</phase>
<goals>
<goal>update-widgetset</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>gwt-maven-plugin</artifactId>
<version>2.3.0-1</version>
<configuration>
<!-- if you don't specify any modules, the plugin will find them -->
${basedir}/src/main/webapp/VAADIN/widgetsets/
-Xmx512M -Xss1024k
${project.build.directory}/gwt-tmp/
<soyc>false</soyc>
<force>true</force>
</configuration>
<executions>
<execution>
<phase>generate-resources</phase>
<goals>
<goal>resources</goal>
<goal>compile</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
Comments (0)
Trackbacks (1)
Leave a comment
Trackback
-
Thursday, 26. April 2012 at 15:21 | #1Use maven profile to recompile vaadin widgetset #2 « Andreas Höhmann's Weblog
Recent Comments