| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| ============LICENSE_START======================================================= |
| Copyright (C) 2023-2024 Nordix Foundation |
| ================================================================================ |
| Licensed under the Apache License, Version 2.0 (the "License"); |
| you may not use this file except in compliance with the License. |
| You may obtain a copy of the License at |
| http://www.apache.org/licenses/LICENSE-2.0 |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| SPDX-License-Identifier: Apache-2.0 |
| ============LICENSE_END========================================================= |
| --> |
| |
| <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| <modelVersion>4.0.0</modelVersion> |
| |
| <parent> |
| <groupId>org.onap.cps.ncmp-dmi-plugin</groupId> |
| <artifactId>ncmp-dmi-plugin</artifactId> |
| <version>1.6.0-SNAPSHOT</version> |
| </parent> |
| |
| <artifactId>dmi-stub</artifactId> |
| <packaging>pom</packaging> |
| |
| |
| <properties> |
| <checkstyle.config.location>../</checkstyle.config.location> |
| <jacoco.skip>true</jacoco.skip> |
| <java.version>17</java.version> |
| <maven.compiler.release>17</maven.compiler.release> |
| <sonar.skip>true</sonar.skip> |
| </properties> |
| |
| <modules> |
| <module>dmi-stub-service</module> |
| <module>dmi-stub-app</module> |
| </modules> |
| |
| <dependencyManagement> |
| <dependencies> |
| <dependency> |
| <groupId>${cps.groupId}</groupId> |
| <artifactId>cps-dependencies</artifactId> |
| <version>${cps.version}</version> |
| <type>pom</type> |
| <scope>import</scope> |
| </dependency> |
| </dependencies> |
| </dependencyManagement> |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.openapitools</groupId> |
| <artifactId>openapi-generator-maven-plugin</artifactId> |
| <version>6.6.0</version> |
| <executions> |
| <execution> |
| <id>code-gen</id> |
| <goals> |
| <goal>generate</goal> |
| </goals> |
| <configuration> |
| <inputSpec>${maven.multiModuleProjectDirectory}/docs/api/swagger/openapi-datajob.yaml</inputSpec> |
| <modelPackage>org.onap.cps.ncmp.dmi.datajobs.model</modelPackage> |
| <apiPackage>org.onap.cps.ncmp.dmi.datajobs.rest.api</apiPackage> |
| <generatorName>spring</generatorName> |
| <generateSupportingFiles>false</generateSupportingFiles> |
| <configOptions> |
| <sourceFolder>src/gen/java</sourceFolder> |
| <dateLibrary>java11</dateLibrary> |
| <interfaceOnly>true</interfaceOnly> |
| <useSpringBoot3>true</useSpringBoot3> |
| <useTags>true</useTags> |
| <openApiNullable>false</openApiNullable> |
| <skipDefaultInterface>true</skipDefaultInterface> |
| </configOptions> |
| </configuration> |
| </execution> |
| <execution> |
| <id>openapi-yaml-gen</id> |
| <goals> |
| <goal>generate</goal> |
| </goals> |
| <phase>compile</phase> |
| <configuration> |
| <inputSpec>${maven.multiModuleProjectDirectory}/docs/api/swagger/openapi-datajob.yaml</inputSpec> |
| <generatorName>openapi-yaml</generatorName> |
| <configOptions> |
| <outputFile>openapi-datajob.yaml</outputFile> |
| </configOptions> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| </project> |