You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Andres Almiray (JIRA)" <ji...@codehaus.org> on 2007/12/23 01:56:57 UTC

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

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

Andres Almiray commented on MNG-3278:
-------------------------------------

I too found this problem trying to configure TestNG in parent pom

> 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