DependencyManagement doesn't work for providing versions for tests classifer
----------------------------------------------------------------------------

                 Key: MNG-4392
                 URL: http://jira.codehaus.org/browse/MNG-4392
             Project: Maven 2
          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 is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to