| $Revision: 1.5 $ | $Name: $ | $Date: 2006/04/13 13:54:09 $ | Working with maven 2 |
| $Source: /ppw/training/maven/repository/maven2/src/html/configuringPlugins.html,v $ | |||
[…]
<project>
[…]
<plugin>
[…]
<executions>
<execution>
[…]
<configuration>
configuration for this execution of the plugin
</configuration>
[…]
</execution>
</executions>
[…]
<configuration>
configuration for all executions of the plugin
</configuration>
</plugin>
[…]
</project>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=" http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
[…]
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<compilerVersion>1.4</compilerVersion> <!-- don't use 1.5 just yet -->
<source>1.4</source> <!-- necessary to enable assertions -->
<target>1.4</target> <!-- don't make it backward compatible -->
<debug>true</debug>
<showDeprecation>true</showDeprecation>
<showWarnings>true</showWarnings>
<optimize>false</optimize>
<!-- to make debugging possible;
should be set to true for a release with a profile -->
</configuration>
</plugin>
[…]
</plugins>
</build>
[…]
</project>
false on release, and turn optimization
on