You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by rf...@apache.org on 2011/08/29 21:19:31 UTC
svn commit: r1162949 -
/maven/plugins/trunk/maven-compiler-plugin/src/site/apt/usage.apt.vm
Author: rfscholte
Date: Mon Aug 29 19:19:31 2011
New Revision: 1162949
URL: http://svn.apache.org/viewvc?rev=1162949&view=rev
Log:
Fix MCOMPILER-147: The usage page should use pluginManagement for configuring the plugin
Modified:
maven/plugins/trunk/maven-compiler-plugin/src/site/apt/usage.apt.vm
Modified: maven/plugins/trunk/maven-compiler-plugin/src/site/apt/usage.apt.vm
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-compiler-plugin/src/site/apt/usage.apt.vm?rev=1162949&r1=1162948&r2=1162949&view=diff
==============================================================================
--- maven/plugins/trunk/maven-compiler-plugin/src/site/apt/usage.apt.vm (original)
+++ maven/plugins/trunk/maven-compiler-plugin/src/site/apt/usage.apt.vm Mon Aug 29 19:19:31 2011
@@ -44,29 +44,35 @@ mvn test-compile
+-----
The above command will execute both <<<compiler:compile>>> and
- <<<compiler:test-compile>>> since the compile phase happens a few phases
- before the test-compile phase.
+ <<<compiler:testCompile>>> since the <<<compile>>> phase happens a few phases
+ before the <<<test-compile>>> phase.
* Configuring Your Compiler Plugin
Since the Compiler Plugin executes automatically during their phases, you
- don't have to put <<<executions>>> unlike the other plugins.
+ don't have to put <<<executions>>> unlike many other plugins. However, you
+ should specify the version of the Compiler Plugin.
+-----
<project>
...
<build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <version>${project.version}</version>
- <configuration>
- <!-- put your configurations here -->
- </configuration>
- </plugin>
- </plugins>
+ <pluginManagement>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <version>${project.version}</version>
+ <configuration>
+ <!-- put your configurations here -->
+ </configuration>
+ </plugin>
+ </plugins>
+ </pluginManagement>
</build>
...
</project>
+-----
+
+ <<Note>>: Maven 3.0 will issue warnings if you do not specify the version of a
+ plugin.