2016-12-28 18 views
0

グラフィカルなCamelプロジェクトの次のPOMファイルでmaven installまたはmaven cleanを実行するとエラーが発生します。失敗:私はJBoss Fuse/Red Hat JBoss開発者スタジオ、ヒューズ統合プロジェクトエラー

<?xml version="1.0" encoding="UTF-8"?> 
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" 
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 
    <modelVersion>4.0.0</modelVersion> 
    <groupId>com.mycompany</groupId> 
    <artifactId>camel-blueprint</artifactId> 
    <version>1.0.0-SNAPSHOT</version> 
    <packaging>bundle</packaging> 
    <name>Camel Blueprint Quickstart</name> 
    <description>Empty Camel Blueprint Example</description> 
    <licenses> 
    <license> 
     <name>Apache License, Version 2.0</name> 
     <url>http://www.apache.org/licenses/LICENSE-2.0.html</url> 
     <distribution>repo</distribution> 
    </license> 
    </licenses> 

    <properties> 
    <camel.version>2.17.3</camel.version> 
    <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> 
    <version.maven-bundle-plugin>2.3.7</version.maven-bundle-plugin> 
    **<jboss.fuse.bom.version>6.3.0.redhat-187</jboss.fuse.bom.version>** 
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> 
    </properties> 



    <dependencyManagement> 
    <dependencies> 
     <dependency> 
     <groupId>org.jboss.fuse.bom</groupId> 
     <artifactId>jboss-fuse-parent</artifactId> 
     <version>${jboss.fuse.bom.version}</version> 
     <type>pom</type> 
     <scope>import</scope> 
     </dependency> 
    </dependencies> 
    </dependencyManagement> 

    <dependencies> 
    <dependency> 
     <groupId>org.apache.camel</groupId> 
     <artifactId>camel-core</artifactId> 
     <version>2.17.3</version> 
    </dependency> 

    <dependency> 
     <groupId>org.apache.camel</groupId> 
     <artifactId>camel-blueprint</artifactId> 
     <version>2.17.3</version> 
    </dependency> 

    <dependency> 
     <groupId>org.slf4j</groupId> 
     <artifactId>slf4j-api</artifactId> 
     <version>1.5.4</version> 
    </dependency> 

    <dependency> 
     <groupId>org.slf4j</groupId> 
     <artifactId>slf4j-log4j12</artifactId> 
     <version>1.7.5</version> 
    </dependency> 

    <dependency> 
     <groupId>log4j</groupId> 
     <artifactId>log4j</artifactId> 
     <version>2.7</version> 
    </dependency> 

    <dependency> 
     <groupId>org.apache.camel</groupId> 
     <artifactId>camel-test-blueprint</artifactId> 
     <version>2.17.3</version> 
     <scope>test</scope> 
    </dependency> 
    </dependencies> 


    <repositories> 

    <repository> 
     <releases> 
     <enabled>true</enabled> 
     <updatePolicy>never</updatePolicy> 
     </releases> 
     <snapshots> 
     <enabled>false</enabled> 
     </snapshots> 
     <id>fuse-public-repository</id> 
     <name>FuseSource Community Release Repository</name> 
     **<url>https://repo.fusesource.com/nexus/content/groups/public</url>** 
    </repository> 

    <repository> 
      <id>redhat-ea-repository</id> 
      <url>https://maven.repository.redhat.com/earlyaccess/all</url> 
      <releases> 
       <enabled>true</enabled> 
      </releases> 
      <snapshots> 
       <enabled>false</enabled> 
      </snapshots> 
     </repository> 

    <repository> 
     <releases> 
     <enabled>true</enabled> 
     <updatePolicy>never</updatePolicy> 
     </releases> 
     <snapshots> 
     <enabled>false</enabled> 
     </snapshots> 
     <id>red-hat-ga-repository</id> 
     <name>Red Hat GA Repository</name> 
     <url>https://maven.repository.redhat.com/ga</url> 
    </repository> 

    </repositories> 

    <pluginRepositories> 

    <pluginRepository> 
     <releases> 
     <enabled>true</enabled> 
     <updatePolicy>never</updatePolicy> 
     </releases> 
     <snapshots> 
     <enabled>false</enabled> 
     </snapshots> 
     <id>fuse-public-repository</id> 
     <name>FuseSource Community Release Repository</name> 
     <url>https://repo.fusesource.com/nexus/content/groups/public</url> 
    </pluginRepository> 

    <pluginRepository> 
     <releases> 
     <enabled>true</enabled> 
     <updatePolicy>never</updatePolicy> 
     </releases> 
     <snapshots> 
     <enabled>false</enabled> 
     </snapshots> 
     <id>red-hat-ga-repository</id> 
     <name>Red Hat GA Repository</name> 
     <url>https://maven.repository.redhat.com/ga</url> 
    </pluginRepository> 

    </pluginRepositories> 


    <build> 
    <defaultGoal>install</defaultGoal> 
    <plugins> 
     <plugin> 
     <groupId>org.apache.felix</groupId> 
     <artifactId>maven-bundle-plugin</artifactId> 
     <version>${version.maven-bundle-plugin}</version> 
     <extensions>true</extensions> 
     <configuration> 
      <instructions> 
      <Bundle-SymbolicName>cameltry</Bundle-SymbolicName> 
      <Bundle-Name>Empty Camel Blueprint Example [cameltry]</Bundle-Name></instructions></configuration> 
     </plugin> 

     <plugin> 
     <artifactId>maven-compiler-plugin</artifactId> 
     <version>3.5.1</version> 
     <configuration> 
      <source>1.8</source> 
      <target>1.8</target> 
     </configuration> 
     </plugin> 
     <plugin> 
     <artifactId>maven-resources-plugin</artifactId> 
     <version>3.0.1</version> 
     <configuration> 
      <encoding>UTF-8</encoding> 
     </configuration> 
     </plugin> 
     <plugin> 
     <groupId>org.apache.camel</groupId> 
     <artifactId>camel-maven-plugin</artifactId> 
     <version>${camel.version}</version> 
     <configuration> 
      <useBlueprint>true</useBlueprint> 
     </configuration> 
     </plugin> 
    </plugins> 
    </build> 
</project> 

解像不可能な輸入POMを次のように私はコンソールで取得するエラーメッセージがあるが、以下のように

マイポンポンflieがあるRed HatのJBoss Developer Studioを使用しています org.jboss.fuse.bom:jboss-fuse-parent:pom:6.3.0.redhat-187 in https://(ourネクサスリポジトリ)/ content/groups/publicが ローカルリポジトリにキャッシュされていた場合、解決されません更新まで再試行しました(私たちのネクサスリポジトリ).COMの間隔が経過したかのアップデートが 強制@ライン29、列です19 - > [ヘルプ2]するために、私の長い検索を終了します[ERROR]

任意およびすべてのヘルプ問題を解決し、私の永遠の感謝を得る。

P.S.私は既に必要な依存プロファイルを得るためにmaven設定を完了しました。Redhat Documentation Website

第2版POMは28.12.16 1500時間CETの推奨事項に基づいています。

<?xml version="1.0" encoding="UTF-8"?> 
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" 
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 
    <modelVersion>4.0.0</modelVersion> 
    <groupId>com.mycompany</groupId> 
    <artifactId>camel-blueprint</artifactId> 
    <version>1.0.0-SNAPSHOT</version> 
    <packaging>bundle</packaging> 
    <name>Camel Blueprint Quickstart</name> 
    <description>Empty Camel Blueprint Example</description> 
    <licenses> 
    <license> 
     <name>Apache License, Version 2.0</name> 
     <url>http://www.apache.org/licenses/LICENSE-2.0.html</url> 
     <distribution>repo</distribution> 
    </license> 
    </licenses> 

    <properties> 
    <camel.version>2.17.3</camel.version> 
    <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> 
    <version.maven-bundle-plugin>2.3.7</version.maven-bundle-plugin> 
    **<jboss.fuse.bom.version>6.3.0.redhat-189</jboss.fuse.bom.version>** 
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> 
    </properties> 



    <dependencyManagement> 
    <dependencies> 
     <dependency> 
     <groupId>org.jboss.fuse.bom</groupId> 
     <artifactId>jboss-fuse-parent</artifactId> 
     <version>${jboss.fuse.bom.version}</version> 
     <type>pom</type> 
     <scope>import</scope> 
     </dependency> 
    </dependencies> 
    </dependencyManagement> 

    <dependencies> 
    <dependency> 
     <groupId>org.apache.camel</groupId> 
     <artifactId>camel-core</artifactId> 
     <version>2.17.3</version> 
    </dependency> 

    <dependency> 
     <groupId>org.apache.camel</groupId> 
     <artifactId>camel-blueprint</artifactId> 
     <version>2.17.3</version> 
    </dependency> 

    <dependency> 
     <groupId>org.slf4j</groupId> 
     <artifactId>slf4j-api</artifactId> 
     <version>1.5.4</version> 
    </dependency> 

    <dependency> 
     <groupId>org.slf4j</groupId> 
     <artifactId>slf4j-log4j12</artifactId> 
     <version>1.7.5</version> 
    </dependency> 

    <dependency> 
     <groupId>log4j</groupId> 
     <artifactId>log4j</artifactId> 
     <version>2.7</version> 
    </dependency> 

    <dependency> 
     <groupId>org.apache.camel</groupId> 
     <artifactId>camel-test-blueprint</artifactId> 
     <version>2.17.3</version> 
     <scope>test</scope> 
    </dependency> 
    </dependencies> 


    <repositories> 

    <repository> 
     <releases> 
     <enabled>true</enabled> 
     <updatePolicy>never</updatePolicy> 
     </releases> 
     <snapshots> 
     <enabled>false</enabled> 
     </snapshots> 
     <id>fuse-public-repository</id> 
     <name>FuseSource Community Release Repository</name> 
     **<url>https://repository.jboss.org/nexus/content/groups/ea/org/jboss/fuse/bom/jboss-fuse-parent/</url>** 
    </repository> 



     <!--<repository> 
     <releases> 
     <enabled>true</enabled> 
     <updatePolicy>never</updatePolicy> 
     </releases> 
     <snapshots> 
     <enabled>false</enabled> 
     </snapshots> 
     <id>6.3.0 jboss parent</id> 
     <name>jbp</name> 
     <url>https://repository.jboss.org/nexus/content/groups/ea/org/jboss/fuse/bom/jboss-fuse-parent/ /</url> 
    </repository> --> 

      <repository> 
     <releases> 
     <enabled>true</enabled> 
     <updatePolicy>never</updatePolicy> 
     </releases> 
     <snapshots> 
     <enabled>false</enabled> 
     </snapshots> 
     <id>Jboss Fuse snapshots repo</id> 
     <name>JFSR</name> 
     <url>https://repo.fusesource.com/nexus/content/groups/public-snapshots/</url> 
    </repository> 



    <repository> 
     <releases> 
     <enabled>true</enabled> 
     <updatePolicy>never</updatePolicy> 
     </releases> 
     <snapshots> 
     <enabled>false</enabled> 
     </snapshots> 
     <id>red-hat-ga-repository</id> 
     <name>Red Hat GA Repository</name> 
     <url>https://maven.repository.redhat.com/ga</url> 
    </repository> 

    </repositories> 

    <pluginRepositories> 

    <pluginRepository> 
     <releases> 
     <enabled>true</enabled> 
     <updatePolicy>never</updatePolicy> 
     </releases> 
     <snapshots> 
     <enabled>false</enabled> 
     </snapshots> 
     <id>fuse-public-repository</id> 
     <name>FuseSource Community Release Repository</name> 
     <url>https://repo.fusesource.com/nexus/content/groups/public</url> 
    </pluginRepository> 

    <pluginRepository> 
     <releases> 
     <enabled>true</enabled> 
     <updatePolicy>never</updatePolicy> 
     </releases> 
     <snapshots> 
     <enabled>false</enabled> 
     </snapshots> 
     <id>red-hat-ga-repository</id> 
     <name>Red Hat GA Repository</name> 
     <url>https://maven.repository.redhat.com/ga</url> 
    </pluginRepository> 

    </pluginRepositories> 


    <build> 
    <defaultGoal>install</defaultGoal> 
    <plugins> 
     <plugin> 
     <groupId>org.apache.felix</groupId> 
     <artifactId>maven-bundle-plugin</artifactId> 
     <version>${version.maven-bundle-plugin}</version> 
     <extensions>true</extensions> 
     <configuration> 
      <instructions> 
      <Bundle-SymbolicName>cameltry</Bundle-SymbolicName> 
      <Bundle-Name>Empty Camel Blueprint Example [cameltry]</Bundle-Name></instructions></configuration> 
     </plugin> 

     <plugin> 
     <artifactId>maven-compiler-plugin</artifactId> 
     <version>3.5.1</version> 
     <configuration> 
      <source>1.8</source> 
      <target>1.8</target> 
     </configuration> 
     </plugin> 
     <plugin> 
     <artifactId>maven-resources-plugin</artifactId> 
     <version>3.0.1</version> 
     <configuration> 
      <encoding>UTF-8</encoding> 
     </configuration> 
     </plugin> 
     <plugin> 
     <groupId>org.apache.camel</groupId> 
     <artifactId>camel-maven-plugin</artifactId> 
     <version>${camel.version}</version> 
     <configuration> 
      <useBlueprint>true</useBlueprint> 
     </configuration> 
     </plugin> 
    </plugins> 
    </build> 
</project> 

答えて

1

問題は解決しました。問題は、mavenがjboss reposではなくrepoのファイルを探すためにsettings.xmlによって指示されていたことです。これは、これらのreposがネクサスに反映されていないことをmavenに伝えたsettings.xmlの設定が欠落していたためです。したがって、私のsettings.xmlのmirrorOfセクションに '!jbossRepo(X)'を追加すると、これらのファイルは私たちのネクサスでミラーリングされていなかったとmavenに伝えられ、これらのファイルを検索する必要があります。

このプロファイルは、linkの指示に従ってsettings.xmlで設定できます。

だからあなたは私のようなプロキシの過多背後からのJBossはRed Hat Developer Studioを実行しようとしている場合は、単純に、上記のリンクを持つスタジオのための

  1. 設定の達人。
  2. settings.xmlファイルの 'mirrorsOf'の前にあるmirrorsブロックに '!jbossRepos(x)'を追加します。
  3. 完了!

RobEのおかげで、私を正しい方向に向けることができました。私は負債です。

0

お使いのブラウザでチェックし、依存org.jboss.fuse.bom:jboss-fuse-parent:pom:6.3.0.redhat-187は、使用しているリポジトリのいずれかに存在する場合。 あなたのネクサスレポにはこのアーティファクトが(正確に!)含まれていますか?

「はい」の場合: 理由は、認証または接続に失敗する可能性があります。このレポの資格情報が正しく設定されていることを確認し、レポがアカウントへの許可をアーティファクトに付与します。

パラメータ-Xでビルドを実行すると、詳細情報を取得するのに役立ちます。

いいえの場合: (あなたのポンポンでレポがバージョン187が含まれていません:https://repo.fusesource.com/nexus/content/groups/public/org/jboss/fuse/bom/jboss-fuse-parent/)を が不足しているアーティファクトか(許容できるならば)あなたのレポに存在するバージョンにアーチファクトを変更が含まれているレポを追加しません。

https://repository.jboss.org/nexus/content/groups/ea/org/jboss/fuse/bom/jboss-fuse-parent/ は候補であるが、それは正確なバージョン187 が含まれていないバージョンに変更が6.3.0.redhat-187から05許容できますか?

+0

ご連絡いただきありがとうございます。 最初に、Googleのネクサスレポには検索で確認されたアーティファクトが含まれていません。 第2に、私のプロキシの設定がうまくいくように見えるので、上記の推奨事項に従って「いいえ」のケースで私のpomファイルに次の変更を加えました。 6.3.0.redhat-187 。 が に変更されました。 6.3.0.redhat-189 と、 https://repo.fusesource.com/nexus/content/groups/public がURLに変更されました https://repository...groups/ea/org/jboss/fuse/bom/jboss-fuse-parent/ –

+0

しかし、私はまだ同じ問題を抱えています。 MavenがGoogleのネクサスリポジトリでPOMを検索しているようです。 https://repository.jboss.org/nexus/content/groups/ea/org/jboss/fuse/bom/jboss-fuse-parent/?にURLを強制的にチェックする方法はありますか? –

+0

uodate POMを共有してください。出力(-Xパラメータ付き)をチェックしましたか? Mavenが新しいjbossレポに連絡しているかどうかを確認しますか? – RobE

関連する問題