Maven android发布:分布管理执行问题
我正在使用 maven android-release archetype
发布后:准备成功,我运行了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
但在我的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>
有人可以解释一下我的配置有什么问题以及为什么会出现此错误吗?预先非常感谢。
I am using the maven android-release archetype
After the release:prepare successed, I ran a release:perform and get the following error :
[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 :
<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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好吧,我在mvnrelease:prepare之后设置了distributionManagement标签,所以没有考虑到修改。我执行了release:rollback,使用distributionManagement提交了我的pom的修改,再次执行了release:prepare,现在release:perform工作正常。
Ok, I set the distributionManagement tag after the mvn release:prepare, so the modification was not taken into account. 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.