首页

关于ivy项目依赖"IvyDE resolve" has encountered a problem Some projects fail to resolved报Problem Occurred问题

标签:ivy依赖错误,ivysettings.xml,ivy项目依赖,FileSystemResolver     发布时间:2018-11-18   

一、错误问题

关于ivy项目进行依赖配置后,报"Problem Occurred ..IvyDE resolve has encountered a problem. Some projects fail to be resolved ..Failed to configure Ivy for ivy.xml[*] in ivy-baseError while resolving the ivy instance for ivy.xml[*]..ould not be parsed: failed to load settings from ..impossible to add configured child for ivy on class org.apache.ivy.plugins.resolver.FileSystemResolver: ivy pattern must be absolute: "

关于ivy项目依赖"IvyDE resolve" has encountered a problem Some projects fail to resolved报Problem Occurred问题

二、解决方法

1. 原项目的ivysettings.xml依赖配置如下

<ivysettings>@b@<settings defaultResolver="chain-example" />@b@	 <resolvers>@b@		<chain name="chain-example">@b@			<filesystem name="libraries">@b@			<ivy pattern="http://192.168.1.202:9980/ivy-libs/[organisation]/[module]/[revision]/ivy.xml" />@b@			<artifact pattern="http://192.168.1.202:9980/ivy-libs/apache/commons-lang/2.0/[artifact]-[revision].[ext]" />@b@			</filesystem>@b@			<ibiblio name="public" m2compatible="true" root="http://192.168.1.202:9980/ivy-libs/" />@b@		</chain>@b@	</resolvers>@b@</ivysettings>

修改配置如下

<ivysettings>@b@  <settings defaultResolver="xwood-ivy-resolver"/> @b@  <resolvers>@b@    <chain name="xwood-ivy-resolver" returnFirst="true">@b@      <url>@b@        <ivy pattern="http://192.168.1.202:9980/ivy-libs/[organization]/[module]/[revision]/ivy.xml" />@b@        <artifact pattern="http://192.168.1.202:9980/ivy-libs/[organization]/[module]/[revision]/[artifact].[ext]" />@b@      </url> @b@    </chain>@b@  </resolvers>@b@</ivysettings>

2. 打开eclipse的"Windows-Preferences"参数配置,如下图(Ivy settings path也可以配置为:http://www.xwood.net/xwood-gw/on-line/?sp=p13&jpa=ivysettings.xml

关于ivy项目依赖"IvyDE resolve" has encountered a problem Some projects fail to resolved报Problem Occurred问题

3. 右击项目的ivy.xml,点击“Add  Ivy  Library”项刷新,可以加载ivy依赖包到项目中了

关于ivy项目依赖"IvyDE resolve" has encountered a problem Some projects fail to resolved报Problem Occurred问题

 

  • ◆ 相关内容