Permalink
Browse files

[maven-release-plugin] copy for tag nexus-maven-plugin-1.3.2

git-svn-id: file:///opt/svn/repositories/sonatype.org/plugins/tags/nexus-maven-plugin-1.3.2@206 c2a14038-686d-4adc-8740-a14e5738cb64
  • Loading branch information...
2 parents e22ae3b + 7a582f1 commit 43f169ea461660ae237ebdce75784d2e5ea14543 @jdcasey jdcasey committed Apr 8, 2009
@@ -27,40 +27,40 @@
import java.util.List;
/**
- * Finish a Nexus staging repository so it's available for use by Maven.
+ * Close a Nexus staging repository so it's available for use by Maven.
*
- * @goal staging-finish
+ * @goal staging-close
* @requiresProject false
* @aggregator
*/
// TODO: Remove aggregator annotation once we have a better solution, but we should only run this once per build.
-public class FinishStageRepositoryMojo
+public class CloseStageRepositoryMojo
extends AbstractStagingMojo
{
/**
- * The description for the newly finished staging repository. This will show up in the Nexus UI.
+ * The description for the newly closed staging repository. This will show up in the Nexus UI.
*
* @parameter expression="${description}"
*/
private String description;
/**
- * The artifact groupId used to select which open staging repository should be finished.
+ * The artifact groupId used to select which open staging repository should be closed.
*
* @parameter expression="${groupId}" default-value="${project.groupId}"
*/
private String groupId;
/**
- * The artifact artifactId used to select which open staging repository should be finished.
+ * The artifact artifactId used to select which open staging repository should be closed.
*
* @parameter expression="${artifactId}" default-value="${project.artifactId}"
*/
private String artifactId;
/**
- * The artifact version used to select which open staging repository should be finished.
+ * The artifact version used to select which open staging repository should be closed.
*
* @parameter expression="${version}" default-value="${project.version}"
*/
@@ -102,11 +102,11 @@ public void execute()
}
else
{
- repo = select( repos, "Select a repository to finish" );
+ repo = select( repos, "Select a repository to close" );
}
StringBuilder builder = new StringBuilder();
- builder.append( "Finishing staging repository for: '" )
+ builder.append( "Closing staging repository for: '" )
.append( groupId )
.append( ":" )
.append( artifactId )
@@ -128,15 +128,15 @@ public void execute()
}
catch ( RESTLightClientException e )
{
- throw new MojoExecutionException( "Failed to finish open staging repository: " + e.getMessage(), e );
+ throw new MojoExecutionException( "Failed to close open staging repository: " + e.getMessage(), e );
}
}
else
{
getLog().info( "\n\nNo open staging repositories found. Nothing to do!\n\n" );
}
- listRepos( groupId, artifactId, version, "The following FINISHED staging repositories were found" );
+ listRepos( groupId, artifactId, version, "The following CLOSED staging repositories were found" );
}
public String getGroupId()
@@ -76,15 +76,15 @@ public void execute()
}
catch ( RESTLightClientException e )
{
- throw new MojoExecutionException( "Failed to finish open staging repository: " + e.getMessage(), e );
+ throw new MojoExecutionException( "Failed to drop staging repository: " + e.getMessage(), e );
}
}
else
{
getLog().info( "\n\nNo closed staging repositories found. Nothing to do!\n\n" );
}
- listRepos( null, null, null, "The following FINISHED staging repositories were found" );
+ listRepos( null, null, null, "The following CLOSED staging repositories were found" );
}
}
@@ -84,7 +84,7 @@ public void execute()
getLog().info( "\n\nNo open staging repositories found.\n\n" );
}
- listRepos( null, null, null, "The following FINISHED staging repositories were found" );
+ listRepos( null, null, null, "The following CLOSED staging repositories were found" );
}
}
@@ -84,15 +84,15 @@ public void execute()
}
catch ( RESTLightClientException e )
{
- throw new MojoExecutionException( "Failed to finish open staging repository: " + e.getMessage(), e );
+ throw new MojoExecutionException( "Failed to promote staging repository: " + e.getMessage(), e );
}
}
else
{
getLog().info( "\n\nNo open staging repositories found. Nothing to do!\n\n" );
}
- listRepos( null, null, null, "The following FINISHED staging repositories were found" );
+ listRepos( null, null, null, "The following CLOSED staging repositories were found" );
}
private void promptForPromoteInfo()
View
@@ -29,7 +29,7 @@ Introduction
+---+
<pluginGroups>
- <pluginGroup>org.sonatype.plugins</pluginGroups>
+ <pluginGroup>org.sonatype.plugins</pluginGroup>
</pluginGroups>
+---+
@@ -44,7 +44,7 @@
import java.util.Set;
-public class FinishStageRepositoryMojoTest
+public class CloseStageRepositoryMojoTest
extends AbstractRESTTest
{
@@ -92,7 +92,7 @@ public void simplestUseCase()
{
printTestName();
- FinishStageRepositoryMojo mojo = new FinishStageRepositoryMojo();
+ CloseStageRepositoryMojo mojo = new CloseStageRepositoryMojo();
ExpectPrompter prompter = new ExpectPrompter();
prompter.addExpectation( "1", "1" );
@@ -117,7 +117,7 @@ public void promptForPassword()
{
printTestName();
- FinishStageRepositoryMojo mojo = new FinishStageRepositoryMojo();
+ CloseStageRepositoryMojo mojo = new CloseStageRepositoryMojo();
ExpectPrompter prompter = new ExpectPrompter();
@@ -143,7 +143,7 @@ public void promptForNexusURL()
{
printTestName();
- FinishStageRepositoryMojo mojo = new FinishStageRepositoryMojo();
+ CloseStageRepositoryMojo mojo = new CloseStageRepositoryMojo();
ExpectPrompter prompter = new ExpectPrompter();
@@ -169,7 +169,7 @@ public void authUsingSettings()
{
printTestName();
- FinishStageRepositoryMojo mojo = new FinishStageRepositoryMojo();
+ CloseStageRepositoryMojo mojo = new CloseStageRepositoryMojo();
ExpectPrompter prompter = new ExpectPrompter();
prompter.addExpectation( "1", "1" );
@@ -199,7 +199,7 @@ public void authUsingSettings()
runMojo( mojo );
}
- private void runMojo( final FinishStageRepositoryMojo mojo )
+ private void runMojo( final CloseStageRepositoryMojo mojo )
throws JDOMException, IOException, MojoExecutionException
{
mojo.setLog( log );

0 comments on commit 43f169e

Please sign in to comment.