2016-06-16 10 views
1

jboss-eap-quickstartsプロジェクトの依存関係を解決したいと思います。私はmaven3でそれを構築する:jboss-eap-quickstartsをビルドできません6.1.1

/usr/share/maven3/apache-maven-3.3.9/bin/mvn clean install 

私は例外を受け取っ:

[INFO] Scanning for projects... 
[ERROR] [ERROR] Some problems were encountered while processing the POMs: 
[ERROR] Non-resolvable import POM: Failure to find org.jboss.bom:jboss-javaee-6.0-with-tools:pom:1.0.4.Final-redhat-9 in https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced @ line 76, column 25 
[ERROR] 'dependencies.dependency.version' for javax.enterprise:cdi-api:jar is missing. @ line 92, column 21 
[ERROR] 'dependencies.dependency.version' for org.hibernate.javax.persistence:hibernate-jpa-2.0-api:jar is missing. @ line 99, column 21 
[ERROR] 'dependencies.dependency.version' for junit:junit:jar is missing. @ line 133, column 21 
[ERROR] 'dependencies.dependency.version' for org.jboss.arquillian.junit:arquillian-junit-container:jar is missing. @ line 141, column 21 
[ERROR] 'dependencies.dependency.version' for org.jboss.arquillian.protocol:arquillian-protocol-servlet:jar is missing. @ line 148, column 21 
[ERROR] Non-resolvable import POM: Failure to find org.jboss.spec:jboss-javaee-6.0:pom:3.0.2.Final-redhat-4 in https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced @ line 69, column 22 
[ERROR] 'dependencies.dependency.version' for javax.enterprise:cdi-api:jar is missing. @ line 82, column 19 
[ERROR] 'dependencies.dependency.version' for org.jboss.spec.javax.annotation:jboss-annotations-api_1.1_spec:jar is missing. @ line 90, column 19 
[ERROR] 'dependencies.dependency.version' for org.jboss.spec.javax.servlet:jboss-servlet-api_3.0_spec:jar is missing. @ line 97, column 19 
[ERROR] 'dependencies.dependency.version' for org.jboss.spec.javax.transaction:jboss-transaction-api_1.1_spec:jar is missing. @ line 104, column 20 
[ERROR] 'dependencies.dependency.version' for org.jboss.spec.javax.ejb:jboss-ejb-api_3.1_spec:jar is missing. @ line 111, column 20 
[ERROR] 'dependencies.dependency.version' for org.hibernate.javax.persistence:hibernate-jpa-2.0-api:jar is missing. @ line 118, column 19 
[ERROR] Non-resolvable import POM: Failure to find org.jboss.spec:jboss-javaee-6.0:pom:3.0.2.Final-redhat-4 in https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced @ line 68, column 25 
//etc 

指定された依存関係は、Mavenの中央に逃しています。

質問:別のアーティファクトを調べる必要がありますか?

プロジェクトではreadmeに記載されていません。

答えて

1

あなたのpom.xmlファイルに以下のリポジトリを追加する必要があります:

<repositories> 
    <repository> 
     <id>jboss-developer-staging-repository</id> 
     <url>http://jboss-developer.github.io/temp-maven-repo/</url> 
     <releases> 
      <enabled>true</enabled> 
     </releases> 
     <snapshots> 
      <enabled>false</enabled> 
     </snapshots> 
    </repository> 
    <repository> 
     <id>jboss-enterprise-maven-repository</id> 
     <url>https://maven.repository.redhat.com/ga/</url> 
     <releases> 
      <enabled>true</enabled> 
     </releases> 
     <snapshots> 
      <enabled>false</enabled> 
     </snapshots> 
    </repository> 
</repositories> 

<pluginRepositories> 
    <pluginRepository> 
     <id>jboss-developer-staging-repository</id> 
     <url>http://jboss-developer.github.io/temp-maven-repo/</url> 
     <releases> 
      <enabled>true</enabled> 
     </releases> 
     <snapshots> 
      <enabled>false</enabled> 
     </snapshots> 
    </pluginRepository> 
    <pluginRepository> 
     <id>jboss-enterprise-maven-repository</id> 
     <url>https://maven.repository.redhat.com/ga/</url> 
     <releases> 
      <enabled>true</enabled> 
     </releases> 
     <snapshots> 
      <enabled>false</enabled> 
     </snapshots> 
    </pluginRepository> 
</pluginRepositories> 

特にhttps://maven.repository.redhat.com/ga/もう一つは、あなたがインスタンスjboss-javaee-6.0-with-toolsのため、探している依存関係が含まれている、1.0.4.Final-redhat-9pomを分類しました。

これは、その7.1開発ブランチのpom.xmlに記載されています。しかし、6.1.1ブランチはなく、6.2.xは実際にリポジトリを指定せず、むしろlocal repositoryの設定を指定しています。

+0

ありがとうございます –

関連する問題