Merge "Replace Eclipselink with Hibernate"
[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 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>2.8.1-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.</description>
36
37     <properties>
38         <jacoco.dataFile>${project.basedir}/../target/code-coverage/jacoco-ut.exec</jacoco.dataFile>
39     </properties>
40
41     <dependencies>
42         <dependency>
43             <groupId>org.onap.policy.common</groupId>
44             <artifactId>capabilities</artifactId>
45             <version>${policy.common.version}</version>
46         </dependency>
47         <dependency>
48             <groupId>org.onap.policy.common</groupId>
49             <artifactId>policy-endpoints</artifactId>
50             <version>${policy.common.version}</version>
51         </dependency>
52         <dependency>
53             <groupId>commons-cli</groupId>
54             <artifactId>commons-cli</artifactId>
55         </dependency>
56         <dependency>
57             <groupId>com.google.code.gson</groupId>
58             <artifactId>gson</artifactId>
59         </dependency>
60         <dependency>
61             <groupId>org.onap.policy.common</groupId>
62             <artifactId>common-parameters</artifactId>
63             <version>${policy.common.version}</version>
64         </dependency>
65         <dependency>
66             <groupId>org.onap.policy.xacml-pdp.applications</groupId>
67             <artifactId>common</artifactId>
68             <version>${project.version}</version>
69         </dependency>
70         <dependency>
71             <groupId>org.onap.policy.common</groupId>
72             <artifactId>utils-test</artifactId>
73             <version>${policy.common.version}</version>
74             <scope>test</scope>
75         </dependency>
76         <dependency>
77             <groupId>org.onap.policy.xacml-pdp.applications</groupId>
78             <artifactId>xacml-monitoring</artifactId>
79             <version>${project.version}</version>
80         </dependency>
81         <dependency>
82             <groupId>org.onap.policy.xacml-pdp.applications</groupId>
83             <artifactId>xacml-guard</artifactId>
84             <version>${project.version}</version>
85         </dependency>
86         <dependency>
87             <groupId>org.onap.policy.xacml-pdp.applications</groupId>
88             <artifactId>xacml-optimization</artifactId>
89             <version>${project.version}</version>
90         </dependency>
91         <dependency>
92             <groupId>org.onap.policy.xacml-pdp.applications</groupId>
93             <artifactId>xacml-naming</artifactId>
94             <version>${project.version}</version>
95         </dependency>
96         <dependency>
97             <groupId>org.onap.policy.xacml-pdp.applications</groupId>
98             <artifactId>xacml-native</artifactId>
99             <version>${project.version}</version>
100         </dependency>
101         <dependency>
102             <groupId>org.onap.policy.xacml-pdp.applications</groupId>
103             <artifactId>xacml-match</artifactId>
104             <version>${project.version}</version>
105         </dependency>
106         <dependency>
107             <groupId>org.onap.policy.models</groupId>
108             <artifactId>policy-models-pdp</artifactId>
109             <version>${policy.models.version}</version>
110         </dependency>
111         <dependency>
112             <groupId>io.prometheus</groupId>
113             <artifactId>simpleclient_logback</artifactId>
114         </dependency>
115         <dependency>
116             <groupId>org.onap.policy.xacml-pdp</groupId>
117             <artifactId>xacml-test</artifactId>
118             <version>${project.version}</version>
119             <scope>test</scope>
120         </dependency>
121         <dependency>
122             <groupId>org.mockito</groupId>
123             <artifactId>mockito-core</artifactId>
124             <scope>test</scope>
125         </dependency>
126         <dependency>
127             <groupId>org.springframework</groupId>
128             <artifactId>spring-test</artifactId>
129             <scope>test</scope>
130         </dependency>
131         <dependency>
132             <groupId>org.assertj</groupId>
133             <artifactId>assertj-core</artifactId>
134             <scope>test</scope>
135         </dependency>
136         <!-- Swagger v3 annotations -->
137         <dependency>
138             <groupId>io.swagger.core.v3</groupId>
139         <artifactId>swagger-annotations</artifactId>
140         <version>2.2.7</version>
141         </dependency>
142     </dependencies>
143
144     <build>
145         <resources>
146             <!-- Output the version of the pdpx service -->
147             <resource>
148                 <directory>src/main/resources</directory>
149                 <filtering>true</filtering>
150                 <includes>
151                     <include>**/version.txt</include>
152                 </includes>
153             </resource>
154             <resource>
155                 <directory>src/main/resources</directory>
156                 <filtering>false</filtering>
157                 <excludes>
158                     <exclude>**/version.txt</exclude>
159                 </excludes>
160             </resource>
161         </resources>
162         <plugins>
163             <!-- Controllers interfaces generation -->
164             <plugin>
165                 <groupId>io.swagger.codegen.v3</groupId>
166                 <artifactId>swagger-codegen-maven-plugin</artifactId>
167                 <version>3.0.27</version>
168                 <executions>
169                     <execution>
170                         <id>code-gen</id>
171                         <goals>
172                             <goal>generate</goal>
173                         </goals>
174                         <configuration>
175                             <inputSpec>${project.basedir}/src/main/resources/openapi/openapi.yaml</inputSpec>
176                             <invokerPackage>org.onap.policy.pdpx.main.rest</invokerPackage>
177                             <modelPackage>org.onap.policy.pdpx.main.rest.model</modelPackage>
178                             <apiPackage>org.onap.policy.pdpx.main.rest</apiPackage>
179                             <language>jaxrs-spec</language>
180                             <generateModels>false</generateModels>
181                             <generateSupportingFiles>false</generateSupportingFiles>
182                             <sortParamsByRequiredFlag>false</sortParamsByRequiredFlag>
183                             <importMappings>
184                                 HealthCheckReport=org.onap.policy.common.endpoints.report.HealthCheckReport,
185                                 DecisionException=org.onap.policy.models.decisions.concepts.DecisionException,
186                                 DecisionRequest=org.onap.policy.models.decisions.concepts.DecisionRequest,
187                                 DecisionResponse=org.onap.policy.models.decisions.concepts.DecisionResponse,
188                                 ErrorResponse=org.onap.policy.models.errors.concepts.ErrorResponse,
189                                 StatisticsReport=org.onap.policy.pdpx.main.rest.model.StatisticsReport,
190                                 DecisionProvider=org.onap.policy.pdpx.main.rest.provider.DecisionProvider,
191                                 HealthCheckProvider=org.onap.policy.pdpx.main.rest.provider.HealthCheckProvider,
192                                 StatisticsProvider=org.onap.policy.pdpx.main.rest.provider.StatisticsProvider,
193                                 Request=com.att.research.xacml.api.Request,
194                                 Response=javax.ws.rs.core.Response
195                             </importMappings>
196                             <configOptions>
197                                 <sourceFolder>src/gen/java</sourceFolder>
198                                 <dateLibrary>java11</dateLibrary>
199                                 <interfaceOnly>true</interfaceOnly>
200                                 <useTags>true</useTags>
201                             </configOptions>
202                         </configuration>
203                     </execution>
204                 </executions>
205             </plugin>
206         </plugins>
207     </build>
208
209 </project>