Open reiloe opened 2 years ago
Found the solution .... You have to add jakarta.annotation-api dependency instead javax.annotation. Pls add this as requirement in the description of the plugin
<dependency>
<groupId>jakarta.annotation</groupId>
<artifactId>jakarta.annotation-api</artifactId>
<version>${jakarta.version}</version>
</depdendency>
Description
According to the description you have to configure the generator plugin as follows:
But this results in:
The tag is recognized, however, what you can see that another error is thrown if you specify any nonsense as a value
this results in:
The only way to get around this error is to write the generator name in the properties section of the pom.xml, then the tag can also be completely deleted from the section of the generator.
This works, but it is not really useful. If you need different generator names, this workaround no longer works.
openapi-generator version
All versions > 4.3.1
Generation Details
Tested with:
Openapi-Generator-Plugin 5.0.0 to 5.3.0 AdoptOpenJdk 11 Intellij Ultimate 2021.2 Spring Boot 2.5.4 Maven 3.6.3