[ https://issues.apache.org/jira/browse/MDEPLOY-115?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17965639#comment-17965639 ]
Olivier Lamy commented on MDEPLOY-115: -------------------------------------- This project has moved from Jira to GitHub Issues. This issue was migrated to [apache/maven-deploy-plugin#241|https://github.com/apache/maven-deploy-plugin/issues/241]. > Deploy should not fail if <distributionManagement> and <repository> does not > exist when used with -DaltDeploymentRepository > --------------------------------------------------------------------------------------------------------------------------- > > Key: MDEPLOY-115 > URL: https://issues.apache.org/jira/browse/MDEPLOY-115 > Project: Maven Deploy Plugin (Moved to GitHub Issues) > Issue Type: Bug > Components: deploy:deploy > Affects Versions: 2.4 > Reporter: Geoffrey De Smet > Assignee: Benjamin Bentmann > Priority: Major > > 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 was sent by Atlassian Jira (v8.20.10#820010)