Removing Drools-pdp swagger annotations
[policy/drools-pdp.git] / feature-healthcheck / pom.xml
1 <!--
2   ============LICENSE_START=======================================================
3   ONAP
4   ================================================================================
5   Copyright (C) 2017-2022 AT&T Intellectual Property. All rights reserved.
6   Modifications Copyright (C) 2023 Nordix Foundation.
7   ================================================================================
8   Licensed under the Apache License, Version 2.0 (the "License");
9   you may not use this file except in compliance with the License.
10   You may obtain a copy of the License at
11
12        http://www.apache.org/licenses/LICENSE-2.0
13
14   Unless required by applicable law or agreed to in writing, software
15   distributed under the License is distributed on an "AS IS" BASIS,
16   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17   See the License for the specific language governing permissions and
18   limitations under the License.
19   ============LICENSE_END=========================================================
20   -->
21
22 <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 http://maven.apache.org/xsd/maven-4.0.0.xsd">
23
24     <modelVersion>4.0.0</modelVersion>
25
26     <parent>
27         <groupId>org.onap.policy.drools-pdp</groupId>
28         <artifactId>drools-pdp</artifactId>
29         <version>1.12.1-SNAPSHOT</version>
30     </parent>
31
32     <artifactId>feature-healthcheck</artifactId>
33
34     <name>feature-healthcheck</name>
35     <description>Loadable module that performs remote system healthchecks</description>
36
37     <build>
38         <plugins>
39             <plugin>
40                 <artifactId>maven-assembly-plugin</artifactId>
41                 <executions>
42                     <execution>
43                         <id>zipfile</id>
44                         <goals>
45                             <goal>single</goal>
46                         </goals>
47                         <phase>package</phase>
48                         <configuration>
49                             <attach>true</attach>
50                             <finalName>${project.artifactId}-${project.version}</finalName>
51                             <descriptors>
52                                 <descriptor>src/assembly/assemble_zip.xml</descriptor>
53                             </descriptors>
54                             <appendAssemblyId>false</appendAssemblyId>
55                         </configuration>
56                     </execution>
57                 </executions>
58             </plugin>
59             <plugin>
60                 <groupId>org.apache.maven.plugins</groupId>
61                 <artifactId>maven-dependency-plugin</artifactId>
62                 <executions>
63                     <execution>
64                         <id>copy-dependencies</id>
65                         <goals>
66                             <goal>copy-dependencies</goal>
67                         </goals>
68                         <phase>prepare-package</phase>
69                         <configuration>
70                             <outputDirectory>${project.build.directory}/assembly/lib</outputDirectory>
71                             <overWriteReleases>false</overWriteReleases>
72                             <overWriteSnapshots>true</overWriteSnapshots>
73                             <overWriteIfNewer>true</overWriteIfNewer>
74                             <useRepositoryLayout>false</useRepositoryLayout>
75                             <addParentPoms>false</addParentPoms>
76                             <copyPom>false</copyPom>
77                             <includeScope>runtime</includeScope>
78                             <excludeTransitive>true</excludeTransitive>
79                         </configuration>
80                     </execution>
81                 </executions>
82             </plugin>
83             <!-- Controllers interfaces generation -->
84             <plugin>
85                 <groupId>io.swagger.codegen.v3</groupId>
86                 <artifactId>swagger-codegen-maven-plugin</artifactId>
87                 <version>3.0.27</version>
88                 <executions>
89                     <execution>
90                         <id>code-gen</id>
91                         <goals>
92                             <goal>generate</goal>
93                         </goals>
94                         <configuration>
95                             <inputSpec>${project.basedir}/src/main/resources/openapi/openapi.yaml</inputSpec>
96                             <invokerPackage>org.onap.policy.drools.healthcheck</invokerPackage>
97                             <modelPackage>org.onap.policy.drools.healthcheck.model</modelPackage>
98                             <apiPackage>org.onap.policy.drools.healthcheck</apiPackage>
99                             <language>jaxrs-spec</language>
100                             <generateModels>false</generateModels>
101                             <generateSupportingFiles>false</generateSupportingFiles>
102                             <sortParamsByRequiredFlag>false</sortParamsByRequiredFlag>
103                             <importMappings>
104                                 Response=javax.ws.rs.core.Response
105                             </importMappings>
106                             <typeMappings>
107                                 <typeMapping>boolean=boolean</typeMapping>
108                             </typeMappings>
109                             <configOptions>
110                                 <sourceFolder>src/gen/java</sourceFolder>
111                                 <dateLibrary>java11</dateLibrary>
112                                 <interfaceOnly>true</interfaceOnly>
113                                 <useTags>true</useTags>
114                                 <skipIfSpecIsUnchanged>false</skipIfSpecIsUnchanged>
115                             </configOptions>
116                         </configuration>
117                     </execution>
118                 </executions>
119             </plugin>
120         </plugins>
121     </build>
122
123     <dependencies>
124         <dependency>
125             <groupId>org.onap.policy.drools-pdp</groupId>
126             <artifactId>policy-core</artifactId>
127             <version>${project.version}</version>
128             <scope>provided</scope>
129         </dependency>
130         <dependency>
131             <groupId>org.onap.policy.common</groupId>
132             <artifactId>policy-endpoints</artifactId>
133             <version>${policy.common.version}</version>
134             <scope>provided</scope>
135         </dependency>
136         <dependency>
137             <groupId>org.onap.policy.drools-pdp</groupId>
138             <artifactId>policy-management</artifactId>
139             <version>${project.version}</version>
140             <scope>provided</scope>
141         </dependency>
142         <dependency>
143             <groupId>junit</groupId>
144             <artifactId>junit</artifactId>
145             <scope>test</scope>
146         </dependency>
147         <dependency>
148             <groupId>org.mockito</groupId>
149             <artifactId>mockito-core</artifactId>
150             <scope>test</scope>
151         </dependency>
152         <dependency>
153             <groupId>org.awaitility</groupId>
154             <artifactId>awaitility</artifactId>
155             <scope>test</scope>
156         </dependency>
157                 <!-- Swagger v3 annotations -->
158         <dependency>
159             <groupId>io.swagger.core.v3</groupId>
160         <artifactId>swagger-annotations</artifactId>
161         <version>${version.swagger.core.v3}</version>
162         </dependency>
163     </dependencies>
164
165 </project>