diff --git a/maven-plugin-plugin/pom.xml b/maven-plugin-plugin/pom.xml index 65b2be8..f3997e8 100644 --- a/maven-plugin-plugin/pom.xml +++ b/maven-plugin-plugin/pom.xml @@ -363,5 +363,34 @@ + + maven-2 + + + + ${basedir} + + + + + + org.apache.maven.plugins + maven-plugin-plugin + + + true + + + + mojo-descriptor + + descriptor + + + + + + + diff --git a/maven-plugin-plugin/src/site/apt/examples/using-annotations.apt.vm b/maven-plugin-plugin/src/site/apt/examples/using-annotations.apt.vm index 64656a0..c45fd06 100644 --- a/maven-plugin-plugin/src/site/apt/examples/using-annotations.apt.vm +++ b/maven-plugin-plugin/src/site/apt/examples/using-annotations.apt.vm @@ -122,3 +122,28 @@ Using Plugin Tools Java5 Annotations ... +-----+ + + : this configuration will not work with Maven 2, which does not support execution phase overriding. + If you absolutely need to build with Maven 2, you should use <<>> parameter + to avoid failure on default execution phase and add another execution: + ++-----+ + + + + org.apache.maven.plugins + maven-plugin-plugin + ${project.version} + + + true + + + + mojo-descriptor + + descriptor + + + ... ++-----+