[英]Maven android release:perform problem with distributionManagement
I am using the maven android-release archetype 我正在使用Maven android-release原型
After the release:prepare successed, I ran a release:perform and get the following error : 在release:prepare成功之后,我运行了release:perform并得到以下错误:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.5:deploy (default-deploy) on project xxx: Deployment failed: repository element was not specified in the POM inside distributionManagement element or in -DaltDeploymentRepository=id::layout::url parameter
But in my pom.xml I have the following : 但是在我的pom.xml中,我有以下内容:
<distributionManagement>
<repository>
<id>nexus-releases</id>
<name>RepositoryProxyRel</name>
<url>http://server:8081/nexus/content/repositories/releases/</url>
</repository>
<snapshotRepository>
<id>nexus-snapshots</id>
<name>RepositoryProxySnap</name>
<url>http://server:8081/nexus/content/repositories/snapshots/</url>
</snapshotRepository>
Could anybody explain what is wrong with my configuration and why I get this error ? 谁能解释我的配置出了什么问题以及为什么会出现此错误? Thanks a lot in advance. 非常感谢。
Ok, I set the distributionManagement tag after the mvn release:prepare, so the modification was not taken into account. 好的,我在mvn release:prepare之后设置了distributionManagement标签,所以没有考虑修改。 I performed a release:rollback, commited the modification of my pom with the distributionManagement, performed again a release:prepare, and now the release:perform works fine. 我执行了release:rollback,使用distributionManagement提交了对pom的修改,再次执行了release:prepare,现在release:perform可以正常工作。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.