首页 新闻 会员 周边

Ivy 远程库配配置运行异常

0
悬赏园豆:20 [待解决问题]

Buildfile: D:\myworkspace\Example\build.xml
resolve:
[ivy:configure] :: Apache Ivy 2.3.0 - 20130110142753 :: http://ant.apache.org/ivy/ ::
[ivy:configure] :: loading settings :: url = http://127.0.0.1:8081/libs/ivyconf.xml

BUILD FAILED
D:\myworkspace\Example\build.xml:40: impossible to configure ivy:settings with given url: http://127.0.0.1:8081/libs/ivyconf.xml : java.text.ParseException: failed to load settings from http://127.0.0.1:8081/libs/ivyconf.xml: impossible to add configured child for ivy on class org.apache.ivy.plugins.resolver.FileSystemResolver: ivy pattern must be absolute: http://127.0.0.1:8081/libs/[organisation]/[module]/[revision]/ivy.xml

Total time: 653 milliseconds

ivyconf.xml

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

<target name="resolve" description="--> retreive dependencies with ivy">
<ivy:configure url="http://127.0.0.1:8081/libs/ivyconf.xml" />
<ivy:retrieve />
</target>

 
以上是本地ivysettings配置,能帮忙看看是哪错了 ,谢谢 !
Ivy
蜗牛之家的主页 蜗牛之家 | 初学一级 | 园豆:182
提问于:2013-04-02 22:01
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册