[
https://issues.apache.org/jira/browse/IVY-525?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12503750
]
Xavier Hanin commented on IVY-525:
----------------------------------
This is an interesting use case. Adding the option to disable this conversion
is pretty simple, but it's one of the main purpose of m2compatible set to true.
On the other hand we already have a usepoms attribute, and in your case all you
want is use poms in a maven 1 repo. So maybe we could say that an ibiblio
resolver configured with usepoms="true" and m2compatible="false" would behave
as you want. This seems reasonable to me.
As a workaround, it's great you wrote your own resolver, it's a good exercise
:) Another workaround is to use an url resolver like this:
{code}
<url name="java.net">
<ivy
pattern="http://download.java.net/maven/1/[organisation]/poms/[module]-[revision].pom"
/>
<artifact
pattern="http://download.java.net/maven/1/[organisation]/[type]s/[module]-[revision].[ext]"
/>
</url>
{code}
> Allow AbstractResourceResolver.convertM2IdForResourceSearch to be disabled
> --------------------------------------------------------------------------
>
> Key: IVY-525
> URL: https://issues.apache.org/jira/browse/IVY-525
> Project: Ivy
> Issue Type: Improvement
> Components: Core
> Affects Versions: 2.0.0-alpha-1
> Reporter: Kohsuke Kawaguchi
>
> To access java.net maven repository and taking advantages of its v4 POMs
> require this conversion to be turned off. So it would be desirable if the
> ibiblio resolver supports setDisableConvertM2Id(boolean) or something to
> disable this.
> Also see [the
> workaround|http://weblogs.java.net/blog/kohsuke/archive/2007/06/accessing_javan.html]
> I created.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.