Maven android发布:分布管理执行问题

发布于 2024-11-16 10:29:50 字数 1074 浏览 2 评论 0原文

我正在使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

乙白 2024-11-23 10:29:50

好吧,我在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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文