2011-06-20 3 views
0

をして、問題を実行します。実行すると、次のエラーを取得:successed準備、私はリリース走っMavenのアンドロイドリリースは:私は、リリース後のmaven <a href="https://github.com/akquinet/android-archetypes/wiki/Android-release-archetype" rel="nofollow">android-release archetype</a></p> <p>を使用していますdistributionManagement

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

誰でも私の設定に何が間違っているのか、なぜこのエラーが出るのか説明できますか?ありがとうございます。

答えて

0

私は、mvn release:prepareの後にdistributionManagementタグを設定しましたので、変更は考慮されませんでした。私はリリースを実行しました:ロールバック、配布管理で私のポームの変更をコミット、再びリリースを実行しました:準備、そして今リリース:うまく動作します。

関連する問題

 関連する問題