2016-05-19 27 views
0

私はプロジェクトをビルドするためにMavenを使用しています。リモートのMavenコンポーネントに依存しています。私は、すべての瓶がリモートでもローカルでも利用できることを確認しましたが、私はこのエラーを理解していません。これを解決するために私を助けてください。解決できないプラグイン拡張子

Multiple annotations found at this line: - Project build error: Unresolveable build extension: Plugin com.atlassian.maven.plugins:maven-stash-plugin:6.0.0 or one of its dependencies could not be resolved: Failed to collect dependencies at com.atlassian.maven.plugins:maven-stash-plugin:jar:6.0.0 -> com.atlassian.maven.plugins:maven-amps-plugin:jar:6.0.0 -> commons-io:commons-io:jar:2.4- Error resolving version for plugin 'org.apache.maven.plugins:maven-site-plugin' from the repositories [local (C:\xenv\eclipse\maven), nexus (http://nyhublnx3.nam.nsroot.net:8081/nexus/content/repositories/thirdparty)] : Plugin not found in any plugin repository

私のsettings.xml:

<settings> 
    <localRepository>maven</localRepository> 
    <mirrors> 
     <mirror> 
      <id>nexus</id> 
      <name>citi central repository</name> 
      <url>nyhublnx3.nam.nsroot.net:8081/nexus/content/repositories/…; 
      <mirrorOf>*</mirrorOf> 
     </mirror> 
    </mirrors> 

    <profiles> 
     <profile> 
      <activation> 
       <activeByDefault>True</activeByDefault> 
      </activation> 
      <pluginRepositories> 
       <pluginRepository> 
        <id>central</id> 
        <name>xenv repository</name> 
        <url>central/</url>; 
       </pluginRepository> 
      </pluginRepositories> 
      <repositories> 
       <repository> 
        <id>central</id> 
        <name>xenv repository</name> 
        <url>central/</url> 
        <releases> 
         <enabled>true</enabled> 
        </releases> 
        <snapshots> 
         <enabled>false</enabled> 
        </snapshots> 
       </repository> 
      </repositories> 
     </profile> 
    </profiles> 
</settings> 
+0

pom.xmlの外観はどうですか?コマンドラインやIDE経由でMavenを実行していますか? – Mifeet

+0

[ERROR]解決できないビルド拡張:プラグイン com.atlassian.maven.plugins:maven-stash-plugin:6.0.0またはその依存関係の1つを解決できませんでした: com.atlassian.maven.pluginsで依存関係を収集できませんでした。 :maven-stash-plugin:jar:6.0.0 - > com.atlassian.maven.plugins:maven-amps-plugin:jar:6.0.0 - > commons-io:commons-io:jar:2.4: のアーティファクト記述子の読み取りに失敗しました。commons-io:commons-io:jar:2.4:org.apache.commonsの検索に失敗しました:commons-parent:pom:25 in http://nyhublnx3.nam.nsroot.net:8 081/nexus/content/repositories/thirdparty –

+0

このエラーは、pom.xmlの15行目のエラーをポップアップ表示します –

答えて

0

解決できないプラグインの依存関係があります。 nyhublnx3.nam.nsroot.net:8081/nexus/content/repositories/をミラーとしてすべてのreposに設定しているため、これはプラグインをダウンロードするときにmavenが参考にしている唯一のソースです。あなたは、エラーメッセージでそれを見ることができます。URL central/が怪しいと思われるという事実の横に(in this articleを説明するように、これらの設定は無視されますあなたはsettings.xml内のいくつかの他のリポジトリを定義した

from the repositories [local (C:\xenv\eclipse\maven), nexus (http://nyhublnx3.nam.nsroot.net:8081/nexus/content/repositories/thirdparty)] :

、しかし、あなたを行います本当にこの住所にレポがありますか?)。

  • 本当にすべてのメッセージにhttp://nyhublnx3.nam.nsroot.netレポを使用したい場合は、必要なすべてのMavenプラグインを含むように適切に設定されたレポを持っていないことが原因です。
  • プラグインが別のリポジトリからのものであると思われる場合は、 centralの場合、<mirrorOf>*</mirrorOf>を使用してこのRepoを上書きしてしまうという問題があります。
+0

お返事ありがとうございます。はい、私はリモートリポジトリが適切に設定されていないのか疑問です。私はこれを使用することができます知っている私に教えてくださいmvnの依存関係:getDrepoUrl = something -Dartifact =グループ:アーティファクト:バージョン –

+0

こんにちは私はまだmavenビルドでエラーが発生している –

関連する問題