【问题标题】:Maven android release:perform problem with distributionManagementMaven android 发布:distributionManagement 执行问题
【发布时间】:2011-06-20 16:09:09
【问题描述】:

我正在使用maven android-release archetype

发布:准备成功后,我运行了发布:执行并得到以下错误:

[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>

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

【问题讨论】:

    标签: android maven maven-release-plugin


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2011-09-15
      • 2012-11-12
      • 2013-03-11
      • 2011-01-20
      • 1970-01-01
      • 1970-01-01
      • 2017-11-21
      相关资源
      最近更新 更多