Artifactory 2.4.0 と Jenkins 1.438 を使用しており、いくつかのモジュールを含む maven プロジェクトがあります。すべてのモジュール (jar と 1 つの結果の war) を Jenkins によってリモートの Artifactory サーバーにデプロイする必要があります。
Artifactory のユーザー管理者はデフォルトのパスワード (password) を使用しており、jenkins で実行しようとしたすべてのビルドは正常に動作します。そのため、Artifactory の管理者パスワードを変更し、管理者の新しい資格情報で設定を更新することを決定したとき、jenkins ビルド ログに次のエラーが発生しました。
目標 org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) プロジェクト pilotoExemplo の実行に失敗しました: アーティファクトのデプロイに失敗しました: アーティファクトを転送できませんでした br.com.pilotoExemplo:pilotoExemplo:pom:2.1 .0.11-20120705.160113-1 から/へのスナップショット ({ip_server}/artifactory/libs-snapshot-local): ファイルの転送に失敗しました: {ip_server}/artifactory/libs-snapshot-local/br/com/pilotoExemplo/pilotoExemplo/2.1 .0.11-SNAPSHOT/pilotExemplo-2.1.0.11-20120705.160113-1.pom. 戻りコード: 401
以前にこの問題を見た人はいますか?Google でこの検索のようなものは見つかりませんでした。
これが私のsettings.xmlです:
<mirrors>
<mirror>
<mirrorOf>*</mirrorOf>
<name>repositorio</name>
<url>{ip_server}/artifactory/repo</url>
<id>repositorio</id>
</mirror>
</mirrors>
<profiles>
<profile>
<repositories>
<repository>
<snapshots>
<enabled>true</enabled>
</snapshots>
<id>central</id>
<name>libs-release</name>
<url>{ip_server}/artifactory/libs-release/</url>
</repository>
<repository>
<snapshots />
<id>snapshots</id>
<name>libs-snapshot</name>
<url>{ip_server}/artifactory/libs-snapshot/</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>central</id>
<name>plugins-release</name>
<url>{ip_server}/artifactory/plugins-release</url>
</pluginRepository>
</pluginRepositories>
<id>artifactory</id>
<distributionManagement>
<repository>
<id>release</id>
<url>{ip_server}/artifactory/libs-release-local/</url>
</repository>
<snapshotRepository>
<id>snapshot</id>
<url>{ip_server}/artifactory/libs-snapshot-local/</url>
</snapshotRepository>
</distributionManagement>
</profile>
</profiles>
<activeProfiles>
<activeProfile>artifactory</activeProfile>
</activeProfiles>
<servers>
<server>
<id>snapshot</id>
<username>admin</username>
<password>newPassword</password>
</server>
<server>
<id>release</id>
<username>admin</username>
<password>newPassword</password>
</server>
<server>
<id>repositorio</id>
<username>admin</username>
<password>newPassword</password>
</server>
</servers>