[
https://issues.apache.org/jira/browse/MNG-8363?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17935063#comment-17935063
]
Guillaume Nodet commented on MNG-8363:
--------------------------------------
Each dependency is managed differently. A dependency with or without a
classifier is not considered the same, so if you want to managed a dependency
with a classifier, you can do so, but you need to add the classifier to the
managed dependency.
If you want to align the versions of multiple dependencies, this is usually
done using a property for the version, or a BOM.
> Make dependency's "version" tag optional when we have a "classifier"
> --------------------------------------------------------------------
>
> Key: MNG-8363
> URL: https://issues.apache.org/jira/browse/MNG-8363
> Project: Maven
> Issue Type: Improvement
> Affects Versions: 3.9.9
> Reporter: Rodrigo Carvalho Silva
> Priority: Major
>
> I have the following dependency:
> {{ <dependency>}}
> {{ <groupId>com.querydsl</groupId>}}
> {{ <artifactId>querydsl-jpa</artifactId>}}
> {{ </dependency>}}
> And I need to add a classifier to it but the following is invalid:
> {{ <dependency>}}
> {{ <groupId>com.querydsl</groupId>}}
> {{ <artifactId>querydsl-jpa</artifactId>}}
> {{ <classifier>jakarta</classifier>}}
> {{ </dependency>}}
> So, to add this classifier, I also need to add a version manually instead of
> relying on the managed dependency's version.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)