From e0b306c105cc86b6be2cf06b2af30d4c77122476 Mon Sep 17 00:00:00 2001 From: Herve Boutemy Date: Mon, 2 Jun 2014 23:36:55 +0000 Subject: [PATCH] [MPLUGIN-267] added Maven 2 specific configuration git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1599392 13f79535-47bb-0310-9956-ffa450edef68 --- maven-plugin-plugin/pom.xml | 29 +++++++++++++++++++ .../apt/examples/using-annotations.apt.vm | 25 ++++++++++++++++ 2 files changed, 54 insertions(+) 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 + + + ... ++-----+