Release policy/drools-pdp
[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"
23          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
24
25     <modelVersion>4.0.0</modelVersion>
26
27     <parent>
28         <groupId>org.onap.policy.drools-pdp</groupId>
29         <artifactId>drools-pdp</artifactId>
30         <version>2.0.1</version>
31     </parent>
32
33     <artifactId>feature-healthcheck</artifactId>
34
35     <name>feature-healthcheck</name>
36     <description>Loadable module that performs remote system healthchecks</description>
37
38     <build>
39         <plugins>
40             <plugin>
41                 <artifactId>maven-assembly-plugin</artifactId>
42                 <executions>
43                     <execution>
44                         <id>zipfile</id>
45                         <goals>
46                             <goal>single</goal>
47                         </goals>
48                         <phase>package</phase>
49                         <configuration>
50                             <attach>true</attach>
51                             <finalName>${project.artifactId}-${project.version}</finalName>
52                             <descriptors>
53                                 <descriptor>src/assembly/assemble_zip.xml</descriptor>
54                             </descriptors>
55                             <appendAssemblyId>false</appendAssemblyId>
56                         </configuration>
57                     </execution>
58                 </executions>
59             </plugin>
60             <plugin>
61                 <groupId>org.apache.maven.plugins</groupId>
62                 <artifactId>maven-dependency-plugin</artifactId>
63                 <executions>
64                     <execution>
65                         <id>copy-dependencies</id>
66                         <goals>
67                             <goal>copy-dependencies</goal>
68                         </goals>
69                         <phase>prepare-package</phase>
70                         <configuration>
71                             <outputDirectory>${project.build.directory}/assembly/lib</outputDirectory>
72                             <overWriteReleases>false</overWriteReleases>
73                             <overWriteSnapshots>true</overWriteSnapshots>
74                             <overWriteIfNewer>true</overWriteIfNewer>
75                             <useRepositoryLayout>false</useRepositoryLayout>
76                             <addParentPoms>false</addParentPoms>
77                             <copyPom>false</copyPom>
78                             <includeScope>runtime</includeScope>
79                             <excludeTransitive>true</excludeTransitive>
80                         </configuration>
81                     </execution>
82                 </executions>
83             </plugin>
84             <!-- Controllers interfaces generation -->
85             <plugin>
86                 <groupId>io.swagger.codegen.v3</groupId>
87                 <artifactId>swagger-codegen-maven-plugin</artifactId>
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                             <importMappings>
103                                 Response=jakarta.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>java17</dateLibrary>
111                                 <interfaceOnly>true</interfaceOnly>
112                                 <useTags>true</useTags>
113                                 <skipIfSpecIsUnchanged>false</skipIfSpecIsUnchanged>
114                                 <jakarta>true</jakarta>
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.drools-pdp</groupId>
132             <artifactId>policy-management</artifactId>
133             <version>${project.version}</version>
134             <scope>provided</scope>
135         </dependency>
136     </dependencies>
137
138 </project>