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:
John Dennis Casey 2005-10-03 20:56:44 +00:00
parent 71f15ae92d
commit 5fb68e0c17
2 changed files with 7 additions and 10 deletions

View File

@ -10,6 +10,11 @@
<name>Maven Project-Help Plugin</name> <name>Maven Project-Help Plugin</name>
<version>2.0-beta-2-SNAPSHOT</version> <version>2.0-beta-2-SNAPSHOT</version>
<inceptionYear>2001</inceptionYear> <inceptionYear>2001</inceptionYear>
<prerequisites>
<maven>2.0-beta-3-SNAPSHOT</maven>
</prerequisites>
<dependencies> <dependencies>
<dependency> <dependency>
<groupId>org.apache.maven</groupId> <groupId>org.apache.maven</groupId>
@ -19,7 +24,7 @@
<dependency> <dependency>
<groupId>org.apache.maven</groupId> <groupId>org.apache.maven</groupId>
<artifactId>maven-core</artifactId> <artifactId>maven-core</artifactId>
<version>2.0-beta-1</version> <version>2.0-beta-3-SNAPSHOT</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.apache.maven</groupId> <groupId>org.apache.maven</groupId>

View File

@ -131,15 +131,7 @@ public class DescribeMojo
if ( pluginPrefix != null ) if ( pluginPrefix != null )
{ {
try descriptor = pluginManager.getPluginDescriptorForPrefix( pluginPrefix );
{
descriptor = pluginManager.getPluginDescriptorForPrefix( pluginPrefix );
}
catch ( PluginManagerException e )
{
throw new MojoExecutionException( "Error retrieving plugin descriptor for prefix: \'" + pluginPrefix
+ "\'.", e );
}
} }
else if ( groupId != null && artifactId != null ) else if ( groupId != null && artifactId != null )
{ {