我想了解maven-release-plugin(版本2.0,CVS)。 release-prepare效果很好。 但我不明白为什么发布执行不起作用??我已经测试了部署功能,并且可以将工件部署到远程仓库中,而无任何例外。maven版本:执行失败
[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'
这将很难回答在这里,也许你可以给这个线程阅读http://stackoverflow.com/questions/810957/maven-release-plugin-war-stories – 2010-02-24 10:23:50
你添加了什么配置发布插入?你使用的是什么版本的发布插件?什么版本的Maven? – 2010-02-24 13:58:26