[
https://issues.apache.org/jira/browse/IVY-437?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12588186#action_12588186
]
Jing Xue commented on IVY-437:
------------------------------
I could be wrong, but if setM2compatible is called _before_ ensureConfigured,
root will be set to DEFAULT_M2_ROOT, and the part reading from
ivy.ibiblio.default.artifact.root in ensureConfigured will never get executed.
And I think whether setM2compatible will be called before or after any other
setters really just depends on the order of attributes in the settings file.
> setting m2compatible on ibiblio resolver overwrite root and pattern settings
> ----------------------------------------------------------------------------
>
> Key: IVY-437
> URL: https://issues.apache.org/jira/browse/IVY-437
> Project: Ivy
> Issue Type: Bug
> Affects Versions: 1.4.1
> Reporter: Xavier Hanin
> Assignee: Xavier Hanin
> Fix For: 2.0-RC1
>
> Attachments: m2root_override.patch
>
>
> Setting m2compatible="true" on an ibiblio resolver overwrites the root and
> pattern settings, even if they were set manually. Depending on the order of
> attributes and the xml parser used, the result is varying (if setM2compatible
> is called before setRoot, the configured root will be used, otherwise it's
> the default value for m2compatible which will be used!
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.