66e0cd4d77de733f5ef35d239f27612c11b041f0
[policy/xacml-pdp.git] / main / pom.xml
1 <!--
2   ============LICENSE_START=======================================================
3   ONAP Policy Engine - XACML PDP
4   ================================================================================
5   Copyright (C) 2019-2022 AT&T Intellectual Property. All rights reserved.
6   Modifications Copyright (C) 2020 Bell Canada.
7   Modifications Copyright (C) 2023-2024 Nordix Foundation.
8   ================================================================================
9   Licensed under the Apache License, Version 2.0 (the "License");
10   you may not use this file except in compliance with the License.
11   You may obtain a copy of the License at
12
13        http://www.apache.org/licenses/LICENSE-2.0
14
15   Unless required by applicable law or agreed to in writing, software
16   distributed under the License is distributed on an "AS IS" BASIS,
17   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18   See the License for the specific language governing permissions and
19   limitations under the License.
20   ============LICENSE_END=========================================================
21   -->
22
23 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
24          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
25     <modelVersion>4.0.0</modelVersion>
26     <parent>
27         <groupId>org.onap.policy.xacml-pdp</groupId>
28         <artifactId>policy-xacml-pdp</artifactId>
29         <version>3.1.2-SNAPSHOT</version>
30     </parent>
31
32     <artifactId>xacml-main</artifactId>
33
34     <name>${project.artifactId}</name>
35     <description>The main module of Policy PDP-X that handles startup, lifecycle management, and parameters.
36     </description>
37
38     <properties>
39         <jacoco.dataFile>${project.basedir}/../target/code-coverage/jacoco-ut.exec</jacoco.dataFile>
40     </properties>
41
42     <dependencies>
43         <dependency>
44             <groupId>org.onap.policy.common</groupId>
45             <artifactId>capabilities</artifactId>
46             <version>${policy.common.version}</version>
47         </dependency>
48         <dependency>
49             <groupId>org.onap.policy.common</groupId>
50             <artifactId>policy-endpoints</artifactId>
51             <version>${policy.common.version}</version>
52         </dependency>
53         <dependency>
54             <groupId>commons-cli</groupId>
55             <artifactId>commons-cli</artifactId>
56         </dependency>
57         <dependency>
58             <groupId>com.google.code.gson</groupId>
59             <artifactId>gson</artifactId>
60         </dependency>
61         <dependency>
62             <groupId>org.onap.policy.common</groupId>
63             <artifactId>common-parameters</artifactId>
64             <version>${policy.common.version}</version>
65         </dependency>
66         <dependency>
67             <groupId>org.onap.policy.xacml-pdp.applications</groupId>
68             <artifactId>common</artifactId>
69             <version>${project.version}</version>
70         </dependency>
71         <dependency>
72             <groupId>org.onap.policy.common</groupId>
73             <artifactId>utils-test</artifactId>
74             <version>${policy.common.version}</version>
75             <scope>test</scope>
76         </dependency>
77         <dependency>
78             <groupId>org.onap.policy.xacml-pdp.applications</groupId>
79             <artifactId>xacml-monitoring</artifactId>
80             <version>${project.version}</version>
81         </dependency>
82         <dependency>
83             <groupId>org.onap.policy.xacml-pdp.applications</groupId>
84             <artifactId>xacml-guard</artifactId>
85             <version>${project.version}</version>
86         </dependency>
87         <dependency>
88             <groupId>org.onap.policy.xacml-pdp.applications</groupId>
89             <artifactId>xacml-optimization</artifactId>
90             <version>${project.version}</version>
91         </dependency>
92         <dependency>
93             <groupId>org.onap.policy.xacml-pdp.applications</groupId>
94             <artifactId>xacml-naming</artifactId>
95             <version>${project.version}</version>
96         </dependency>
97         <dependency>
98             <groupId>org.onap.policy.xacml-pdp.applications</groupId>
99             <artifactId>xacml-native</artifactId>
100             <version>${project.version}</version>
101         </dependency>
102         <dependency>
103             <groupId>org.onap.policy.xacml-pdp.applications</groupId>
104             <artifactId>xacml-match</artifactId>
105             <version>${project.version}</version>
106         </dependency>
107         <dependency>
108             <groupId>org.onap.policy.models</groupId>
109             <artifactId>policy-models-pdp</artifactId>
110             <version>${policy.models.version}</version>
111         </dependency>
112         <dependency>
113             <groupId>io.prometheus</groupId>
114             <artifactId>simpleclient_logback</artifactId>
115         </dependency>
116         <dependency>
117             <groupId>io.prometheus</groupId>
118             <artifactId>simpleclient_hotspot</artifactId>
119             <scope>runtime</scope>
120         </dependency>
121         <dependency>
122             <groupId>io.prometheus</groupId>
123             <artifactId>simpleclient_servlet_jakarta</artifactId>
124             <scope>runtime</scope>
125         </dependency>
126         <dependency>
127             <groupId>org.apache.kafka</groupId>
128             <artifactId>kafka-clients</artifactId>
129             <scope>runtime</scope>
130         </dependency>
131         <dependency>
132             <groupId>org.onap.policy.xacml-pdp</groupId>
133             <artifactId>xacml-test</artifactId>
134             <version>${project.version}</version>
135             <scope>test</scope>
136         </dependency>
137         <dependency>
138             <groupId>org.mockito</groupId>
139             <artifactId>mockito-core</artifactId>
140             <scope>test</scope>
141         </dependency>
142         <dependency>
143             <groupId>org.springframework</groupId>
144             <artifactId>spring-test</artifactId>
145             <scope>test</scope>
146         </dependency>
147         <!-- Swagger v3 annotations -->
148         <dependency>
149             <groupId>io.swagger.core.v3</groupId>
150             <artifactId>swagger-annotations</artifactId>
151         </dependency>
152         <dependency>
153             <groupId>org.bouncycastle</groupId>
154             <artifactId>bcpkix-fips</artifactId>
155         </dependency>
156         <dependency>
157             <groupId>org.glassfish.jersey.media</groupId>
158             <artifactId>jersey-media-json-jackson</artifactId>
159             <version>${version.jersey}</version>
160         </dependency>
161     </dependencies>
162
163     <build>
164         <resources>
165             <!-- Output the version of the pdpx service -->
166             <resource>
167                 <directory>src/main/resources</directory>
168                 <filtering>true</filtering>
169                 <includes>
170                     <include>**/version.txt</include>
171                 </includes>
172             </resource>
173             <resource>
174                 <directory>src/main/resources</directory>
175                 <filtering>false</filtering>
176                 <excludes>
177                     <exclude>**/version.txt</exclude>
178                 </excludes>
179             </resource>
180         </resources>
181         <plugins>
182             <!-- Controllers interfaces generation -->
183             <plugin>
184                 <groupId>io.swagger.codegen.v3</groupId>
185                 <artifactId>swagger-codegen-maven-plugin</artifactId>
186                 <executions>
187                     <execution>
188                         <id>code-gen</id>
189                         <goals>
190                             <goal>generate</goal>
191                         </goals>
192                         <configuration>
193                             <inputSpec>${project.basedir}/src/main/resources/openapi/openapi.yaml</inputSpec>
194                             <invokerPackage>org.onap.policy.pdpx.main.rest</invokerPackage>
195                             <modelPackage>org.onap.policy.pdpx.main.rest.model</modelPackage>
196                             <apiPackage>org.onap.policy.pdpx.main.rest</apiPackage>
197                             <language>jaxrs-spec</language>
198                             <generateModels>false</generateModels>
199                             <generateSupportingFiles>false</generateSupportingFiles>
200                             <importMappings>
201                                 HealthCheckReport=org.onap.policy.common.endpoints.report.HealthCheckReport,
202                                 DecisionException=org.onap.policy.models.decisions.concepts.DecisionException,
203                                 DecisionRequest=org.onap.policy.models.decisions.concepts.DecisionRequest,
204                                 DecisionResponse=org.onap.policy.models.decisions.concepts.DecisionResponse,
205                                 ErrorResponse=org.onap.policy.models.errors.concepts.ErrorResponse,
206                                 StatisticsReport=org.onap.policy.pdpx.main.rest.model.StatisticsReport,
207                                 DecisionProvider=org.onap.policy.pdpx.main.rest.provider.DecisionProvider,
208                                 HealthCheckProvider=org.onap.policy.pdpx.main.rest.provider.HealthCheckProvider,
209                                 StatisticsProvider=org.onap.policy.pdpx.main.rest.provider.StatisticsProvider,
210                                 Request=com.att.research.xacml.api.Request,
211                                 Response=jakarta.ws.rs.core.Response
212                             </importMappings>
213                             <configOptions>
214                                 <sourceFolder>src/gen/java</sourceFolder>
215                                 <dateLibrary>java17</dateLibrary>
216                                 <interfaceOnly>true</interfaceOnly>
217                                 <useTags>true</useTags>
218                                 <jakarta>true</jakarta>
219                             </configOptions>
220                         </configuration>
221                     </execution>
222                 </executions>
223             </plugin>
224         </plugins>
225     </build>
226
227 </project>