You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by "Danno Ferrin (JIRA)" <ji...@apache.org> on 2009/03/04 23:13:56 UTC
[jira] Created: (IVY-1041) Maven POM classifier being translated
incorrectly from a pom to an ivy.xml file
Maven POM classifier being translated incorrectly from a pom to an ivy.xml file
-------------------------------------------------------------------------------
Key: IVY-1041
URL: https://issues.apache.org/jira/browse/IVY-1041
Project: Ivy
Issue Type: Bug
Components: Maven Compatibility
Affects Versions: 2.0
Environment: Windows vista, Ivy 2.0.0, java 6.0u12
Reporter: Danno Ferrin
It appears that the translation from a Maven POM to an Ivy file is placing the m:classifier attribute on the artifact element rather than the dependency element, where ivy handles it. To reproduce:
{code}java -jar <path-to>/ivy-2.0.0.jar -settings mule-core-ivy-settings.xml -dependency org.mule mule-core 2.2.0{code}
The mule-core-ivy-settings.xml file is:
{code}<?xml version="1.0" encoding="utf-8"?>
<ivysettings>
<settings defaultResolver="downloadGrapes" />
<resolvers>
<chain name="downloadGrapes">
<ibiblio name="codehaus" root="http://repository.codehaus.org/" m2compatible="true" />
<ibiblio name="ibiblio" m2compatible="true" />
<ibiblio name="java.net2" root="http://download.java.net/maven/2/" m2compatible="true" />
<ibiblio name="mule-osgi-deps" root="http://dist.codehaus.org/mule/dependencies/maven2" m2compatible="true"/>
</chain>
</resolvers>
</ivysettings>{code}
The relevant error output isis...
{code}:: problems summary ::
:::: WARNINGS
module not found: org.safehaus.jug#jug;2.0.0-osgi
==== codehaus: tried
http://repository.codehaus.org/org/safehaus/jug/jug/2.0.0-osgi/jug-2.0.0-osgi.pom
-- artifact org.safehaus.jug#jug;2.0.0-osgi!jug.jar:
http://repository.codehaus.org/org/safehaus/jug/jug/2.0.0-osgi/jug-2.0.0-osgi.jar
==== ibiblio: tried
http://repo1.maven.org/maven2/org/safehaus/jug/jug/2.0.0-osgi/jug-2.0.0-osgi.pom
-- artifact org.safehaus.jug#jug;2.0.0-osgi!jug.jar:
http://repo1.maven.org/maven2/org/safehaus/jug/jug/2.0.0-osgi/jug-2.0.0-osgi.jar
==== java.net2: tried
http://download.java.net/maven/2/org/safehaus/jug/jug/2.0.0-osgi/jug-2.0.0-osgi.pom
-- artifact org.safehaus.jug#jug;2.0.0-osgi!jug.jar:
http://download.java.net/maven/2/org/safehaus/jug/jug/2.0.0-osgi/jug-2.0.0-osgi.jar
==== mule-osgi-deps: tried
http://dist.codehaus.org/mule/dependencies/maven2/org/safehaus/jug/jug/2.0.0-osgi/jug-2.0.0-osgi.pom
-- artifact org.safehaus.jug#jug;2.0.0-osgi!jug.jar:
http://dist.codehaus.org/mule/dependencies/maven2/org/safehaus/jug/jug/2.0.0-osgi/jug-2.0.0-osgi.jar
::::::::::::::::::::::::::::::::::::::::::::::
:: UNRESOLVED DEPENDENCIES ::
::::::::::::::::::::::::::::::::::::::::::::::
:: org.safehaus.jug#jug;2.0.0-osgi: not found
::::::::::::::::::::::::::::::::::::::::::::::{code}
In the generated org.mule/mule-core/ivy-2.2.0.xml the following line is generated as
{code}<dependency org="org.safehaus.jug" name="jug" rev="2.0.0-osgi" force="true" conf="compile->compile(*),master(*);runtime->runtime(*)">
<artifact name="jug" type="jar" ext="jar" conf="" m:classifier="asl"/>
</dependency>{code}
but it works if {{m:classifier}} is move to the {{dependency}} element:
{code}<dependency org="org.safehaus.jug" name="jug" rev="2.0.0-osgi" force="true" conf="compile->compile(*),master(*);runtime->runtime(*)" m:classifier="asl">
<artifact name="jug" type="jar" ext="jar" conf=""/>
</dependency>{code}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (IVY-1041) Ivy doesn't handle the classifier
attribute of artifacts inside dependency elements
Posted by "Maarten Coene (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/IVY-1041?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Maarten Coene updated IVY-1041:
-------------------------------
Component/s: (was: Maven Compatibility)
Core
Summary: Ivy doesn't handle the classifier attribute of artifacts inside dependency elements (was: Maven POM classifier being translated incorrectly from a pom to an ivy.xml file)
The location of the generated classifier attribute is correct: it should be at the <artifact > element. However, Ivy seems to ignore this attribute.
> Ivy doesn't handle the classifier attribute of artifacts inside dependency elements
> -----------------------------------------------------------------------------------
>
> Key: IVY-1041
> URL: https://issues.apache.org/jira/browse/IVY-1041
> Project: Ivy
> Issue Type: Bug
> Components: Core
> Affects Versions: 2.0
> Environment: Windows vista, Ivy 2.0.0, java 6.0u12
> Reporter: Danno Ferrin
>
> It appears that the translation from a Maven POM to an Ivy file is placing the m:classifier attribute on the artifact element rather than the dependency element, where ivy handles it. To reproduce:
> {code}java -jar <path-to>/ivy-2.0.0.jar -settings mule-core-ivy-settings.xml -dependency org.mule mule-core 2.2.0{code}
> The mule-core-ivy-settings.xml file is:
> {code}<?xml version="1.0" encoding="utf-8"?>
> <ivysettings>
> <settings defaultResolver="downloadGrapes" />
> <resolvers>
> <chain name="downloadGrapes">
> <ibiblio name="codehaus" root="http://repository.codehaus.org/" m2compatible="true" />
> <ibiblio name="ibiblio" m2compatible="true" />
> <ibiblio name="java.net2" root="http://download.java.net/maven/2/" m2compatible="true" />
> <ibiblio name="mule-osgi-deps" root="http://dist.codehaus.org/mule/dependencies/maven2" m2compatible="true"/>
> </chain>
> </resolvers>
> </ivysettings>{code}
> The relevant error output isis...
> {code}:: problems summary ::
> :::: WARNINGS
> module not found: org.safehaus.jug#jug;2.0.0-osgi
> ==== codehaus: tried
> http://repository.codehaus.org/org/safehaus/jug/jug/2.0.0-osgi/jug-2.0.0-osgi.pom
> -- artifact org.safehaus.jug#jug;2.0.0-osgi!jug.jar:
> http://repository.codehaus.org/org/safehaus/jug/jug/2.0.0-osgi/jug-2.0.0-osgi.jar
> ==== ibiblio: tried
> http://repo1.maven.org/maven2/org/safehaus/jug/jug/2.0.0-osgi/jug-2.0.0-osgi.pom
> -- artifact org.safehaus.jug#jug;2.0.0-osgi!jug.jar:
> http://repo1.maven.org/maven2/org/safehaus/jug/jug/2.0.0-osgi/jug-2.0.0-osgi.jar
> ==== java.net2: tried
> http://download.java.net/maven/2/org/safehaus/jug/jug/2.0.0-osgi/jug-2.0.0-osgi.pom
> -- artifact org.safehaus.jug#jug;2.0.0-osgi!jug.jar:
> http://download.java.net/maven/2/org/safehaus/jug/jug/2.0.0-osgi/jug-2.0.0-osgi.jar
> ==== mule-osgi-deps: tried
> http://dist.codehaus.org/mule/dependencies/maven2/org/safehaus/jug/jug/2.0.0-osgi/jug-2.0.0-osgi.pom
> -- artifact org.safehaus.jug#jug;2.0.0-osgi!jug.jar:
> http://dist.codehaus.org/mule/dependencies/maven2/org/safehaus/jug/jug/2.0.0-osgi/jug-2.0.0-osgi.jar
> ::::::::::::::::::::::::::::::::::::::::::::::
> :: UNRESOLVED DEPENDENCIES ::
> ::::::::::::::::::::::::::::::::::::::::::::::
> :: org.safehaus.jug#jug;2.0.0-osgi: not found
> ::::::::::::::::::::::::::::::::::::::::::::::{code}
> In the generated org.mule/mule-core/ivy-2.2.0.xml the following line is generated as
> {code}<dependency org="org.safehaus.jug" name="jug" rev="2.0.0-osgi" force="true" conf="compile->compile(*),master(*);runtime->runtime(*)">
> <artifact name="jug" type="jar" ext="jar" conf="" m:classifier="asl"/>
> </dependency>{code}
> but it works if {{m:classifier}} is move to the {{dependency}} element:
> {code}<dependency org="org.safehaus.jug" name="jug" rev="2.0.0-osgi" force="true" conf="compile->compile(*),master(*);runtime->runtime(*)" m:classifier="asl">
> <artifact name="jug" type="jar" ext="jar" conf=""/>
> </dependency>{code}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (IVY-1041) Ivy doesn't handle the classifier
attribute of artifacts inside dependency elements
Posted by "Maarten Coene (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/IVY-1041?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Maarten Coene resolved IVY-1041.
--------------------------------
Resolution: Fixed
Fix Version/s: trunk
I think I've fixed it in SVN trunk.
Could you give it a try?
thanks,
Maarten
> Ivy doesn't handle the classifier attribute of artifacts inside dependency elements
> -----------------------------------------------------------------------------------
>
> Key: IVY-1041
> URL: https://issues.apache.org/jira/browse/IVY-1041
> Project: Ivy
> Issue Type: Bug
> Components: Core
> Affects Versions: 2.0
> Environment: Windows vista, Ivy 2.0.0, java 6.0u12
> Reporter: Danno Ferrin
> Assignee: Maarten Coene
> Fix For: trunk
>
>
> It appears that the translation from a Maven POM to an Ivy file is placing the m:classifier attribute on the artifact element rather than the dependency element, where ivy handles it. To reproduce:
> {code}java -jar <path-to>/ivy-2.0.0.jar -settings mule-core-ivy-settings.xml -dependency org.mule mule-core 2.2.0{code}
> The mule-core-ivy-settings.xml file is:
> {code}<?xml version="1.0" encoding="utf-8"?>
> <ivysettings>
> <settings defaultResolver="downloadGrapes" />
> <resolvers>
> <chain name="downloadGrapes">
> <ibiblio name="codehaus" root="http://repository.codehaus.org/" m2compatible="true" />
> <ibiblio name="ibiblio" m2compatible="true" />
> <ibiblio name="java.net2" root="http://download.java.net/maven/2/" m2compatible="true" />
> <ibiblio name="mule-osgi-deps" root="http://dist.codehaus.org/mule/dependencies/maven2" m2compatible="true"/>
> </chain>
> </resolvers>
> </ivysettings>{code}
> The relevant error output isis...
> {code}:: problems summary ::
> :::: WARNINGS
> module not found: org.safehaus.jug#jug;2.0.0-osgi
> ==== codehaus: tried
> http://repository.codehaus.org/org/safehaus/jug/jug/2.0.0-osgi/jug-2.0.0-osgi.pom
> -- artifact org.safehaus.jug#jug;2.0.0-osgi!jug.jar:
> http://repository.codehaus.org/org/safehaus/jug/jug/2.0.0-osgi/jug-2.0.0-osgi.jar
> ==== ibiblio: tried
> http://repo1.maven.org/maven2/org/safehaus/jug/jug/2.0.0-osgi/jug-2.0.0-osgi.pom
> -- artifact org.safehaus.jug#jug;2.0.0-osgi!jug.jar:
> http://repo1.maven.org/maven2/org/safehaus/jug/jug/2.0.0-osgi/jug-2.0.0-osgi.jar
> ==== java.net2: tried
> http://download.java.net/maven/2/org/safehaus/jug/jug/2.0.0-osgi/jug-2.0.0-osgi.pom
> -- artifact org.safehaus.jug#jug;2.0.0-osgi!jug.jar:
> http://download.java.net/maven/2/org/safehaus/jug/jug/2.0.0-osgi/jug-2.0.0-osgi.jar
> ==== mule-osgi-deps: tried
> http://dist.codehaus.org/mule/dependencies/maven2/org/safehaus/jug/jug/2.0.0-osgi/jug-2.0.0-osgi.pom
> -- artifact org.safehaus.jug#jug;2.0.0-osgi!jug.jar:
> http://dist.codehaus.org/mule/dependencies/maven2/org/safehaus/jug/jug/2.0.0-osgi/jug-2.0.0-osgi.jar
> ::::::::::::::::::::::::::::::::::::::::::::::
> :: UNRESOLVED DEPENDENCIES ::
> ::::::::::::::::::::::::::::::::::::::::::::::
> :: org.safehaus.jug#jug;2.0.0-osgi: not found
> ::::::::::::::::::::::::::::::::::::::::::::::{code}
> In the generated org.mule/mule-core/ivy-2.2.0.xml the following line is generated as
> {code}<dependency org="org.safehaus.jug" name="jug" rev="2.0.0-osgi" force="true" conf="compile->compile(*),master(*);runtime->runtime(*)">
> <artifact name="jug" type="jar" ext="jar" conf="" m:classifier="asl"/>
> </dependency>{code}
> but it works if {{m:classifier}} is move to the {{dependency}} element:
> {code}<dependency org="org.safehaus.jug" name="jug" rev="2.0.0-osgi" force="true" conf="compile->compile(*),master(*);runtime->runtime(*)" m:classifier="asl">
> <artifact name="jug" type="jar" ext="jar" conf=""/>
> </dependency>{code}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (IVY-1041) Ivy doesn't handle the classifier
attribute of artifacts inside dependency elements
Posted by "Maarten Coene (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/IVY-1041?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Maarten Coene updated IVY-1041:
-------------------------------
Fix Version/s: (was: trunk)
2.0.1
> Ivy doesn't handle the classifier attribute of artifacts inside dependency elements
> -----------------------------------------------------------------------------------
>
> Key: IVY-1041
> URL: https://issues.apache.org/jira/browse/IVY-1041
> Project: Ivy
> Issue Type: Bug
> Components: Core
> Affects Versions: 2.0
> Environment: Windows vista, Ivy 2.0.0, java 6.0u12
> Reporter: Danno Ferrin
> Assignee: Maarten Coene
> Fix For: 2.0.1
>
>
> It appears that the translation from a Maven POM to an Ivy file is placing the m:classifier attribute on the artifact element rather than the dependency element, where ivy handles it. To reproduce:
> {code}java -jar <path-to>/ivy-2.0.0.jar -settings mule-core-ivy-settings.xml -dependency org.mule mule-core 2.2.0{code}
> The mule-core-ivy-settings.xml file is:
> {code}<?xml version="1.0" encoding="utf-8"?>
> <ivysettings>
> <settings defaultResolver="downloadGrapes" />
> <resolvers>
> <chain name="downloadGrapes">
> <ibiblio name="codehaus" root="http://repository.codehaus.org/" m2compatible="true" />
> <ibiblio name="ibiblio" m2compatible="true" />
> <ibiblio name="java.net2" root="http://download.java.net/maven/2/" m2compatible="true" />
> <ibiblio name="mule-osgi-deps" root="http://dist.codehaus.org/mule/dependencies/maven2" m2compatible="true"/>
> </chain>
> </resolvers>
> </ivysettings>{code}
> The relevant error output isis...
> {code}:: problems summary ::
> :::: WARNINGS
> module not found: org.safehaus.jug#jug;2.0.0-osgi
> ==== codehaus: tried
> http://repository.codehaus.org/org/safehaus/jug/jug/2.0.0-osgi/jug-2.0.0-osgi.pom
> -- artifact org.safehaus.jug#jug;2.0.0-osgi!jug.jar:
> http://repository.codehaus.org/org/safehaus/jug/jug/2.0.0-osgi/jug-2.0.0-osgi.jar
> ==== ibiblio: tried
> http://repo1.maven.org/maven2/org/safehaus/jug/jug/2.0.0-osgi/jug-2.0.0-osgi.pom
> -- artifact org.safehaus.jug#jug;2.0.0-osgi!jug.jar:
> http://repo1.maven.org/maven2/org/safehaus/jug/jug/2.0.0-osgi/jug-2.0.0-osgi.jar
> ==== java.net2: tried
> http://download.java.net/maven/2/org/safehaus/jug/jug/2.0.0-osgi/jug-2.0.0-osgi.pom
> -- artifact org.safehaus.jug#jug;2.0.0-osgi!jug.jar:
> http://download.java.net/maven/2/org/safehaus/jug/jug/2.0.0-osgi/jug-2.0.0-osgi.jar
> ==== mule-osgi-deps: tried
> http://dist.codehaus.org/mule/dependencies/maven2/org/safehaus/jug/jug/2.0.0-osgi/jug-2.0.0-osgi.pom
> -- artifact org.safehaus.jug#jug;2.0.0-osgi!jug.jar:
> http://dist.codehaus.org/mule/dependencies/maven2/org/safehaus/jug/jug/2.0.0-osgi/jug-2.0.0-osgi.jar
> ::::::::::::::::::::::::::::::::::::::::::::::
> :: UNRESOLVED DEPENDENCIES ::
> ::::::::::::::::::::::::::::::::::::::::::::::
> :: org.safehaus.jug#jug;2.0.0-osgi: not found
> ::::::::::::::::::::::::::::::::::::::::::::::{code}
> In the generated org.mule/mule-core/ivy-2.2.0.xml the following line is generated as
> {code}<dependency org="org.safehaus.jug" name="jug" rev="2.0.0-osgi" force="true" conf="compile->compile(*),master(*);runtime->runtime(*)">
> <artifact name="jug" type="jar" ext="jar" conf="" m:classifier="asl"/>
> </dependency>{code}
> but it works if {{m:classifier}} is move to the {{dependency}} element:
> {code}<dependency org="org.safehaus.jug" name="jug" rev="2.0.0-osgi" force="true" conf="compile->compile(*),master(*);runtime->runtime(*)" m:classifier="asl">
> <artifact name="jug" type="jar" ext="jar" conf=""/>
> </dependency>{code}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (IVY-1041) Ivy doesn't handle the classifier
attribute of artifacts inside dependency elements
Posted by "Maarten Coene (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/IVY-1041?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Maarten Coene reassigned IVY-1041:
----------------------------------
Assignee: Maarten Coene
> Ivy doesn't handle the classifier attribute of artifacts inside dependency elements
> -----------------------------------------------------------------------------------
>
> Key: IVY-1041
> URL: https://issues.apache.org/jira/browse/IVY-1041
> Project: Ivy
> Issue Type: Bug
> Components: Core
> Affects Versions: 2.0
> Environment: Windows vista, Ivy 2.0.0, java 6.0u12
> Reporter: Danno Ferrin
> Assignee: Maarten Coene
>
> It appears that the translation from a Maven POM to an Ivy file is placing the m:classifier attribute on the artifact element rather than the dependency element, where ivy handles it. To reproduce:
> {code}java -jar <path-to>/ivy-2.0.0.jar -settings mule-core-ivy-settings.xml -dependency org.mule mule-core 2.2.0{code}
> The mule-core-ivy-settings.xml file is:
> {code}<?xml version="1.0" encoding="utf-8"?>
> <ivysettings>
> <settings defaultResolver="downloadGrapes" />
> <resolvers>
> <chain name="downloadGrapes">
> <ibiblio name="codehaus" root="http://repository.codehaus.org/" m2compatible="true" />
> <ibiblio name="ibiblio" m2compatible="true" />
> <ibiblio name="java.net2" root="http://download.java.net/maven/2/" m2compatible="true" />
> <ibiblio name="mule-osgi-deps" root="http://dist.codehaus.org/mule/dependencies/maven2" m2compatible="true"/>
> </chain>
> </resolvers>
> </ivysettings>{code}
> The relevant error output isis...
> {code}:: problems summary ::
> :::: WARNINGS
> module not found: org.safehaus.jug#jug;2.0.0-osgi
> ==== codehaus: tried
> http://repository.codehaus.org/org/safehaus/jug/jug/2.0.0-osgi/jug-2.0.0-osgi.pom
> -- artifact org.safehaus.jug#jug;2.0.0-osgi!jug.jar:
> http://repository.codehaus.org/org/safehaus/jug/jug/2.0.0-osgi/jug-2.0.0-osgi.jar
> ==== ibiblio: tried
> http://repo1.maven.org/maven2/org/safehaus/jug/jug/2.0.0-osgi/jug-2.0.0-osgi.pom
> -- artifact org.safehaus.jug#jug;2.0.0-osgi!jug.jar:
> http://repo1.maven.org/maven2/org/safehaus/jug/jug/2.0.0-osgi/jug-2.0.0-osgi.jar
> ==== java.net2: tried
> http://download.java.net/maven/2/org/safehaus/jug/jug/2.0.0-osgi/jug-2.0.0-osgi.pom
> -- artifact org.safehaus.jug#jug;2.0.0-osgi!jug.jar:
> http://download.java.net/maven/2/org/safehaus/jug/jug/2.0.0-osgi/jug-2.0.0-osgi.jar
> ==== mule-osgi-deps: tried
> http://dist.codehaus.org/mule/dependencies/maven2/org/safehaus/jug/jug/2.0.0-osgi/jug-2.0.0-osgi.pom
> -- artifact org.safehaus.jug#jug;2.0.0-osgi!jug.jar:
> http://dist.codehaus.org/mule/dependencies/maven2/org/safehaus/jug/jug/2.0.0-osgi/jug-2.0.0-osgi.jar
> ::::::::::::::::::::::::::::::::::::::::::::::
> :: UNRESOLVED DEPENDENCIES ::
> ::::::::::::::::::::::::::::::::::::::::::::::
> :: org.safehaus.jug#jug;2.0.0-osgi: not found
> ::::::::::::::::::::::::::::::::::::::::::::::{code}
> In the generated org.mule/mule-core/ivy-2.2.0.xml the following line is generated as
> {code}<dependency org="org.safehaus.jug" name="jug" rev="2.0.0-osgi" force="true" conf="compile->compile(*),master(*);runtime->runtime(*)">
> <artifact name="jug" type="jar" ext="jar" conf="" m:classifier="asl"/>
> </dependency>{code}
> but it works if {{m:classifier}} is move to the {{dependency}} element:
> {code}<dependency org="org.safehaus.jug" name="jug" rev="2.0.0-osgi" force="true" conf="compile->compile(*),master(*);runtime->runtime(*)" m:classifier="asl">
> <artifact name="jug" type="jar" ext="jar" conf=""/>
> </dependency>{code}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (IVY-1041) Ivy doesn't handle the classifier
attribute of artifacts inside dependency elements
Posted by "Maarten Coene (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/IVY-1041?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12679525#action_12679525 ]
Maarten Coene commented on IVY-1041:
------------------------------------
I think we can include this fix in the 2.0.1 version.
We'll create that release as soon as IVY-987 gets fixed.
> Ivy doesn't handle the classifier attribute of artifacts inside dependency elements
> -----------------------------------------------------------------------------------
>
> Key: IVY-1041
> URL: https://issues.apache.org/jira/browse/IVY-1041
> Project: Ivy
> Issue Type: Bug
> Components: Core
> Affects Versions: 2.0
> Environment: Windows vista, Ivy 2.0.0, java 6.0u12
> Reporter: Danno Ferrin
> Assignee: Maarten Coene
> Fix For: trunk
>
>
> It appears that the translation from a Maven POM to an Ivy file is placing the m:classifier attribute on the artifact element rather than the dependency element, where ivy handles it. To reproduce:
> {code}java -jar <path-to>/ivy-2.0.0.jar -settings mule-core-ivy-settings.xml -dependency org.mule mule-core 2.2.0{code}
> The mule-core-ivy-settings.xml file is:
> {code}<?xml version="1.0" encoding="utf-8"?>
> <ivysettings>
> <settings defaultResolver="downloadGrapes" />
> <resolvers>
> <chain name="downloadGrapes">
> <ibiblio name="codehaus" root="http://repository.codehaus.org/" m2compatible="true" />
> <ibiblio name="ibiblio" m2compatible="true" />
> <ibiblio name="java.net2" root="http://download.java.net/maven/2/" m2compatible="true" />
> <ibiblio name="mule-osgi-deps" root="http://dist.codehaus.org/mule/dependencies/maven2" m2compatible="true"/>
> </chain>
> </resolvers>
> </ivysettings>{code}
> The relevant error output isis...
> {code}:: problems summary ::
> :::: WARNINGS
> module not found: org.safehaus.jug#jug;2.0.0-osgi
> ==== codehaus: tried
> http://repository.codehaus.org/org/safehaus/jug/jug/2.0.0-osgi/jug-2.0.0-osgi.pom
> -- artifact org.safehaus.jug#jug;2.0.0-osgi!jug.jar:
> http://repository.codehaus.org/org/safehaus/jug/jug/2.0.0-osgi/jug-2.0.0-osgi.jar
> ==== ibiblio: tried
> http://repo1.maven.org/maven2/org/safehaus/jug/jug/2.0.0-osgi/jug-2.0.0-osgi.pom
> -- artifact org.safehaus.jug#jug;2.0.0-osgi!jug.jar:
> http://repo1.maven.org/maven2/org/safehaus/jug/jug/2.0.0-osgi/jug-2.0.0-osgi.jar
> ==== java.net2: tried
> http://download.java.net/maven/2/org/safehaus/jug/jug/2.0.0-osgi/jug-2.0.0-osgi.pom
> -- artifact org.safehaus.jug#jug;2.0.0-osgi!jug.jar:
> http://download.java.net/maven/2/org/safehaus/jug/jug/2.0.0-osgi/jug-2.0.0-osgi.jar
> ==== mule-osgi-deps: tried
> http://dist.codehaus.org/mule/dependencies/maven2/org/safehaus/jug/jug/2.0.0-osgi/jug-2.0.0-osgi.pom
> -- artifact org.safehaus.jug#jug;2.0.0-osgi!jug.jar:
> http://dist.codehaus.org/mule/dependencies/maven2/org/safehaus/jug/jug/2.0.0-osgi/jug-2.0.0-osgi.jar
> ::::::::::::::::::::::::::::::::::::::::::::::
> :: UNRESOLVED DEPENDENCIES ::
> ::::::::::::::::::::::::::::::::::::::::::::::
> :: org.safehaus.jug#jug;2.0.0-osgi: not found
> ::::::::::::::::::::::::::::::::::::::::::::::{code}
> In the generated org.mule/mule-core/ivy-2.2.0.xml the following line is generated as
> {code}<dependency org="org.safehaus.jug" name="jug" rev="2.0.0-osgi" force="true" conf="compile->compile(*),master(*);runtime->runtime(*)">
> <artifact name="jug" type="jar" ext="jar" conf="" m:classifier="asl"/>
> </dependency>{code}
> but it works if {{m:classifier}} is move to the {{dependency}} element:
> {code}<dependency org="org.safehaus.jug" name="jug" rev="2.0.0-osgi" force="true" conf="compile->compile(*),master(*);runtime->runtime(*)" m:classifier="asl">
> <artifact name="jug" type="jar" ext="jar" conf=""/>
> </dependency>{code}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (IVY-1041) Ivy doesn't handle the classifier
attribute of artifacts inside dependency elements
Posted by "Danno Ferrin (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/IVY-1041?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12679477#action_12679477 ]
Danno Ferrin commented on IVY-1041:
-----------------------------------
local-build trunk works for me.
When will this see a release? 2.0.1? 2.1.0? 3.0.0? Any pressing bugs for a patch release?
> Ivy doesn't handle the classifier attribute of artifacts inside dependency elements
> -----------------------------------------------------------------------------------
>
> Key: IVY-1041
> URL: https://issues.apache.org/jira/browse/IVY-1041
> Project: Ivy
> Issue Type: Bug
> Components: Core
> Affects Versions: 2.0
> Environment: Windows vista, Ivy 2.0.0, java 6.0u12
> Reporter: Danno Ferrin
> Assignee: Maarten Coene
> Fix For: trunk
>
>
> It appears that the translation from a Maven POM to an Ivy file is placing the m:classifier attribute on the artifact element rather than the dependency element, where ivy handles it. To reproduce:
> {code}java -jar <path-to>/ivy-2.0.0.jar -settings mule-core-ivy-settings.xml -dependency org.mule mule-core 2.2.0{code}
> The mule-core-ivy-settings.xml file is:
> {code}<?xml version="1.0" encoding="utf-8"?>
> <ivysettings>
> <settings defaultResolver="downloadGrapes" />
> <resolvers>
> <chain name="downloadGrapes">
> <ibiblio name="codehaus" root="http://repository.codehaus.org/" m2compatible="true" />
> <ibiblio name="ibiblio" m2compatible="true" />
> <ibiblio name="java.net2" root="http://download.java.net/maven/2/" m2compatible="true" />
> <ibiblio name="mule-osgi-deps" root="http://dist.codehaus.org/mule/dependencies/maven2" m2compatible="true"/>
> </chain>
> </resolvers>
> </ivysettings>{code}
> The relevant error output isis...
> {code}:: problems summary ::
> :::: WARNINGS
> module not found: org.safehaus.jug#jug;2.0.0-osgi
> ==== codehaus: tried
> http://repository.codehaus.org/org/safehaus/jug/jug/2.0.0-osgi/jug-2.0.0-osgi.pom
> -- artifact org.safehaus.jug#jug;2.0.0-osgi!jug.jar:
> http://repository.codehaus.org/org/safehaus/jug/jug/2.0.0-osgi/jug-2.0.0-osgi.jar
> ==== ibiblio: tried
> http://repo1.maven.org/maven2/org/safehaus/jug/jug/2.0.0-osgi/jug-2.0.0-osgi.pom
> -- artifact org.safehaus.jug#jug;2.0.0-osgi!jug.jar:
> http://repo1.maven.org/maven2/org/safehaus/jug/jug/2.0.0-osgi/jug-2.0.0-osgi.jar
> ==== java.net2: tried
> http://download.java.net/maven/2/org/safehaus/jug/jug/2.0.0-osgi/jug-2.0.0-osgi.pom
> -- artifact org.safehaus.jug#jug;2.0.0-osgi!jug.jar:
> http://download.java.net/maven/2/org/safehaus/jug/jug/2.0.0-osgi/jug-2.0.0-osgi.jar
> ==== mule-osgi-deps: tried
> http://dist.codehaus.org/mule/dependencies/maven2/org/safehaus/jug/jug/2.0.0-osgi/jug-2.0.0-osgi.pom
> -- artifact org.safehaus.jug#jug;2.0.0-osgi!jug.jar:
> http://dist.codehaus.org/mule/dependencies/maven2/org/safehaus/jug/jug/2.0.0-osgi/jug-2.0.0-osgi.jar
> ::::::::::::::::::::::::::::::::::::::::::::::
> :: UNRESOLVED DEPENDENCIES ::
> ::::::::::::::::::::::::::::::::::::::::::::::
> :: org.safehaus.jug#jug;2.0.0-osgi: not found
> ::::::::::::::::::::::::::::::::::::::::::::::{code}
> In the generated org.mule/mule-core/ivy-2.2.0.xml the following line is generated as
> {code}<dependency org="org.safehaus.jug" name="jug" rev="2.0.0-osgi" force="true" conf="compile->compile(*),master(*);runtime->runtime(*)">
> <artifact name="jug" type="jar" ext="jar" conf="" m:classifier="asl"/>
> </dependency>{code}
> but it works if {{m:classifier}} is move to the {{dependency}} element:
> {code}<dependency org="org.safehaus.jug" name="jug" rev="2.0.0-osgi" force="true" conf="compile->compile(*),master(*);runtime->runtime(*)" m:classifier="asl">
> <artifact name="jug" type="jar" ext="jar" conf=""/>
> </dependency>{code}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.