Update snapshot and/or references of policy/drools-pdp to latest snapshots
[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.2-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                 <executions>
88                     <execution>
89                         <id>code-gen</id>
90                         <goals>
91                             <goal>generate</goal>
92                         </goals>
93                         <configuration>
94                             <inputSpec>${project.basedir}/src/main/resources/openapi/openapi.yaml</inputSpec>
95                             <invokerPackage>org.onap.policy.drools.healthcheck</invokerPackage>
96                             <modelPackage>org.onap.policy.drools.healthcheck.model</modelPackage>
97                             <apiPackage>org.onap.policy.drools.healthcheck</apiPackage>
98                             <language>jaxrs-spec</language>
99                             <generateModels>false</generateModels>
100                             <generateSupportingFiles>false</generateSupportingFiles>
101                             <sortParamsByRequiredFlag>false</sortParamsByRequiredFlag>
102                             <importMappings>
103                                 Response=javax.ws.rs.core.Response
104                             </importMappings>
105                             <typeMappings>
106                                 <typeMapping>boolean=boolean</typeMapping>
107                             </typeMappings>
108                             <configOptions>
109                                 <sourceFolder>src/gen/java</sourceFolder>
110                                 <dateLibrary>java11</dateLibrary>
111                                 <interfaceOnly>true</interfaceOnly>
112                                 <useTags>true</useTags>
113                                 <skipIfSpecIsUnchanged>false</skipIfSpecIsUnchanged>
114                             </configOptions>
115                         </configuration>
116                     </execution>
117                 </executions>
118             </plugin>
119         </plugins>
120     </build>
121
122     <dependencies>
123         <dependency>
124             <groupId>org.onap.policy.drools-pdp</groupId>
125             <artifactId>policy-core</artifactId>
126             <version>${project.version}</version>
127             <scope>provided</scope>
128         </dependency>
129         <dependency>
130             <groupId>org.onap.policy.common</groupId>
131             <artifactId>policy-endpoints</artifactId>
132             <version>${policy.common.version}</version>
133             <scope>provided</scope>
134         </dependency>
135         <dependency>
136             <groupId>org.onap.policy.drools-pdp</groupId>
137             <artifactId>policy-management</artifactId>
138             <version>${project.version}</version>
139             <scope>provided</scope>
140         </dependency>
141         <dependency>
142             <groupId>junit</groupId>
143             <artifactId>junit</artifactId>
144             <scope>test</scope>
145         </dependency>
146         <dependency>
147             <groupId>org.mockito</groupId>
148             <artifactId>mockito-core</artifactId>
149             <scope>test</scope>
150         </dependency>
151         <dependency>
152             <groupId>org.awaitility</groupId>
153             <artifactId>awaitility</artifactId>
154             <scope>test</scope>
155         </dependency>
156                 <!-- Swagger v3 annotations -->
157         <dependency>
158             <groupId>io.swagger.core.v3</groupId>
159         <artifactId>swagger-annotations</artifactId>
160         <version>${version.swagger.core.v3}</version>
161         </dependency>
162     </dependencies>
163
164 </project>