Page 1 of 1

license-maven-plugin

Posted: Fri Aug 12, 2022 10:24 pm
by mnewland
Hello,
I'm developing a REST connector based on https://github.com/oxygenxml/web-author-rest-plugin
When I attempt to compile, I get an error:

Code: Select all

[ERROR] Plugin com.oxygenxml:license-maven-plugin:1.4 or one of its dependencies could not be resolved: Could not find artifact com.oxygenxml:license-maven-plugin:jar:1.4 in oxygen-plugins (https://oxygenxml.com/maven) -> [Help 1]
I understand that the `com.oxygenxml:license-maven-plugin` is referenced in the `oxygen-plugins-superpom` dependency.
I have tried adding a repository and a pluginRepository for com.oxygenxml, pointing to https://oxygenxml.com/maven/.
What am I missing here? How do I get this to compile?
Thanks to anyone who can help!

Re: license-maven-plugin

Posted: Tue Aug 16, 2022 9:37 am
by Bogdan Dumitru
Hello,

The "com.oxygenxml:license-maven-plugin" is an artifact that was not published to the public Maven repository "oxygenxml.com/maven".
One way to fix this is to bypass the "oxygen-plugins-superpom" that declares the missing plugin:
1. declare as parent pom "oxygen-superpom-versions" instead of "oxygen-plugins-superpom". Note that "oxygen-superpom-versions" is the parent pom of "oxygen-plugins-superpom"
2. open "~/.m2/com.oxygenxml/oxygen-plugins-superpom/24.0.0.4/oxygen-plugins-superpom-24.0.0.4.pom" and copy all dependencies and all plugins but "license-maven-plugin" from "oxygen-plugins-superpom" to your pom.xml