Deploy should not fail if <distributionManagement> and <repository> does not 
exist when used with -DaltDeploymentRepository
---------------------------------------------------------------------------------------------------------------------------

                 Key: MDEPLOY-115
                 URL: http://jira.codehaus.org/browse/MDEPLOY-115
             Project: Maven 2.x Deploy Plugin
          Issue Type: Bug
          Components: deploy:deploy
    Affects Versions: 2.4
            Reporter: Geoffrey De Smet


I have a pom with no <distributionManagement> section.

When I do:
{code}
mvn -DskipTests -DupdateReleaseInfo=true 
-DaltDeploymentRepository=ggg-deploy::default::scp://ggg/maven/maven2/deploy 
clean deploy
{code}
I get this error:
{code}
[INFO] Failed to configure plugin parameters for: 
org.apache.maven.plugins:maven-deploy-plugin:2.4

check that the following section of the pom.xml is present and correct:

<distributionManagement>
  <!-- use the following if you're not using a snapshot version. -->
  <repository>
    <id>repo</id>
    <name>Repository Name</name>
    <url>scp://host/path/to/repo</url>
  </repository>
  <!-- use the following if you ARE using a snapshot version. -->
  <snapshotRepository>
    <id>repo</id>
    <name>Repository Name</name>
    <url>scp://host/path/to/repo</url>
  </snapshotRepository>
</distributionManagement>

Cause: Class 'org.apache.maven.artifact.repository.ArtifactRepository' cannot 
be instantiated
{code}

However, since I supply the altDeploymentRepository parameter, it shouldn't 
require that section in the pom.xml

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to