You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "jira-importer (via GitHub)" <gi...@apache.org> on 2025/04/02 07:01:09 UTC

[I] [MDEPLOY-115] Deploy should not fail if and does not exist when used with -DaltDeploymentRepository [maven-deploy-plugin]

jira-importer opened a new issue, #241:
URL: https://github.com/apache/maven-deploy-plugin/issues/241

   **[Geoffrey De Smet](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=ge0ffrey.desmet)** opened **[MDEPLOY-115](https://issues.apache.org/jira/browse/MDEPLOY-115?redirect=false)** and commented
   
   I have a pom with no \<distributionManagement> section.
   
   When I do:
   
   ```
   mvn -DskipTests -DupdateReleaseInfo=true -DaltDeploymentRepository=ggg-deploy::default::scp://ggg/maven/maven2/deploy clean deploy
   ```
   
   I get this error:
   
   ```
   [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
   ```
   
   However, since I supply the altDeploymentRepository parameter, it shouldn't require that section in the pom.xml
   
   
   ---
   
   **Affects:** 2.4
   
   **Issue Links:**
   - [MDEPLOY-50](https://issues.apache.org/jira/browse/MDEPLOY-50) deploy:deploy fails without distributionManagment despite altDeploymentRepository being specified
    (_**"duplicates"**_)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org