You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Christian Schulte (JIRA)" <ji...@apache.org> on 2016/07/30 16:18:20 UTC

[jira] [Commented] (MNG-3825) Dependencies with classifier should not always require a version.

    [ https://issues.apache.org/jira/browse/MNG-3825?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15400727#comment-15400727 ] 

Christian Schulte commented on MNG-3825:
----------------------------------------

What could be done easily is to expand the {{dependencyManagement}} during model building. For all dependencies found in {{dependencyManagement}}, additional dependency declarations are added for a well-known set of classifiers. What classifiers should that set contain?


> Dependencies with classifier should not always require a version.
> -----------------------------------------------------------------
>
>                 Key: MNG-3825
>                 URL: https://issues.apache.org/jira/browse/MNG-3825
>             Project: Maven
>          Issue Type: Improvement
>          Components: Dependencies
>            Reporter: Paul Gier
>             Fix For: Issues to be reviewed for 4.x
>
>
> If I have two dependencies one with a classifier and one without, that look something like this:
> {code:xml}
> <dependency>
>   <groupId>com.mycompany</groupId>
>   <artifactId>project1</artifact>
>   <version>1</version>
> </dependency>
> <dependency>
>   <groupId>com.mycompany</groupId>
>   <artifactId>project1</artifact>
>   <classifier>client</classifier>
>   <version>1</version>
> </dependency>
> {code}
> Currently I need to specify versions for both of them.  If I specify the versions in dependency management, I should only have to specify the non-classifier version.  The dependency with the classifier should default to the same version as the one without the dependency.  This would save a lot of extra configuration for some projects.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)