[
https://issues.apache.org/jira/browse/IVY-1114?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Gintas Grigelionis updated IVY-1114:
------------------------------------
Description:
I created two ivysettings.xml files and included one from the other.
The one being included (the shared ivysettings.xml) has a resolver like this:
{code:xml}
<filesystem name="lib-folder">
<ivy
pattern="${ivy.settings.dir}/lib/[module]-[artifact]-[revision].[ext]" />
<artifact
pattern="${ivy.settings.dir}/lib/[artifact]-[revision].[ext]" />
</filesystem>
{code}
I get an error as follows:
{code}
impossible to configure ivy:settings with given file: ivysettings.xml :
java.text.ParseException: failed to load settings from
file:/C:/work/books/booksProject/booksApi/ivysettings.xml: problem in config
file: failed to load settings from
file:/C:/work/books/booksProject/booksLib/ivysettings.xml: impossible to add
configured child for ivy on class
org.apache.ivy.plugins.resolver.FileSystemResolver: ivy pattern must be
absolute:
file:/C:/work/books/booksProject/booksLib/lib/[module]-[artifact]-[revision].[ext]
{code}
As you can see, the path IS absolute but it's using a file: URL because
${ivy.settings.dir} is now a URL instead of just a regular path. I tried to
create other variables in my build.xml but to no avail - thus, I can't figure
out how to define a shared repository configuration where the repository path
is relative to ivysettings.xml.
Any workarounds while I wait for a fix?
was:
I created two ivysettings.xml files and included one from the other.
The one being included (the shared ivysettings.xml) has a resolver like this:
<filesystem name="lib-folder">
<ivy
pattern="${ivy.settings.dir}/lib/[module]-[artifact]-[revision].[ext]" />
<artifact
pattern="${ivy.settings.dir}/lib/[artifact]-[revision].[ext]" />
</filesystem>
I get an error as follows:
impossible to configure ivy:settings with given file: ivysettings.xml :
java.text.ParseException: failed to load settings from
file:/C:/work/books/booksProject/booksApi/ivysettings.xml: problem in config
file: failed to load settings from
file:/C:/work/books/booksProject/booksLib/ivysettings.xml: impossible to add
configured child for ivy on class
org.apache.ivy.plugins.resolver.FileSystemResolver: ivy pattern must be
absolute:
file:/C:/work/books/booksProject/booksLib/lib/[module]-[artifact]-[revision].[ext]
As you can see, the path IS absolute but it's using a file: URL because
${ivy.settings.dir} is now a URL instead of just a regular path. I tried to
create other variables in my build.xml but to no avail - thus, I can't figure
out how to define a shared repository configuration where the repository path
is relative to ivysettings.xml.
Any workarounds while I wait for a fix?
> FileSystem resolver rejects absolute path starting with file:
> -------------------------------------------------------------
>
> Key: IVY-1114
> URL: https://issues.apache.org/jira/browse/IVY-1114
> Project: Ivy
> Issue Type: Bug
> Affects Versions: 2.1.0-RC2
> Reporter: Dobes Vandermeer
>
> I created two ivysettings.xml files and included one from the other.
> The one being included (the shared ivysettings.xml) has a resolver like this:
> {code:xml}
> <filesystem name="lib-folder">
> <ivy
> pattern="${ivy.settings.dir}/lib/[module]-[artifact]-[revision].[ext]" />
> <artifact
> pattern="${ivy.settings.dir}/lib/[artifact]-[revision].[ext]" />
> </filesystem>
> {code}
> I get an error as follows:
> {code}
> impossible to configure ivy:settings with given file: ivysettings.xml :
> java.text.ParseException: failed to load settings from
> file:/C:/work/books/booksProject/booksApi/ivysettings.xml: problem in config
> file: failed to load settings from
> file:/C:/work/books/booksProject/booksLib/ivysettings.xml: impossible to add
> configured child for ivy on class
> org.apache.ivy.plugins.resolver.FileSystemResolver: ivy pattern must be
> absolute:
> file:/C:/work/books/booksProject/booksLib/lib/[module]-[artifact]-[revision].[ext]
> {code}
> As you can see, the path IS absolute but it's using a file: URL because
> ${ivy.settings.dir} is now a URL instead of just a regular path. I tried to
> create other variables in my build.xml but to no avail - thus, I can't figure
> out how to define a shared repository configuration where the repository path
> is relative to ivysettings.xml.
> Any workarounds while I wait for a fix?
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)