Question

I'm trying to understand the maven-release-plugin (version 2.0, CVS). The release-prepare works well. But I do not understand why the release-perform don't work?? I've tested the deploy feature and I can deploy artifacts to the remote repo without any exceptions.

[INFO] [ERROR] BUILD ERROR
[INFO] [INFO] Failed to configure plugin parameters for: org.apache.maven.plugins:maven-deploy-plugin:2.4
[INFO] check that the following section of the pom.xml is present and correct:
[INFO] <distributionManagement>
[INFO]   <!-- use the following if you're not using a snapshot version. -->
[INFO]   <repository>
[INFO]     <id>repo</id>
[INFO]     <name>Repository Name</name>
[INFO]     <url>scp://host/path/to/repo</url>
[INFO]   </repository>
[INFO]   <!-- use the following if you ARE using a snapshot version. -->
[INFO]   <snapshotRepository>
[INFO]     <id>repo</id>
[INFO]     <name>Repository Name</name>
[INFO]     <url>scp://host/path/to/repo</url>
[INFO]   </snapshotRepository>
[INFO] </distributionManagement>
[INFO]
[INFO] Cause: Class 'org.apache.maven.artifact.repository.ArtifactRepository' cannot be instantiated
[INFO] Maven execution failed, exit code: '1'
Was it helpful?

Solution 2

I've resolve the issue. I tried to make the release from the my child POM. The repository url specified in the parent POM. But why my child POM didn't inherit it...

OTHER TIPS

First you should make sure you have configured the distributionManagement in the right way, as suggested by the error itself. Then you try running the release:prepare goal specifying to the command line “-Dresume=false” like this:

$ mvn release:prepare -Dresume=false

Upon successful completion, run the release:perform goal again, the error should hopefully disappear.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top