I've attached a truncated version with internal company information
stripped out. But the fragment needed to reproduce the problem is:
<filesystem name="local-staging" force="true" m2compatible="true"
checkmodified="true" transactional="auto" local="true">
<ivy
pattern="${ivy.local.default.root}/local-staging/[organisation]/[module]
/[revision]/ivy.xml" />
<artifact
pattern="${ivy.local.default.root}/local-staging/[organisation]/[module]
/[revision]/[artifact].[ext]" />
</filesystem>
This gives me the ParseException each time, either on beta2 or rc1. If
I remove only the force="true" attribute assignment, there is no
problem.
-----Original Message-----
From: Maarten Coene [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 08, 2008 3:56 PM
To: [email protected]
Subject: Re: Force attribute not implemented on standard resolvers?
I don't have problems setting the force attribute.
The following construct doesn't give an error for me:
<filesystem name="local" force="true">
...
</filesystem>
Could you post your ivy-settings-common.xml here?
Maarten
----- Original Message ----
From: "Brown, Carlton" <[EMAIL PROTECTED]>
To: [email protected]
Sent: Wednesday, October 8, 2008 9:37:15 PM
Subject: Force attribute not implemented on standard resolvers?
According to the docs, the standard resolvers can be configured with a
"force" attribute. But when I try to assign the attribute I get this
message:
java.text.ParseException: failed to load settings from
file:\\ivy-settings-common.xml: no set method found for force on class
org.apache.ivy.plugins.resolver.FileSystemResolver
I think FileSystemResolver is a standard resolver, and I did follow the
doc correctly. This happened both on beta2 and rc1.
Thanks,
Carlton
-----------------------------------------
====================================================
This message contains PRIVILEGED and CONFIDENTIAL information that is
intended only for use by the named recipient. If you are not the named
recipient, any disclosure, dissemination, or action based on the
contents of this message is prohibited. In such case please notify us
and destroy and delete all copies of this transmission. Thank you.
====================================================
<?xml version="1.0" encoding="UTF-8"?>
<ivysettings>
<property name="ivy.dependency.resolver" value="private"/>
<property name="ivy.staging.resolver" value="local-staging" />
<property name="ivy.cache.dir" value="${user.home}/.ivy/cache"/>
<property name="ivy.useorigin" value="false"/>
<property name="ivy.local.default.root" value="${user.home}/.ivy/artifact-repositories"/>
<property name="ivy.latest.strategy" value="custom-latest-revision"/>
<!-- may need to set ivy.shared.default.root -->
<settings defaultResolver="${ivy.dependency.resolver}" defaultLatestStrategy="${ivy.latest.strategy}"/>
<latest-strategies>
<latest-revision name="custom-latest-revision" usedefaultspecialmeanings="false">
<specialMeaning name="dev" value="2"/>
<specialMeaning name="int" value="1"/>
</latest-revision>
</latest-strategies>
<caches defaultCacheDir="${ivy.cache.dir}" checkUpToDate="true" useOrigin="${ivy.useorigin}"/>
<statuses default="dev">
<status name="release" integration="false"/>
<status name="milestone" integration="false"/>
<status name="integration" integration="true"/>
<status name="dev" integration="false"/>
</statuses>
<resolvers>
<filesystem name="local-staging" force="true" m2compatible="true" checkmodified="true" transactional="auto" local="true">
<ivy pattern="${ivy.local.default.root}/local-staging/[organisation]/[module]/[revision]/ivy.xml" />
<artifact pattern="${ivy.local.default.root}/local-staging/[organisation]/[module]/[revision]/[artifact].[ext]" />
</filesystem>
<filesystem name="dev-ccrt-staging"
m2compatible="true" checkmodified="true" transactional="auto" local="false">
<ivy pattern="${ivy.shared.default.root}/dev-ccrt/[organisation]/[module]/[revision]/ivy.xml" />
<artifact pattern="${ivy.shared.default.root}/dev-ccrt/[organisation]/[module]/[revision]/[artifact].[ext]" />
</filesystem>
<filesystem name="dev-thirdparty-staging"
m2compatible="true" checkmodified="true" transactional="auto" local="false">
<ivy pattern="${ivy.shared.default.root}/dev-thirdparty/[organisation]/[module]/[revision]/ivy.xml" />
<artifact pattern="${ivy.shared.default.root}/dev-thirdparty/[organisation]/[module]/[revision]/[artifact].[ext]" />
</filesystem>
<filesystem name="release-staging"
m2compatible="true" checkmodified="true" transactional="auto" local="false">
<ivy pattern="${ivy.shared.default.root}/release-ccrt/[organisation]/[module]/[revision]/ivy.xml" />
<artifact pattern="${ivy.shared.default.root}/release-ccrt/[organisation]/[module]/[revision]/[artifact].[ext]" />
</filesystem>
<chain name="release"
returnFirst="false">
<resolver ref="release-staging"/>
</chain>
<chain name="integration"
returnFirst="false">
<resolver ref="release"/>
<resolver ref="dev-thirdparty-staging"/>
<resolver ref="dev-ccrt-staging"/>
</chain>
<chain name="private"
returnFirst="false">
<resolver ref="release"/>
<resolver ref="integration"/>
<resolver ref="local-staging"/>
</chain>
<chain name="shared"
returnFirst="false">
<resolver ref="release-staging"/>
</chain>
</resolvers>
</ivysettings>