Artifactoryセットアップがあり、Artifactoryに自動的にキャッシュされるアーティファクトのダウンロードにはMaven central repoを使用します。 Artifactoryに独自のアーティファクトをアップロード/展開します。アーティファクトをダウンロードするためのjcenterと、アーティファクトを配置するためのArtifactory
私は今jcenterで Mavenの中央リポジトリを交換し、私たち自身のアーティファクトを展開/アップロードするためともjcenter(およびサードパーティ)アーティファクトをキャッシュするため、当社のArtifactoryを引き続き使用したいにしたいです。すべての開発者に、settings.xmlファイルを変更するように依頼することができます。これは1回限りの作業で問題ありません。
設定ファイルの<repositories>
と<pluginRepositories>
セクションの変更を記述した@helmedeirosによるリンクthisを見ました。しかし、それらはArtifactoryサーバのURLを指定するセクションです。私がArtifactory URLを置き換えると、jcenterからアーティファクトをフェッチしてアップロードすることができますが、これは私が望むものではありません。
すべての開発者がであることを確認するにはどうすればいいですか?は、jcenterから(デプロイ/アップロードしないで)Artifactoryにのみ展開/アップロードできますか?
は、ここでは、settings.xml内の今持っているものです。
<?xml version="1.0" encoding="UTF-8"?>
<settings xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.1.0 http://maven.apache.org/xsd/settings-1.1.0.xsd" xmlns="http://maven.apache.org/SETTINGS/1.1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<servers>
<server>
<username>${security.getCurrentUsername()}</username>
<password>${security.getEscapedEncryptedPassword()!"*** Insert encrypted password here ***"}</password>
<id>central</id>
</server>
<server>
<username>${security.getCurrentUsername()}</username>
<password>${security.getEscapedEncryptedPassword()!"*** Insert encrypted password here ***"}</password>
<id>snapshots</id>
</server>
</servers>
<profiles>
<profile>
<repositories>
<repository>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>central</id>
<name>libs-release</name>
<url>https://inhouse-artifactory/artifactory/libs-release</url>
</repository>
<repository>
<snapshots />
<id>snapshots</id>
<name>libs-snapshot</name>
<url>https://inhouse-artifactory/artifactory/libs-snapshot</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>central</id>
<name>plugins-release</name>
<url>https://inhouse-artifactory/artifactory/plugins-release</url>
</pluginRepository>
<pluginRepository>
<snapshots />
<id>snapshots</id>
<name>plugins-snapshot</name>
<url>https://inhouse-artifactory/artifactory/plugins-snapshot</url>
</pluginRepository>
</pluginRepositories>
<id>artifactory</id>
</profile>
</profiles>
<activeProfiles>
<activeProfile>artifactory</activeProfile>
</activeProfiles>
</settings>
は、私は本当にこの点で任意の助けに感謝します。
@JBaruch:この問題に関して親切にお手伝いできますか? – Technext