Closed hd42 closed 1 year ago
The problem is that "plain old maven" sadly do only know a fixed list of "maven managed" artifact types, everything else requires an extension.
I opened this here at Maven:
but will take care to put an option to "lying" about the actual packaging type to Tycho consumer pom generator.
@hd42 can you share a minimal demo project for further analysis why maven actually try to use the wrong type?
The fix for this issue was gently sponsored by Faktor Zehn GmbH.
When I create a consumer-pom for my plugin project, I want that project to be usable as a plain old maven dependency. But Maven seams to read the POM (at least for transitive dependencies) and decides to look for a file with the extension .eclipse-plugin instead of .jar.
This can be avoided by adding
to the POM referencing the Plugin-JAR, but that is something counterintuitive for the JARs consumers, who are not using Tycho - else they wouldn't be using the JAR as a maven dependency.
It would be nice if Tycho could (optionally?) replace the packing type when creating the consumer-pom.