[ https://issues.apache.org/jira/browse/MNG-8363?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17935170#comment-17935170 ]
Rodrigo Carvalho Silva commented on MNG-8363: --------------------------------------------- Thanks for the information, [~gnodet] . My understanding about the error was wrong. I thought that the version was always required when using a classifier but the error I got was because the managed version didn't have a classifier. I tested adding the classifier to the "dependencyManagement" declaration and the error is gone. You may close the issue. Regards, Rodrigo > 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)