<project xmlns="http://maven.apache.org/POM/4.0.0"\r
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"\r
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">\r
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"\r
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">\r
<modelVersion>4.0.0</modelVersion>\r
<artifactId>cps-rest</artifactId>\r
<parent>\r
</exclusion>\r
</exclusions>\r
</dependency>\r
+\r
+ <!-- Used by the generated API -->\r
+ <dependency>\r
+ <groupId>org.apache.cxf</groupId>\r
+ <artifactId>cxf-bundle-jaxrs</artifactId>\r
+ <version>${cxf-bundle-jaxrs.version}</version>\r
+ </dependency>\r
+\r
+ <!-- Used by the generated API -->\r
+ <dependency>\r
+ <groupId>org.apache.cxf</groupId>\r
+ <artifactId>cxf-rt-rs-service-description</artifactId>\r
+ <version>${cxf-rt-rs-service.version}</version>\r
+ </dependency>\r
+\r
</dependencies>\r
\r
<build>\r
</execution>\r
</executions>\r
</plugin>\r
+\r
+ <plugin>\r
+ <groupId>io.swagger.codegen.v3</groupId>\r
+ <artifactId>swagger-codegen-maven-plugin</artifactId>\r
+ <version>${swagger-codegen.version}</version>\r
+ <executions>\r
+ <execution>\r
+ <goals>\r
+ <goal>generate</goal>\r
+ </goals>\r
+ <configuration>\r
+ <inputSpec>${project.basedir}/docs/api/swagger/openapi.yml</inputSpec>\r
+ <invokerPackage>org.onap.cps.rest.controller</invokerPackage>\r
+ <modelPackage>org.onap.cps.rest.model</modelPackage>\r
+ <apiPackage>org.onap.cps.rest.controller</apiPackage>\r
+ <language>jaxrs-cxf</language>\r
+ <generateSupportingFiles>true</generateSupportingFiles>\r
+ <configOptions>\r
+ <sourceFolder>src/gen/java</sourceFolder>\r
+ <dateLibrary>java8</dateLibrary>\r
+ <library>jersey2</library>\r
+ <interfaceOnly>true</interfaceOnly>\r
+ </configOptions>\r
+ </configuration>\r
+ </execution>\r
+ </executions>\r
+ </plugin>\r
<plugin>\r
<!-- Download Swagger UI webjar. -->\r
<groupId>org.apache.maven.plugins</groupId>\r
<version>${swagger-ui.version}</version>\r
</artifactItem>\r
</artifactItems>\r
- <outputDirectory>${project.build.directory}/swagger-ui-${swagger-ui.version}</outputDirectory>\r
+ <outputDirectory>\r
+ ${project.build.directory}/swagger-ui-${swagger-ui.version}\r
+ </outputDirectory>\r
</configuration>\r
</execution>\r
</executions>\r
<goal>copy-resources</goal>\r
</goals>\r
<configuration>\r
- <outputDirectory>${project.build.outputDirectory}/static/swagger-ui</outputDirectory>\r
+ <outputDirectory>${project.build.outputDirectory}/static/swagger-ui\r
+ </outputDirectory>\r
<resources>\r
<resource>\r
- <directory>${project.build.directory}/swagger-ui-${swagger-ui.version}/META-INF/resources/webjars/swagger-ui/${swagger-ui.version}/</directory>\r
+ <directory>\r
+ ${project.build.directory}/swagger-ui-${swagger-ui.version}/META-INF/resources/webjars/swagger-ui/${swagger-ui.version}/\r
+ </directory>\r
<excludes>\r
<exclude>**/*.gz</exclude>\r
</excludes>\r