0

私はmavenandroid -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

わかりました。mvnrelease:prepareの後にdistributionManagementタグを設定したので、変更は考慮されませんでした。release:rollbackを実行し、distributionManagementを使用してpomの変更をコミットし、release:prepareを再度実行すると、release:performが正常に機能するようになりました。

于 2011-06-21T09:17:15.857 に答える