From d3b5a9226c9858596dd7b69dfd4948fa99a90fc6 Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Fri, 29 Jun 2012 13:26:08 +0000 Subject: [PATCH] [MPLUGIN-218] Tag 'since' not recognized in the plugin model Submitted by Tinguaro Barreno. git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1355361 13f79535-47bb-0310-9956-ffa450edef68 --- maven-plugin-plugin/pom.xml | 5 ++++ .../src/it/ant-since-maven-plugin/pom.xml | 30 +++++++++++++++++++ .../src/main/scripts/sample.build.xml | 17 +++++++++++ .../src/main/scripts/sample.mojos.xml | 25 ++++++++++++++++ .../src/main/mdo/plugin-metadata.mdo | 12 ++++++++ 5 files changed, 89 insertions(+) create mode 100644 maven-plugin-plugin/src/it/ant-since-maven-plugin/pom.xml create mode 100644 maven-plugin-plugin/src/it/ant-since-maven-plugin/src/main/scripts/sample.build.xml create mode 100644 maven-plugin-plugin/src/it/ant-since-maven-plugin/src/main/scripts/sample.mojos.xml diff --git a/maven-plugin-plugin/pom.xml b/maven-plugin-plugin/pom.xml index 6d24bbc..c3fff06 100644 --- a/maven-plugin-plugin/pom.xml +++ b/maven-plugin-plugin/pom.xml @@ -151,6 +151,11 @@ maven-plugin-tools-annotations runtime + + org.apache.maven.plugin-tools + maven-plugin-tools-model + runtime + diff --git a/maven-plugin-plugin/src/it/ant-since-maven-plugin/pom.xml b/maven-plugin-plugin/src/it/ant-since-maven-plugin/pom.xml new file mode 100644 index 0000000..2240fa9 --- /dev/null +++ b/maven-plugin-plugin/src/it/ant-since-maven-plugin/pom.xml @@ -0,0 +1,30 @@ + + 4.0.0 + test + trivial-maven-plugin + maven-plugin + 1.0 + trivial-maven-plugin + Just a test project + http://nowere.test + 2012 + + + + + org.apache.maven.plugins + maven-plugin-plugin + @project.version@ + + + org.apache.maven.plugin-tools + maven-plugin-tools-ant + @project.version@ + + + + + + + diff --git a/maven-plugin-plugin/src/it/ant-since-maven-plugin/src/main/scripts/sample.build.xml b/maven-plugin-plugin/src/it/ant-since-maven-plugin/src/main/scripts/sample.build.xml new file mode 100644 index 0000000..227badb --- /dev/null +++ b/maven-plugin-plugin/src/it/ant-since-maven-plugin/src/main/scripts/sample.build.xml @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + diff --git a/maven-plugin-plugin/src/it/ant-since-maven-plugin/src/main/scripts/sample.mojos.xml b/maven-plugin-plugin/src/it/ant-since-maven-plugin/src/main/scripts/sample.mojos.xml new file mode 100644 index 0000000..16753a4 --- /dev/null +++ b/maven-plugin-plugin/src/it/ant-since-maven-plugin/src/main/scripts/sample.mojos.xml @@ -0,0 +1,25 @@ + + + + + sample + sample-task + Just a test + false + false + 1.0 + + + + message + java.lang.String + true + true + 1.0 + Test param + + + + + + diff --git a/maven-plugin-tools-model/src/main/mdo/plugin-metadata.mdo b/maven-plugin-tools-model/src/main/mdo/plugin-metadata.mdo index ea9adf5..c6baec2 100644 --- a/maven-plugin-tools-model/src/main/mdo/plugin-metadata.mdo +++ b/maven-plugin-tools-model/src/main/mdo/plugin-metadata.mdo @@ -200,6 +200,12 @@ A deprecation message for this mojo parameter. String + + 1.0.0 + since + String + Version when the mojo was added to the API. + 1.0.0 call @@ -339,6 +345,12 @@ A deprecation message for this mojo parameter. String + + 1.0.0 + since + String + Version when the parameter was added. +