我想了解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