Closed user667 closed 4 years ago
Sorry, but haven't had the time to look into the before. Looks like your problem is that you are using a pretty old version of Maven? You do not have the options of upgrading your Maven version?
That being said I think your workaround should be safe. My guess is that should it fail it would fail completely being unable to render any OpenAPI document at all.
We are using this plugin to generate a Swagger definition file in one of our projects. Once we wanted to deploy our artifacts to Nexus we ran into an issue on Jenkins (Maven version 3.3.9): https://gist.github.com/user667/c750fad5eb40956713b2c6ec366e1026 This is due to an incompatiblilty of Maven 3.3.9 and the dependencies set in this plugin, namely
org.apache.maven.plugin-tools:maven-plugin-annotations:3.5
andorg.apache.maven:maven-plugin-api:3.6.0
,org.apache.maven:maven-core:3.6.0
andorg.apache.maven:maven-artifact:3.6.0
. Using Maven version 3.5+ doesn't have the issue.Is it safe to use the workaround mentioned below (i.e. downgroading version 3.2.5/3.4)? And/or is it necessary to use the latest maven versions as a dependency?
To Reproduce Use Maven (version 3.3.9) and deploy (
mvn clean deploy
) an artifact that uses this plugin.Expected behavior
maven-deploy-plugin:3.0.0-M1:deploy
should be successful.Additional context As a workaround, one can override the above dependencies: