[ 
https://jira.codehaus.org/browse/MNG-4392?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Paul Benedict updated MNG-4392:
-------------------------------

    Fix Version/s:     (was: Issues to be reviewed for 3.x)

> DependencyManagement doesn't work for providing versions for tests classifer
> ----------------------------------------------------------------------------
>
>                 Key: MNG-4392
>                 URL: https://jira.codehaus.org/browse/MNG-4392
>             Project: Maven
>          Issue Type: Bug
>    Affects Versions: 2.1.0
>            Reporter: Neale
>
> I can't get the following to work despite trying various combos.
> The expected behaviour is that only one declaration of the version for a 
> given artifact/groupId should be needed, and that that artifact is used by 
> all consuming artifacts.
> {code:xml}
> <!-- in <dependencyManagement> of parent POM -->
>             <dependency>
>               <groupId>ucles</groupId>
>               <artifactId>ucles.util</artifactId>
>               <version>1.1</version>
>             </dependency>
> {code}
> {code:xml}
>     <!-- in project dependencies -->
>     <dependency>
>       <groupId>ucles</groupId>
>       <artifactId>ucles.util</artifactId>
>       <scope>compile</scope>
>     </dependency>
>     <dependency>
>       <groupId>ucles</groupId>
>       <artifactId>ucles.util</artifactId>
>       <classifier>tests</classifier>
>       <scope>test</scope>
>     </dependency>
> {code}
> Surely this is a bug, as I can't see why someone would want to use different 
> versions of the same artifact.



--
This message was sent by Atlassian JIRA
(v6.1.6#6162)

Reply via email to