create release profile

This commit is contained in:
Sebastian Sdorra
2011-01-09 18:34:31 +01:00
parent 3c066319dd
commit d86bc762a5

View File

@@ -231,6 +231,49 @@
<profiles>
<profile>
<id>release</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.1.1</version>
<configuration>
<webResources>
<resource>
<directory>${project.build.directory}/web-compressor</directory>
</resource>
</webResources>
</configuration>
</plugin>
<plugin>
<groupId>sonia.maven</groupId>
<artifactId>web-compressor</artifactId>
<version>1.0-SNAPSHOT</version>
<executions>
<execution>
<phase>prepare-package</phase>
<goals>
<goal>compress-template</goal>
</goals>
</execution>
</executions>
<configuration>
<source>src/main/webapp/index.html</source>
<target>${project.build.directory}/web-compressor/index.html</target>
<compressCSS>false</compressCSS>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>development</id>