2016-05-23 5 views
0

mavenを使用してビルドする際に、以下のエラーが発生しました。私はミラーを使用するような多くのソリューションを試しましたが、どちらも機能していません。この問題を解決するには、ある方向で私を指摘してください。commons-jxpathのアーティファクト記述子の読み込みに失敗しました:commons-jxpath:jar:1.3-osgi:

Downloading: http://repository.codehaus.org/org/beanshell/bsh/2.0b4-osgi/bsh-2.0b4-osgi.pom 
[INFO] ------------------------------------------------------------------------ 
[INFO] BUILD FAILURE 
[INFO] ------------------------------------------------------------------------ 
[INFO] Total time: 6.779 s 
[INFO] Finished at: 2016-05-23T13:26:22+05:30 
[INFO] Final Memory: 16M/308M 
[INFO] ------------------------------------------------------------------------ 
[ERROR] Failed to execute goal on project net-myproject-ticketing-reports: Could not resolve dependencies for project net.myproject.ticketing.reports:net-myproject-ticketing-reports:jar:1.0.1-SNAPSHOT: Failed to collect dependencies at com.myproject.resourcelib.thirdparty.framework:mule-mule-2.2.1:jar:2.2.1 -> org.mule.transports:mule-transport-bpm:jar:2.2.1 -> org.mule.modules:mule-module-client:jar:3.4.0 -> org.mule.modules:mule-module-xml:jar:3.4.0 -> commons-jxpath:commons-jxpath:jar:1.3-osgi: Failed to read artifact descriptor for commons-jxpath:commons-jxpath:jar:1.3-osgi: Could not transfer artifact commons-jxpath:commons-jxpath:pom:1.3-osgi from/to codehaus (http://repository.codehaus.org): Failed to transfer file: http://repository.codehaus.org/commons-jxpath/commons-jxpath/1.3-osgi/commons-jxpath-1.3-osgi.pom. Return code is: 503 , ReasonPhrase:Service Unavailable. -> [Help 1] 
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. 
[ERROR] Re-run Maven using the -X switch to enable full debug logging. 
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles: 
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException 

答えて

0

問題はcodehaus.orgが閉じられたことではない、もはや入手可能ですが、ミュールの古いバージョンでは、まだいくつかの依存関係を解決するための場所として、そのリポジトリに言及します。具体的にはcommons-jxpath:commons-jxpath:jar:1.3-osgiであり、OSGIサポートが追加された非標準のバージョン1.3の再バンドルに見えます。あなたは何ができるか

  1. は、標準のリポジトリで利用できないカスタムアーティファクトにno longer depends
  2. は、このアーティファクトをホストする別のリポジトリを見つけて、カスタムリポジトリの場所を追加することミュールの新しいバージョンを使用しますユーザーsettings.xmlまたはプロジェクトpom.xmlに追加します。オプション2ランダムグーグルで

このリポジトリを提供する:(!それは良い選択だかどうかわからない)

<repositories> 
    <repository> 
    <id>mule-old-dependencies</id> 
    <url>http://repository.idega.com/maven2</url> 
    <snapshots> 
     <enabled>false</enabled> 
    </snapshots> 
    </repository> 
</repositories> 
+0

おかげアントンあなたの答えのために!!!!! – kaps

関連する問題