C:/myLibs/TDKLogging/TDKLogging-2.1.6.jar
戦争を生成するときに、にあるローカルjarをターゲットディレクトリにコピーしたいので、pomを次のように変更しました。
<repositories>
<repository>
<id>JBossNexus</id>
<name>JBoss Nexus Repository Manager</name>
<layout>default</layout>
<url>https://webgate.tdk.com/JBoss/nexus/content/groups/public</url>
</repository>
<repository>
<id>my-local-repo</id>
<url>file://C:/myLibs/</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>tdk.com.iot.log</groupId>
<artifactId>TDKLogging</artifactId>
<version>2.1.6</version>
<type>jar</type>
</dependency>
..
しかし、私はこのエラーが発生しました
Could not find artifact tdk.com.iot.log:TDKLogging:jar:2.1.6 in tdkPublicRepository (https://webgate.tdk.com/JBoss/nexus/content/groups/public)
特定のリポジトリでアーティファクトを検索するようにMavenに指示する方法???? プロジェクトは同時に複数のリポジトリで動作できますか???? ローカルリポジトリにはjarが1つしかないため、他のjarはパブリックリポジトリに保存されます。
複数のリポジトリが指定されている可能性があります。
<repositories>
<repository>
<id>Webgate repository</id>
<url>https://webgate.tdk.com/JBoss/nexus/content/groups/public/</url>
</repository>
<repository>
<id>JBoss repository</id>
<url>http://repository.jboss.org/nexus/content/groups/public/</url>
</repository>
<repository>
<id>java.net</id>
<url>https://maven.java.net/content/repositories/public/</url>
</repository>
</repositories>
あなたの特定の状況はどうですか?あなたはあなたのjarとpomをあなたのローカルリポジトリに追加しなければなりません。いくつかのコマンドを実行する必要があります。
これを確認してくださいカスタムライブラリをMavenローカルリポジトリに含める方法は?
この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。
侵害の場合は、連絡してください[email protected]
コメントを追加