You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Brett Porter (JIRA)" <ji...@codehaus.org> on 2008/06/13 04:36:12 UTC

[jira] Closed: (MNG-3278) classifiers in dependencyManagement don't work

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

Brett Porter closed MNG-3278.
-----------------------------

    Resolution: Not A Bug

this is by design - the classifier is part of the coordinate. Management is for managing versions and scopes.

> classifiers in dependencyManagement don't work
> ----------------------------------------------
>
>                 Key: MNG-3278
>                 URL: http://jira.codehaus.org/browse/MNG-3278
>             Project: Maven 2
>          Issue Type: Bug
>            Reporter: Paul Sundling
>            Priority: Minor
>
> parent pom:
> <pre>
>   <dependencyManagement>
>     <dependencies>
>       <dependency>
>         <groupId>net.sf.json-lib</groupId>
>         <artifactId>json-lib</artifactId>
>         <version>2.1</version>
>         <classifier>jdk15</classifier>
>       </dependency>
>     </dependencies>
>   </dependencyManagement>
> </pre>
> If child pom will pick up everything else like excludes, except the classifier, so classifier has to be added for every child pom.
> <pre>
>   <dependencies>
>     <dependency>
>       <groupId>net.sf.json-lib</groupId>
>       <artifactId>json-lib</artifactId>
>       <classifier>jdk15</classifier><!-- seems dependencyManagement doesn't handle classifiers properly -->
>     </dependency>
>   </dependencies>
> </pre>
> Expected to work, but fails:
> <pre>
>   <dependencies>
>     <dependency>
>       <groupId>net.sf.json-lib</groupId>
>       <artifactId>json-lib</artifactId>
>     </dependency>
>   </dependencies>
> </pre>

-- 
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