Skip to content
This repository has been archived by the owner on Aug 11, 2020. It is now read-only.

Commit

Permalink
adding parent.
Browse files Browse the repository at this point in the history
git-svn-id: file:///opt/svn/repositories/sonatype.org/plugins/trunk/nexus-maven-plugin@178 c2a14038-686d-4adc-8740-a14e5738cb64
  • Loading branch information
jdcasey committed Apr 1, 2009
1 parent ff0fc61 commit fdb627c
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 22 deletions.
7 changes: 7 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@
xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>org.sonatype.plugins</groupId>
<artifactId>plugins-parent</artifactId>
<version>3</version>
<relativePath>../plugins-parent/pom.xml</relativePath>
</parent>

<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-maven-plugin</artifactId>
<version>1.3.2-SNAPSHOT</version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
import org.jdom.Document;
import org.jdom.output.Format;
import org.jdom.output.XMLOutputter;
import org.sonatype.nexus.restlight.common.SimpleRESTClientException;
import org.sonatype.nexus.restlight.common.RESTLightClientException;
import org.sonatype.nexus.restlight.m2settings.M2SettingsClient;

import java.io.File;
Expand Down Expand Up @@ -260,7 +260,7 @@ private Document downloadSettings()
{
client = new M2SettingsClient( baseUrl, username, password );
}
catch ( SimpleRESTClientException e )
catch ( RESTLightClientException e )
{
throw new MojoExecutionException( "Failed to start REST client: " + e.getMessage(), e );
}
Expand All @@ -269,7 +269,7 @@ private Document downloadSettings()
{
return client.getSettingsTemplateAbsolute( url );
}
catch ( SimpleRESTClientException e )
catch ( RESTLightClientException e )
{
throw new MojoExecutionException( "Failed to retrieve Maven settings.xml from: " + url + "\n(Reason: " + e.getMessage() + ")" , e );
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
import org.apache.maven.settings.Settings;
import org.codehaus.plexus.components.interactivity.Prompter;
import org.codehaus.plexus.components.interactivity.PrompterException;
import org.sonatype.nexus.restlight.common.SimpleRESTClientException;
import org.sonatype.nexus.restlight.common.RESTLightClientException;
import org.sonatype.nexus.restlight.stage.StageClient;
import org.sonatype.nexus.restlight.stage.StageRepository;

Expand Down Expand Up @@ -110,7 +110,7 @@ public void execute()
{
client = new StageClient( nexusUrl, username, password );
}
catch ( SimpleRESTClientException e )
catch ( RESTLightClientException e )
{
throw new MojoExecutionException( "Failed to open staging client: " + e.getMessage(), e );
}
Expand All @@ -120,7 +120,7 @@ public void execute()
{
openRepo = client.getOpenStageRepositoryForUser( groupId, artifactId, version );
}
catch ( SimpleRESTClientException e )
catch ( RESTLightClientException e )
{
throw new MojoExecutionException( "Failed to find open staging repository: " + e.getMessage(), e );
}
Expand Down Expand Up @@ -148,7 +148,7 @@ public void execute()
{
client.finishRepository( openRepo );
}
catch ( SimpleRESTClientException e )
catch ( RESTLightClientException e )
{
throw new MojoExecutionException( "Failed to finish open staging repository: " + e.getMessage(), e );
}
Expand All @@ -163,7 +163,7 @@ public void execute()
{
closedStageRepositories = client.getClosedStageRepositoriesForUser( groupId, artifactId, version );
}
catch ( SimpleRESTClientException e )
catch ( RESTLightClientException e )
{
throw new MojoExecutionException( "Failed to list closed staging repositories: " + e.getMessage(), e );
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
import org.apache.maven.settings.Settings;
import org.codehaus.plexus.components.interactivity.Prompter;
import org.codehaus.plexus.components.interactivity.PrompterException;
import org.sonatype.nexus.restlight.common.SimpleRESTClientException;
import org.sonatype.nexus.restlight.common.RESTLightClientException;
import org.sonatype.nexus.restlight.stage.StageClient;
import org.sonatype.nexus.restlight.stage.StageRepository;

Expand Down Expand Up @@ -93,7 +93,7 @@ public void execute()
{
client = new StageClient( nexusUrl, username, password );
}
catch ( SimpleRESTClientException e )
catch ( RESTLightClientException e )
{
throw new MojoExecutionException( "Failed to open staging client: " + e.getMessage(), e );
}
Expand All @@ -103,7 +103,7 @@ public void execute()
{
openRepositories = client.getOpenStageRepositoriesForUser();
}
catch ( SimpleRESTClientException e )
catch ( RESTLightClientException e )
{
throw new MojoExecutionException( "Failed to find open staging repository: " + e.getMessage(), e );
}
Expand Down Expand Up @@ -137,7 +137,7 @@ public void execute()
{
closedStageRepositories = client.getClosedStageRepositoriesForUser();
}
catch ( SimpleRESTClientException e )
catch ( RESTLightClientException e )
{
throw new MojoExecutionException( "Failed to list closed staging repositories: " + e.getMessage(), e );
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import org.junit.Before;
import org.junit.Test;
import org.sonatype.nexus.plugin.FinishStageRepositoryMojo;
import org.sonatype.nexus.restlight.common.SimpleRESTClientException;
import org.sonatype.nexus.restlight.common.RESTLightClientException;
import org.sonatype.nexus.restlight.stage.StageClient;
import org.sonatype.nexus.restlight.testharness.AbstractRESTTest;
import org.sonatype.nexus.restlight.testharness.ConversationalFixture;
Expand Down Expand Up @@ -71,7 +71,7 @@ public void cleanupFiles()

@Test
public void simplestUseCase()
throws JDOMException, IOException, SimpleRESTClientException, MojoExecutionException
throws JDOMException, IOException, RESTLightClientException, MojoExecutionException
{
printTestName();

Expand All @@ -90,7 +90,7 @@ public void simplestUseCase()

@Test
public void promptForPassword()
throws JDOMException, IOException, SimpleRESTClientException, MojoExecutionException
throws JDOMException, IOException, RESTLightClientException, MojoExecutionException
{
printTestName();

Expand All @@ -114,7 +114,7 @@ public void promptForPassword()

@Test
public void promptForNexusURL()
throws JDOMException, IOException, SimpleRESTClientException, MojoExecutionException
throws JDOMException, IOException, RESTLightClientException, MojoExecutionException
{
printTestName();

Expand All @@ -138,7 +138,7 @@ public void promptForNexusURL()

@Test
public void authUsingSettings()
throws JDOMException, IOException, SimpleRESTClientException, MojoExecutionException
throws JDOMException, IOException, RESTLightClientException, MojoExecutionException
{
printTestName();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import org.junit.Before;
import org.junit.Test;
import org.sonatype.nexus.plugin.ListStageRepositoriesMojo;
import org.sonatype.nexus.restlight.common.SimpleRESTClientException;
import org.sonatype.nexus.restlight.common.RESTLightClientException;
import org.sonatype.nexus.restlight.stage.StageClient;
import org.sonatype.nexus.restlight.testharness.AbstractRESTTest;
import org.sonatype.nexus.restlight.testharness.ConversationalFixture;
Expand Down Expand Up @@ -70,7 +70,7 @@ public void cleanupFiles()

@Test
public void simplestUseCase()
throws JDOMException, IOException, SimpleRESTClientException, MojoExecutionException
throws JDOMException, IOException, RESTLightClientException, MojoExecutionException
{
printTestName();

Expand All @@ -85,7 +85,7 @@ public void simplestUseCase()

@Test
public void promptForPassword()
throws JDOMException, IOException, SimpleRESTClientException, MojoExecutionException
throws JDOMException, IOException, RESTLightClientException, MojoExecutionException
{
printTestName();

Expand All @@ -105,7 +105,7 @@ public void promptForPassword()

@Test
public void promptForNexusURL()
throws JDOMException, IOException, SimpleRESTClientException, MojoExecutionException
throws JDOMException, IOException, RESTLightClientException, MojoExecutionException
{
printTestName();

Expand All @@ -125,7 +125,7 @@ public void promptForNexusURL()

@Test
public void authUsingSettings()
throws JDOMException, IOException, SimpleRESTClientException, MojoExecutionException
throws JDOMException, IOException, RESTLightClientException, MojoExecutionException
{
printTestName();

Expand Down

0 comments on commit fdb627c

Please sign in to comment.