Removing Drools-pdp swagger annotations
[policy/drools-pdp.git] / policy-management / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3   ============LICENSE_START=======================================================
4   ONAP Policy Engine - Drools PDP
5   ================================================================================
6   Copyright (C) 2017-2022 AT&T Intellectual Property. All rights reserved.
7   Modifications Copyright (C) 2020,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" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
24     <modelVersion>4.0.0</modelVersion>
25
26     <parent>
27         <groupId>org.onap.policy.drools-pdp</groupId>
28         <artifactId>drools-pdp</artifactId>
29         <version>1.12.1-SNAPSHOT</version>
30     </parent>
31
32     <artifactId>policy-management</artifactId>
33
34     <name>policy-management</name>
35     <description>Policy Management</description>
36
37     <build>
38         <plugins>
39             <plugin>
40                 <artifactId>maven-assembly-plugin</artifactId>
41                 <executions>
42                     <execution>
43                         <id>zipfile</id>
44                         <goals>
45                             <goal>single</goal>
46                         </goals>
47                         <phase>package</phase>
48                         <configuration>
49                             <attach>true</attach>
50                             <finalName>${project.artifactId}-${project.version}</finalName>
51                             <descriptors>
52                                 <descriptor>src/assembly/assemble_zip.xml</descriptor>
53                             </descriptors>
54                             <appendAssemblyId>false</appendAssemblyId>
55                         </configuration>
56                     </execution>
57                 </executions>
58             </plugin>
59             <plugin>
60                 <groupId>org.apache.maven.plugins</groupId>
61                 <artifactId>maven-dependency-plugin</artifactId>
62                 <executions>
63                     <execution>
64                         <id>copy-dependencies</id>
65                         <goals>
66                             <goal>copy-dependencies</goal>
67                         </goals>
68                         <phase>prepare-package</phase>
69                         <configuration>
70                             <outputDirectory>${project.build.directory}/assembly/lib</outputDirectory>
71                             <overWriteReleases>false</overWriteReleases>
72                             <overWriteSnapshots>true</overWriteSnapshots>
73                             <overWriteIfNewer>true</overWriteIfNewer>
74                             <useRepositoryLayout>false</useRepositoryLayout>
75                             <addParentPoms>false</addParentPoms>
76                             <copyPom>false</copyPom>
77                             <excludeGroupIds>javax.inject</excludeGroupIds>
78                             <includeScope>runtime</includeScope>
79                         </configuration>
80                     </execution>
81                 </executions>
82             </plugin>
83             <plugin>
84                 <artifactId>maven-resources-plugin</artifactId>
85                 <executions>
86                     <execution>
87                         <id>copy-version</id>
88                         <goals>
89                             <goal>copy-resources</goal>
90                         </goals>
91                         <phase>validate</phase>
92                         <configuration>
93                             <outputDirectory>${basedir}/target/versions</outputDirectory>
94                             <resources>
95                                 <resource>
96                                     <directory>src/main/resources/versions</directory>
97                                     <includes>
98                                         <include>version.properties</include>
99                                     </includes>
100                                     <filtering>true</filtering>
101                                 </resource>
102                             </resources>
103                         </configuration>
104                     </execution>
105                     <execution>
106                         <id>copy-resources</id>
107                         <goals>
108                             <goal>copy-resources</goal>
109                         </goals>
110                         <phase>validate</phase>
111                         <configuration>
112                             <outputDirectory>${basedir}/target/etc/bvc-extensions</outputDirectory>
113                             <resources>
114                                 <resource>
115                                     <directory>src/main/resources/etc/bvc-extensions</directory>
116                                     <includes>
117                                         <include>feature_config_template.cfg</include>
118                                         <include>feature_custom.install</include>
119                                     </includes>
120                                     <filtering>true</filtering>
121                                 </resource>
122                             </resources>
123                         </configuration>
124                     </execution>
125                     <execution>
126                         <id>copy-swagger</id>
127                         <goals>
128                             <goal>copy-resources</goal>
129                         </goals>
130                         <phase>compile</phase>
131                         <configuration>
132                             <outputDirectory>src/main/resources/swagger</outputDirectory>
133                             <resources>
134                                 <resource>
135                                     <directory>${basedir}/target/generated-sources/swagger</directory>
136                                     <includes>
137                                         <include>swagger.json</include>
138                                     </includes>
139                                     <filtering>true</filtering>
140                                 </resource>
141                             </resources>
142                         </configuration>
143                     </execution>
144                 </executions>
145             </plugin>
146             <!-- Controllers interfaces generation -->
147             <plugin>
148                 <groupId>io.swagger.codegen.v3</groupId>
149                 <artifactId>swagger-codegen-maven-plugin</artifactId>
150                 <version>3.0.27</version>
151                 <executions>
152                     <execution>
153                         <id>code-gen</id>
154                         <goals>
155                             <goal>generate</goal>
156                         </goals>
157                         <configuration>
158                             <inputSpec>${project.basedir}/src/main/resources/openapi/openapi.yaml</inputSpec>
159                             <invokerPackage>org.onap.policy.drools.server.restful</invokerPackage>
160                             <modelPackage>org.onap.policy.drools.server.restful.model</modelPackage>
161                             <apiPackage>org.onap.policy.drools.server.restful</apiPackage>
162                             <language>jaxrs-spec</language>
163                             <generateModels>false</generateModels>
164                             <generateSupportingFiles>false</generateSupportingFiles>
165                             <sortParamsByRequiredFlag>false</sortParamsByRequiredFlag>
166                             <importMappings>
167                                 CoderFilters=org.onap.policy.drools.protocol.coders.EventProtocolCoder.CoderFilters,
168                                 CodingResult=org.onap.policy.drools.server.restful.RestManager.CodingResult,
169                                 ControllerConfiguration=org.onap.policy.drools.protocol.configuration.ControllerConfiguration,
170                                 DroolsController=org.onap.policy.drools.controller.DroolsController,
171                                 JsonProtocolFilter=org.onap.policy.drools.protocol.coders.JsonProtocolFilter,
172                                 PdpStatistics=org.onap.policy.models.pdp.concepts.PdpStatistics,
173                                 PdpdConfiguration=org.onap.policy.drools.protocol.configuration.PdpdConfiguration,
174                                 PolicyController=org.onap.policy.drools.system.PolicyController,
175                                 PolicyControllerFeatureApi=org.onap.policy.drools.features.PolicyControllerFeatureApi,
176                                 PolicyEngine=org.onap.policy.drools.system.PolicyEngine,
177                                 PolicyEngineFeatureApi=org.onap.policy.drools.features.PolicyEngineFeatureApi,
178                                 PolicyTypeController=org.onap.policy.drools.lifecycle.PolicyTypeController,
179                                 Properties=java.util.Properties,
180                                 ProtocolCoderToolset=org.onap.policy.drools.protocol.coders.ProtocolCoderToolset,
181                                 Response=javax.ws.rs.core.Response,
182                                 TopicEndpoint=org.onap.policy.common.endpoints.event.comm.TopicEndpoint,
183                                 TopicSink=org.onap.policy.common.endpoints.event.comm.TopicSink,
184                                 TopicSource=org.onap.policy.common.endpoints.event.comm.TopicSource,
185                                 ToscaPolicy=org.onap.policy.models.tosca.authorative.concepts.ToscaPolicy
186                             </importMappings>
187                             <typeMappings>
188                                 <typeMapping>boolean=boolean</typeMapping>
189                             </typeMappings>
190                             <configOptions>
191                                 <sourceFolder>src/gen/java</sourceFolder>
192                                 <dateLibrary>java11</dateLibrary>
193                                 <interfaceOnly>true</interfaceOnly>
194                                 <useTags>true</useTags>
195                                 <skipIfSpecIsUnchanged>false</skipIfSpecIsUnchanged>
196                             </configOptions>
197                         </configuration>
198                     </execution>
199                 </executions>
200             </plugin>
201         </plugins>
202     </build>
203
204     <dependencies>
205
206         <dependency>
207             <groupId>org.onap.policy.drools-pdp</groupId>
208             <artifactId>policy-core</artifactId>
209             <version>${project.version}</version>
210         </dependency>
211
212         <dependency>
213             <groupId>org.onap.policy.drools-pdp</groupId>
214             <artifactId>policy-domains</artifactId>
215             <version>${project.version}</version>
216         </dependency>
217
218         <dependency>
219             <groupId>org.onap.policy.common</groupId>
220             <artifactId>policy-endpoints</artifactId>
221             <version>${policy.common.version}</version>
222         </dependency>
223
224         <dependency>
225             <groupId>org.onap.policy.common</groupId>
226             <artifactId>utils</artifactId>
227             <version>${policy.common.version}</version>
228         </dependency>
229
230         <dependency>
231             <groupId>org.onap.policy.models</groupId>
232             <artifactId>policy-models-pdp</artifactId>
233             <version>${policy.models.version}</version>
234         </dependency>
235
236         <dependency>
237             <groupId>org.eclipse.jetty</groupId>
238             <artifactId>jetty-server</artifactId>
239         </dependency>
240
241         <dependency>
242             <groupId>org.eclipse.jetty</groupId>
243             <artifactId>jetty-servlet</artifactId>
244         </dependency>
245
246         <dependency>
247             <groupId>org.onap.policy.common</groupId>
248             <artifactId>gson</artifactId>
249             <version>${policy.common.version}</version>
250         </dependency>
251
252         <dependency>
253             <groupId>com.google.code.gson</groupId>
254             <artifactId>gson</artifactId>
255         </dependency>
256
257         <dependency>
258             <groupId>com.fatboyindustrial.gson-javatime-serialisers</groupId>
259             <artifactId>gson-javatime-serialisers</artifactId>
260             <version>1.1.1</version>
261         </dependency>
262
263         <dependency>
264             <groupId>com.jayway.jsonpath</groupId>
265             <artifactId>json-path</artifactId>
266         </dependency>
267
268         <dependency>
269             <groupId>org.apache.commons</groupId>
270             <artifactId>commons-collections4</artifactId>
271             <version>4.4</version>
272         </dependency>
273
274         <!-- if we don't explicitly specify the version here, we seem to end up
275         with version 1.4 (as a dependency to drools-core). This version is
276         not compatible with 'saClientLibrary' version 1.2.1-oss
277         -->
278         <dependency>
279             <groupId>commons-codec</groupId>
280             <artifactId>commons-codec</artifactId>
281         </dependency>
282
283         <dependency>
284             <groupId>ch.qos.logback</groupId>
285             <artifactId>logback-classic</artifactId>
286         </dependency>
287
288         <dependency>
289             <groupId>junit</groupId>
290             <artifactId>junit</artifactId>
291             <scope>test</scope>
292         </dependency>
293
294         <dependency>
295             <groupId>org.mockito</groupId>
296             <artifactId>mockito-core</artifactId>
297             <scope>test</scope>
298         </dependency>
299
300         <dependency>
301             <groupId>org.springframework</groupId>
302             <artifactId>spring-test</artifactId>
303             <scope>test</scope>
304         </dependency>
305
306         <dependency>
307             <groupId>org.onap.policy.common</groupId>
308             <artifactId>utils-test</artifactId>
309             <version>${policy.common.version}</version>
310             <scope>test</scope>
311         </dependency>
312
313         <!--
314         The following dependencies are for features and drools
315         applications usage
316         -->
317
318         <dependency>
319             <groupId>org.mariadb.jdbc</groupId>
320             <artifactId>mariadb-java-client</artifactId>
321         </dependency>
322
323         <dependency>
324             <groupId>org.hibernate</groupId>
325             <artifactId>hibernate-core</artifactId>
326             <!--
327             Exclude this because it's incompatible with eclipselink, which already
328             includes the same classes.
329              -->
330             <exclusions>
331                 <exclusion>
332                     <groupId>javax.persistence</groupId>
333                     <artifactId>javax.persistence-api</artifactId>
334                 </exclusion>
335             </exclusions>
336         </dependency>
337
338         <dependency>
339             <groupId>org.hibernate.common</groupId>
340             <artifactId>hibernate-commons-annotations</artifactId>
341         </dependency>
342
343         <dependency>
344             <groupId>commons-io</groupId>
345             <artifactId>commons-io</artifactId>
346         </dependency>
347
348         <dependency>
349             <groupId>io.prometheus</groupId>
350             <artifactId>simpleclient_logback</artifactId>
351         </dependency>
352
353         <dependency>
354             <groupId>org.assertj</groupId>
355             <artifactId>assertj-core</artifactId>
356             <scope>test</scope>
357         </dependency>
358
359         <dependency>
360             <groupId>org.awaitility</groupId>
361             <artifactId>awaitility</artifactId>
362             <scope>test</scope>
363         </dependency>
364         
365         <!-- Swagger v3 annotations -->
366         <dependency>
367             <groupId>io.swagger.core.v3</groupId>
368         <artifactId>swagger-annotations</artifactId>
369         <version>${version.swagger.core.v3}</version>
370         </dependency>
371
372     </dependencies>
373 </project>