Release policy/xacml-pdp
[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.2</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                 <executions>
168                     <execution>
169                         <id>code-gen</id>
170                         <goals>
171                             <goal>generate</goal>
172                         </goals>
173                         <configuration>
174                             <inputSpec>${project.basedir}/src/main/resources/openapi/openapi.yaml</inputSpec>
175                             <invokerPackage>org.onap.policy.pdpx.main.rest</invokerPackage>
176                             <modelPackage>org.onap.policy.pdpx.main.rest.model</modelPackage>
177                             <apiPackage>org.onap.policy.pdpx.main.rest</apiPackage>
178                             <language>jaxrs-spec</language>
179                             <generateModels>false</generateModels>
180                             <generateSupportingFiles>false</generateSupportingFiles>
181                             <sortParamsByRequiredFlag>false</sortParamsByRequiredFlag>
182                             <importMappings>
183                                 HealthCheckReport=org.onap.policy.common.endpoints.report.HealthCheckReport,
184                                 DecisionException=org.onap.policy.models.decisions.concepts.DecisionException,
185                                 DecisionRequest=org.onap.policy.models.decisions.concepts.DecisionRequest,
186                                 DecisionResponse=org.onap.policy.models.decisions.concepts.DecisionResponse,
187                                 ErrorResponse=org.onap.policy.models.errors.concepts.ErrorResponse,
188                                 StatisticsReport=org.onap.policy.pdpx.main.rest.model.StatisticsReport,
189                                 DecisionProvider=org.onap.policy.pdpx.main.rest.provider.DecisionProvider,
190                                 HealthCheckProvider=org.onap.policy.pdpx.main.rest.provider.HealthCheckProvider,
191                                 StatisticsProvider=org.onap.policy.pdpx.main.rest.provider.StatisticsProvider,
192                                 Request=com.att.research.xacml.api.Request,
193                                 Response=javax.ws.rs.core.Response
194                             </importMappings>
195                             <configOptions>
196                                 <sourceFolder>src/gen/java</sourceFolder>
197                                 <dateLibrary>java11</dateLibrary>
198                                 <interfaceOnly>true</interfaceOnly>
199                                 <useTags>true</useTags>
200                             </configOptions>
201                         </configuration>
202                     </execution>
203                 </executions>
204             </plugin>
205         </plugins>
206     </build>
207
208 </project>