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>3.1.0</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>org.onap.policy.xacml-pdp</groupId>
118             <artifactId>xacml-test</artifactId>
119             <version>${project.version}</version>
120             <scope>test</scope>
121         </dependency>
122         <dependency>
123             <groupId>org.mockito</groupId>
124             <artifactId>mockito-core</artifactId>
125             <scope>test</scope>
126         </dependency>
127         <dependency>
128             <groupId>org.springframework</groupId>
129             <artifactId>spring-test</artifactId>
130             <scope>test</scope>
131         </dependency>
132         <!-- Swagger v3 annotations -->
133         <dependency>
134             <groupId>io.swagger.core.v3</groupId>
135             <artifactId>swagger-annotations</artifactId>
136         </dependency>
137     </dependencies>
138
139     <build>
140         <resources>
141             <!-- Output the version of the pdpx service -->
142             <resource>
143                 <directory>src/main/resources</directory>
144                 <filtering>true</filtering>
145                 <includes>
146                     <include>**/version.txt</include>
147                 </includes>
148             </resource>
149             <resource>
150                 <directory>src/main/resources</directory>
151                 <filtering>false</filtering>
152                 <excludes>
153                     <exclude>**/version.txt</exclude>
154                 </excludes>
155             </resource>
156         </resources>
157         <plugins>
158             <!-- Controllers interfaces generation -->
159             <plugin>
160                 <groupId>io.swagger.codegen.v3</groupId>
161                 <artifactId>swagger-codegen-maven-plugin</artifactId>
162                 <executions>
163                     <execution>
164                         <id>code-gen</id>
165                         <goals>
166                             <goal>generate</goal>
167                         </goals>
168                         <configuration>
169                             <inputSpec>${project.basedir}/src/main/resources/openapi/openapi.yaml</inputSpec>
170                             <invokerPackage>org.onap.policy.pdpx.main.rest</invokerPackage>
171                             <modelPackage>org.onap.policy.pdpx.main.rest.model</modelPackage>
172                             <apiPackage>org.onap.policy.pdpx.main.rest</apiPackage>
173                             <language>jaxrs-spec</language>
174                             <generateModels>false</generateModels>
175                             <generateSupportingFiles>false</generateSupportingFiles>
176                             <importMappings>
177                                 HealthCheckReport=org.onap.policy.common.endpoints.report.HealthCheckReport,
178                                 DecisionException=org.onap.policy.models.decisions.concepts.DecisionException,
179                                 DecisionRequest=org.onap.policy.models.decisions.concepts.DecisionRequest,
180                                 DecisionResponse=org.onap.policy.models.decisions.concepts.DecisionResponse,
181                                 ErrorResponse=org.onap.policy.models.errors.concepts.ErrorResponse,
182                                 StatisticsReport=org.onap.policy.pdpx.main.rest.model.StatisticsReport,
183                                 DecisionProvider=org.onap.policy.pdpx.main.rest.provider.DecisionProvider,
184                                 HealthCheckProvider=org.onap.policy.pdpx.main.rest.provider.HealthCheckProvider,
185                                 StatisticsProvider=org.onap.policy.pdpx.main.rest.provider.StatisticsProvider,
186                                 Request=com.att.research.xacml.api.Request,
187                                 Response=jakarta.ws.rs.core.Response
188                             </importMappings>
189                             <configOptions>
190                                 <sourceFolder>src/gen/java</sourceFolder>
191                                 <dateLibrary>java17</dateLibrary>
192                                 <interfaceOnly>true</interfaceOnly>
193                                 <useTags>true</useTags>
194                                 <jakarta>true</jakarta>
195                             </configOptions>
196                         </configuration>
197                     </execution>
198                 </executions>
199             </plugin>
200         </plugins>
201     </build>
202
203 </project>