o Added IT to check help mojo generation

git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@746519 13f79535-47bb-0310-9956-ffa450edef68
master
Benjamin Bentmann 2009-02-21 14:31:06 +00:00
parent 421e3f622c
commit 43d32fdfea
4 changed files with 110 additions and 0 deletions

View File

@ -0,0 +1,2 @@
invoker.goals.1 = install
invoker.goals.2 = org.apache.maven.its.plugin:help:1.0:help

View File

@ -0,0 +1,63 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>org.apache.maven.its.plugin</groupId>
<artifactId>help</artifactId>
<version>1.0</version>
<packaging>maven-plugin</packaging>
<description>
Tests generation and compilation of the help mojo.
</description>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-plugin-api</artifactId>
<version>2.0</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-plugin-plugin</artifactId>
<version>@project.version@</version>
<executions>
<execution>
<id>help-goal</id>
<goals>
<goal>helpmojo</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

View File

@ -0,0 +1,43 @@
package test;
import org.apache.maven.plugin.AbstractMojo;
/**
* MOJO-DESCRIPTION. Some "quotation" marks and backslashes '\\', some <strong>important</strong> javadoc<br> and an
* inline link to {@link test.AnotherMojo}.
*
* @goal test
* @deprecated As of 1.0, use the "quoted" goal instead.
* @since 2.1
*/
public class MyMojo
extends AbstractMojo
{
/**
* This parameter uses "quotation" marks and backslashes '\\' in its description. Those characters <em>must</em> be
* escaped in Java string literals.
*
* @parameter default-value="escape\\backslash"
* @since 2.0
*/
private String defaultParam;
/**
* This parameter is deprecated.
*
* @parameter
* @deprecated As of version 1.0, us the {@link #defaultParam} instead.
*/
private String deprecatedParam;
/**
* @parameter expression="${test.undocumented}"
*/
private String undocumentedParam;
public void execute()
{
}
}

View File

@ -0,0 +1,2 @@
detail = true
goal = test