2016-03-23 16 views
1

jboss.fuse.bomを依存関係として使用しようとしているときに、次のmavenビルドの問題が発生しました。jboss.fuse.bomを使用しているときに解決できない依存関係の問題

Non-resolvable import POM: Could not find artifact org.jboss.fuse.bom:jboss-fuse-parent:pom:6.1.0.redhat-399 in central (https://repo.maven.apache.org/maven2) 
The dependacy 

依存関係のpom.xml

<dependency> 
    <groupId>org.jboss.fuse.bom</groupId> 
    <artifactId>jboss-fuse-parent</artifactId> 
    <version>6.1.0.redhat-399</version> 
    <type>pom</type> 
    <scope>import</scope> 
</dependency> 

答えて

1

では、この依存関係は、中央リポジトリで利用できない、ということは明らかです。以下に示すように、私は、この問題を解決するためにポンポンでのJBossのリポジトリを定義した:

<repositories> 
    <repository> 
     <id>repo2</id> 
     <name>jboss repo</name> 
     <url>https://repository.jboss.org/nexus/content/groups/ea/</url> 
    </repository>  
</repositories> 

を今ビルドが依存関係を解決するために、デフォルトのリポジトリ(https://repo.maven.apache.org/maven2)と、新たに定義されたJBossのリポジトリを使用します。 リファレンス:Setting up multiple maven repositories

関連する問題