Rolling back the release plugin's dependencies to -beta-1 of maven, and making resolvePluginVersion(..) with the flag for processAsReport public again with deprecation, so the release plugin continues to function into the next release.

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@291420 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
John Dennis Casey 2005-09-25 14:49:27 +00:00
parent 2ee39543f8
commit 410d22e73c
4 changed files with 18 additions and 8 deletions

View File

@ -87,7 +87,10 @@ public class DefaultPluginVersionManager
return resolvePluginVersion( groupId, artifactId, project, settings, localRepository, true ); return resolvePluginVersion( groupId, artifactId, project, settings, localRepository, true );
} }
private String resolvePluginVersion( String groupId, String artifactId, MavenProject project, Settings settings, /**
* @deprecated Make private, use resolveReportPluginVersion(..) or resolvePluginVersion(..) instead.
*/
public String resolvePluginVersion( String groupId, String artifactId, MavenProject project, Settings settings,
ArtifactRepository localRepository, boolean resolveAsReportPlugin ) ArtifactRepository localRepository, boolean resolveAsReportPlugin )
throws PluginVersionResolutionException throws PluginVersionResolutionException
{ {

View File

@ -28,6 +28,13 @@ public interface PluginVersionManager
ArtifactRepository localRepository ) ArtifactRepository localRepository )
throws PluginVersionResolutionException; throws PluginVersionResolutionException;
/**
* @deprecated Use resolveReportPluginVersion(..) instead.
*/
String resolvePluginVersion( String groupId, String artifactId, MavenProject project, Settings settings,
ArtifactRepository localRepository, boolean processAsReport )
throws PluginVersionResolutionException;
String resolveReportPluginVersion( String groupId, String artifactId, MavenProject project, Settings settings, String resolveReportPluginVersion( String groupId, String artifactId, MavenProject project, Settings settings,
ArtifactRepository localRepository ) ArtifactRepository localRepository )
throws PluginVersionResolutionException; throws PluginVersionResolutionException;

View File

@ -2,7 +2,7 @@
<parent> <parent>
<artifactId>maven-plugin-parent</artifactId> <artifactId>maven-plugin-parent</artifactId>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<version>2.0-beta-2-SNAPSHOT</version> <version>2.0-beta-1</version>
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<artifactId>maven-release-plugin</artifactId> <artifactId>maven-release-plugin</artifactId>
@ -13,12 +13,12 @@
<dependency> <dependency>
<groupId>org.apache.maven</groupId> <groupId>org.apache.maven</groupId>
<artifactId>maven-core</artifactId> <artifactId>maven-core</artifactId>
<version>2.0-beta-2-SNAPSHOT</version> <version>2.0-beta-1</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.apache.maven</groupId> <groupId>org.apache.maven</groupId>
<artifactId>maven-artifact</artifactId> <artifactId>maven-artifact</artifactId>
<version>2.0-beta-2-SNAPSHOT</version> <version>2.0-beta-1</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.apache.maven.scm</groupId> <groupId>org.apache.maven.scm</groupId>
@ -42,12 +42,12 @@
<dependency> <dependency>
<groupId>org.apache.maven</groupId> <groupId>org.apache.maven</groupId>
<artifactId>maven-artifact-manager</artifactId> <artifactId>maven-artifact-manager</artifactId>
<version>2.0-beta-2-SNAPSHOT</version> <version>2.0-beta-1</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.apache.maven</groupId> <groupId>org.apache.maven</groupId>
<artifactId>maven-artifact</artifactId> <artifactId>maven-artifact</artifactId>
<version>2.0-beta-2-SNAPSHOT</version> <version>2.0-beta-1</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.apache.maven.scm</groupId> <groupId>org.apache.maven.scm</groupId>

View File

@ -961,8 +961,8 @@ public class PrepareReleaseMojo
String version; String version;
try try
{ {
version = pluginVersionManager.resolveReportPluginVersion( plugin.getGroupId(), plugin version = pluginVersionManager.resolvePluginVersion( plugin.getGroupId(), plugin
.getArtifactId(), project, settings, localRepository ); .getArtifactId(), project, settings, localRepository, true );
} }
catch ( PluginVersionResolutionException e ) catch ( PluginVersionResolutionException e )
{ {