ivy cannot resolve org.springframework dependencies

好久不见. 提交于 2019-12-23 13:34:06

问题


I want to use the Ivy Eclipse plugin to reolve the spring-oxm dependency.

<dependency org="org.springframework" name="spring-oxm" rev="3.2.2.RELEASE" />

But I got below error:

Some projects fail to be resolved Impossible to resolve dependencies of my class name unresolved dependency: org.restlet.jee#org.restlet;2.1.1: not found unresolved dependency: org.restlet.jee#org.restlet.ext.servlet;2.1.1: not found

I googled, and people say the restlet-2.1.1 no longer exist. And I have no idea how to solve this problem.


回答1:


Its available in this repo http://maven.restlet.org/org/restlet/jee/org.restlet/2.1.1/

Probably you need to add this repository in your Ivy settings or any repository you are using.




回答2:


Well, i just now had same problem with my Solr 5.5.0 with changing repository for IVY. But that's all waste of time. Just download org.restlet.ext.servlet jar file from http://maven.restlet.com/org/restlet/jee/org.restlet.ext.servlet/2.1.1/, create folder repository near ivy-settings.xml, copy downloaded file and change ivy-settings.xml like :

<ivysettings>
  <settings defaultResolver="chain-example"/>
  <resolvers>
    <chain name="chain-example">
      <ibiblio name="central" m2compatible="true" />
      <filesystem name="libraries">
        <artifact pattern="${ivy.settings.dir}/repository/[artifact]-[revision].[ext]" />
      </filesystem>
    </chain>
  </resolvers>
</ivysettings>

Enjoy.



来源:https://stackoverflow.com/questions/15892240/ivy-cannot-resolve-org-springframework-dependencies

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!