license-maven-plugin

Post here questions and problems related to oXygen frameworks/document types.
mnewland
Posts: 1
Joined: Fri Aug 12, 2022 10:16 pm

license-maven-plugin

Post 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!
Bogdan Dumitru
Site Admin
Posts: 25
Joined: Tue Mar 20, 2018 5:28 pm

Re: license-maven-plugin

Post 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
Bogdan Dumitru
http://www.oxygenxml.com
Post Reply