0

我正在使用 maven android-release 原型

在 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

但在我的 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>

谁能解释我的配置有什么问题以及为什么会出现此错误?提前非常感谢。

4

1 回答 1

0

好的,我在mvn release:prepare之后设置了distributionManagement标签,所以没有考虑修改。我执行了 release:rollback,使用 distributionManagement 提交了我的 pom 修改,再次执行了 release:prepare,现在 release:perform 工作正常。

于 2011-06-21T09:17:15.857 回答