0

アーティファクトにサードパーティのjarを追加しました(libs-releaseリポジトリとそのmicrosoft jdbc 4コネクタ)。

私が抱えている問題は、maven / apache servicemixが次の設定でjarをダウンロードできないことです。また、常に最初にリモートリポジトリからコンテンツをダウンロードしようとしているようです。

<mirrors>
<mirror>
  <mirrorOf>*</mirrorOf>
  <name>remote-repos</name>
  <url>http://...:8081/artifactory/remote-repos</url>
  <id>remote-repos</id>
</mirror>
</mirrors>
<profiles>
<profile>
  <repositories>
    <repository>
      <snapshots>
        <enabled>false</enabled>
      </snapshots>
      <id>central</id>
      <name>libs-release</name>
      <url>http://...:8081/artifactory/libs-release</url>
    </repository>
    <repository>
      <snapshots/>
      <id>snapshots</id>
      <name>libs-snapshot</name>
      <url>http://...:8081/artifactory/libs-snapshot</url>
    </repository>
  </repositories>
  <pluginRepositories>
    <pluginRepository>
      <snapshots>
        <enabled>false</enabled>
      </snapshots>
      <id>central</id>
      <name>plugins-release</name>
      <url>http://...:8081/artifactory/plugins-release</url>
    </pluginRepository>
    <pluginRepository>
      <snapshots/>
      <id>snapshots</id>
      <name>plugins-snapshot</name>
      <url>http://...:8081/artifactory/plugins-snapshot</url>
    </pluginRepository>
  </pluginRepositories>
  <id>artifactory</id>
</profile>

何かアイデアが間違っています/どうすればこれを修正できますか?一時的な修正は、jarをローカルリポジトリにインストールすることですが、他の作業用PCではインストールしたくありません。

乾杯。

4

1 に答える 1

1

Artifactoryの「remote-repos」リポジトリは、リモートリポジトリを集約する仮想リポジトリです:) jarをローカルリポジトリに追加したため、「remote-repos」から解決することはできません。あなたの鏡を指さす-「レポ」への任意のものが仕事をするはずです。

于 2012-07-06T22:09:39.580 に答える