Forum Discussion

bogdanp's avatar
bogdanp
Occasional Contributor
6 years ago
Solved

tags not generated in YAML file using swagger-maven-plugin

Hello,

 

I am using swagger-maven-plugin to generate a YAML file based on openAPI annotations.

https://github.com/swagger-api/swagger-core/tree/master/modules/swagger-maven-plugin

The issue is that tags are not generated.

I am using

org.eclipse.microprofile.openapi.annotations.tags

Any suggestions on how I can solve this issue: what I need to change in the pom.xml file?

My pom.xml looks like this:

<plugin>
<groupId>io.swagger.core.v3</groupId>
<artifactId>swagger-maven-plugin</artifactId>
<version>2.0.8</version>
<configuration>
<openapiFilePath>${project.basedir} --this is a PATH to my configuration.yaml file</openapiFilePath>
<outputFileName>result</outputFileName>
<outputFormat>JSONANDYAML</outputFormat>
<outputPath>${project.build.directory}</outputPath>
<prettyPrint>true</prettyPrint>
</configuration>
<executions>
<execution>
<phase>compile</phase>
<goals>
<goal>resolve</goal>
</goals>
</execution>
</executions>
</plugin>

Thanks a lot,

Bogdan