[ 
https://issues.apache.org/jira/browse/IVY-1587?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16924883#comment-16924883
 ] 

jaikiran pai commented on IVY-1587:
-----------------------------------

I just tried this locally with 2.5.0-rc1, I see 2 artifacts:

{code}
java -jar ivy-2.5.0-rc1.jar -cache ./cache -dependency "org.slf4j" 
"slf4j-log4j12" "1.7.25" -confs default -types jar -retrieve 
lib/[originalname](-[type]).[ext]
{code}

and it resolved and retrieved both the jars:

{code}
:: resolving dependencies :: org.slf4j#slf4j-log4j12-caller;working
        confs: [default]
        found org.slf4j#slf4j-log4j12;1.7.25 in public
        found org.slf4j#slf4j-api;1.7.25 in public
        found log4j#log4j;1.2.17 in public
downloading 
https://repo1.maven.org/maven2/org/slf4j/slf4j-log4j12/1.7.25/slf4j-log4j12-1.7.25.jar
 ...
...... (11kB)
.. (0kB)
        [SUCCESSFUL ] org.slf4j#slf4j-log4j12;1.7.25!slf4j-log4j12.jar (916ms)
downloading 
https://repo1.maven.org/maven2/org/slf4j/slf4j-api/1.7.25/slf4j-api-1.7.25.jar 
...
.............. (40kB)
.. (0kB)
        [SUCCESSFUL ] org.slf4j#slf4j-api;1.7.25!slf4j-api.jar (1093ms)
:: resolution report :: resolve 9064ms :: artifacts dl 2016ms
        ---------------------------------------------------------------------
        |                  |            modules            ||   artifacts   |
        |       conf       | number| search|dwnlded|evicted|| number|dwnlded|
        ---------------------------------------------------------------------
        |      default     |   3   |   3   |   3   |   0   ||   2   |   2   |
        ---------------------------------------------------------------------
:: retrieving :: org.slf4j#slf4j-log4j12-caller
        confs: [default]
        2 artifacts copied, 0 already retrieved (52kB/7ms)
{code}

Here's the contents of the retrieved lib directory:
{code}
> ls lib
slf4j-api-1.7.25-jar.jar        slf4j-log4j12-1.7.25-jar.jar
{code}

> Wrong POM translation for dependencies appearing more than once
> ---------------------------------------------------------------
>
>                 Key: IVY-1587
>                 URL: https://issues.apache.org/jira/browse/IVY-1587
>             Project: Ivy
>          Issue Type: Bug
>    Affects Versions: 2.5.0-rc1
>            Reporter: Cédric Damioli
>            Priority: Major
>
> Using 
>  
> {code:java}
> java -jar ivy.jar -dependency "org.slf4j" "slf4j-log4j12" "1.7.25" -confs 
> default -types jar
> {code}
> With Ivy 2.4.0, I get two artifacts : slf4j-api.jar and slf4j-log4j12.jar
> With Ivy 2.5.0RC1, I only get {color:#333333}slf4j-log4j12.jar with no means 
> to get the -api artifact {color}
>  
> This seems to be related to the resolution of IVY-1576
>  
> In the POM, the slf4j-api dependency is present twice, once for compile, once 
> for tests.
> Before IVY-1576, it resulted in two different dependencies.
> With IVY-1576, there's only one dependency, offering only the test artifact.
>  
> The fix was good for "merging" dependencies with classifiers, but in this 
> case, the merge should not have occured
>  
> I don't set this ticket as critical as there are workarounds, but it is at 
> least very annoying
>  



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

Reply via email to