This issue has been created
 
 
XWiki Commons / cid:jira-generated-image-avatar-0becc2a8-8ffd-4940-a4d8-ac6da488d1d9 XCOMMONS-3028 Open

Maven dependencies with targeting a type different from the default one are not supported

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-05ce2501-bdee-4ddd-97d3-a8f5b9b8b45b Thomas Mortagne created this issue on 16/May/24 11:03
 
Summary: Maven dependencies with targeting a type different from the default one are not supported
Issue Type: cid:jira-generated-image-avatar-0becc2a8-8ffd-4940-a4d8-ac6da488d1d9 Bug
Affects Versions: 15.10.8
Assignee: Unassigned
Components: Extension
Created: 16/May/24 11:03
Priority: cid:jira-generated-image-static-major-f0451bf0-47ae-4ca5-aae8-003e38cd4356 Major
Reporter: Thomas Mortagne
Description:

In some (fortunately very rare so far) cases, you can have a Maven dependency request an artifact which is not the default one (with a different type or classifier for example) and this cause collisions problems if several artifacts associated with the same artifact id are downloaded.

We would need to introduce a way to have several extensions in such a case (most probably by including the classifier and the alternate type in the extension if). It's already partially supported by resolve (but disabled right now) but not by the dependency handling side.