未能读取commons jxpath:commons jxpath:jar:1.3-osgi:的项目描述符



在通过maven进行构建时,我面临下面提到的错误。我尝试过很多解决方案,比如使用镜像,但都不起作用。请给我指明解决问题的方向。

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

问题是codehaus.org已经关闭,不再可用,但Mule的旧版本仍然提到该存储库是解决一些依赖关系的地方。特别是commons-jxpath:commons-jxpath:jar:1.3-osgi,它似乎是1.3版本的非标准重新绑定,添加了OSGI支持。

你能做什么:

  1. 使用Mule的新版本,该版本不再依赖于标准存储库中不可用的自定义工件
  2. 找到承载此工件的不同存储库,并将自定义存储库位置添加到usersettings.xml或projectpom.xml中

使用选项2,随机谷歌搜索显示此存储库:(不确定这是否是一个好选择!)

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

最新更新