You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Paul Sundling (JIRA)" <ji...@codehaus.org> on 2007/11/07 21:08:35 UTC
[jira] Created: (MNG-3278) classifiers in dependencyManagement
don't work
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
[jira] Closed: (MNG-3278) classifiers in dependencyManagement don't
work
Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
[ 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
[jira] Commented: (MNG-3278) classifiers in dependencyManagement
don't work
Posted by "Andres Almiray (JIRA)" <ji...@codehaus.org>.
[ 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