mirror of https://github.com/apache/maven.git
Fixing DescribeMojo for changes to PluginManager API, and setting prerequisite maven version for this version of the projecthelp-plugin because of this.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@293448 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
71f15ae92d
commit
5fb68e0c17
|
@ -10,6 +10,11 @@
|
|||
<name>Maven Project-Help Plugin</name>
|
||||
<version>2.0-beta-2-SNAPSHOT</version>
|
||||
<inceptionYear>2001</inceptionYear>
|
||||
|
||||
<prerequisites>
|
||||
<maven>2.0-beta-3-SNAPSHOT</maven>
|
||||
</prerequisites>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven</groupId>
|
||||
|
@ -19,7 +24,7 @@
|
|||
<dependency>
|
||||
<groupId>org.apache.maven</groupId>
|
||||
<artifactId>maven-core</artifactId>
|
||||
<version>2.0-beta-1</version>
|
||||
<version>2.0-beta-3-SNAPSHOT</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven</groupId>
|
||||
|
|
|
@ -130,17 +130,9 @@ public class DescribeMojo
|
|||
PluginDescriptor descriptor;
|
||||
|
||||
if ( pluginPrefix != null )
|
||||
{
|
||||
try
|
||||
{
|
||||
descriptor = pluginManager.getPluginDescriptorForPrefix( pluginPrefix );
|
||||
}
|
||||
catch ( PluginManagerException e )
|
||||
{
|
||||
throw new MojoExecutionException( "Error retrieving plugin descriptor for prefix: \'" + pluginPrefix
|
||||
+ "\'.", e );
|
||||
}
|
||||
}
|
||||
else if ( groupId != null && artifactId != null )
|
||||
{
|
||||
Plugin plugin = new Plugin();
|
||||
|
|
Loading…
Reference in New Issue