You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Optional] Sponsorship to speed up the bug fix or feature request (example)
Description
When generating a java client the plugin configuration of the maven-dependency-plugin is not defined. That leads to a failing build with standard target 'mvn install' because of the maven-enforcer-plugin: Rule 1: org.apache.maven.enforcer.rules.RequirePluginVersions
Skipping the enforcer plugin is possible but not desirable.
It seems that all the mustache templates for pom.xml files do not contain a version for the dependency plugin. Setting a value there would most probably fix the issue.
The text was updated successfully, but these errors were encountered:
Thank you for your effort. The issue at my side was introduced through the enforcer-plugin on the parent pom I generated into the pom.xml. Still the question to me is, do you know why (in opposite to the other definitions) the version of the maven-dependency-plugin is not defined explicitely?
Bug Report Checklist
Description
When generating a java client the plugin configuration of the maven-dependency-plugin is not defined. That leads to a failing build with standard target 'mvn install' because of the maven-enforcer-plugin:
Rule 1: org.apache.maven.enforcer.rules.RequirePluginVersions
Skipping the enforcer plugin is possible but not desirable.
openapi-generator version
7.2.0, 7.6.0, 7.7.0-SNAPSHOT
OpenAPI declaration file content or url
reproducable with the example pet store project.
Generation Details
generate -g java --skip-validate-spec --additional-properties=library=resttemplate
Steps to reproduce
Related issues/PRs
Suggest a fix
It seems that all the mustache templates for pom.xml files do not contain a version for the dependency plugin. Setting a value there would most probably fix the issue.
The text was updated successfully, but these errors were encountered: