[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
master
Olivier Lamy 2012-06-29 13:26:08 +00:00
parent 44ba0e4554
commit d3b5a9226c
5 changed files with 89 additions and 0 deletions

View File

@ -151,6 +151,11 @@
<artifactId>maven-plugin-tools-annotations</artifactId> <artifactId>maven-plugin-tools-annotations</artifactId>
<scope>runtime</scope> <scope>runtime</scope>
</dependency> </dependency>
<dependency>
<groupId>org.apache.maven.plugin-tools</groupId>
<artifactId>maven-plugin-tools-model</artifactId>
<scope>runtime</scope>
</dependency>
<!-- plexus --> <!-- plexus -->
<dependency> <dependency>

View File

@ -0,0 +1,30 @@
<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>
<groupId>test</groupId>
<artifactId>trivial-maven-plugin</artifactId>
<packaging>maven-plugin</packaging>
<version>1.0</version>
<name>trivial-maven-plugin</name>
<description>Just a test project</description>
<url>http://nowere.test</url>
<inceptionYear>2012</inceptionYear>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-plugin-plugin</artifactId>
<version>@project.version@</version>
<dependencies>
<dependency>
<groupId>org.apache.maven.plugin-tools</groupId>
<artifactId>maven-plugin-tools-ant</artifactId>
<version>@project.version@</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
</project>

View File

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<project name="ant-tasks">
<!-- +++++++++++++++++++++++++++++++++++++++++++ -->
<!-- Global Properties -->
<!-- +++++++++++++++++++++++++++++++++++++++++++ -->
<!-- taskdef resource="net/sf/antcontrib/antcontrib.properties"/-->
<!-- +++++++++++++++++++++++++++++++++++++++++++ -->
<!-- Main task -->
<!-- +++++++++++++++++++++++++++++++++++++++++++ -->
<target name="sample-task">
<echo message="${message}."/>
</target>
</project>

View File

@ -0,0 +1,25 @@
<?xml version="1.0" encoding="UTF-8"?>
<pluginMetadata>
<mojos>
<mojo>
<goal>sample</goal>
<call>sample-task</call>
<description>Just a test</description>
<requiresDirectInvocation>false</requiresDirectInvocation>
<requiresProject>false</requiresProject>
<since>1.0</since>
<parameters>
<parameter>
<name>message</name>
<type>java.lang.String</type>
<required>true</required>
<readonly>true</readonly>
<since>1.0</since>
<description>Test param</description>
</parameter>
</parameters>
</mojo>
</mojos>
</pluginMetadata>

View File

@ -200,6 +200,12 @@
<description>A deprecation message for this mojo parameter.</description> <description>A deprecation message for this mojo parameter.</description>
<type>String</type> <type>String</type>
</field> </field>
<field>
<version>1.0.0</version>
<name>since</name>
<type>String</type>
<description>Version when the mojo was added to the API.</description>
</field>
<field> <field>
<version>1.0.0</version> <version>1.0.0</version>
<name>call</name> <name>call</name>
@ -339,6 +345,12 @@
<description>A deprecation message for this mojo parameter.</description> <description>A deprecation message for this mojo parameter.</description>
<type>String</type> <type>String</type>
</field> </field>
<field>
<version>1.0.0</version>
<name>since</name>
<type>String</type>
<description>Version when the parameter was added.</description>
</field>
</fields> </fields>
</class> </class>
</classes> </classes>