f17daa89b4d7a59b7f0b78e9739740e453969085
[policy/drools-applications.git] / controlloop / common / feature-controlloop-trans / pom.xml
1 <!--
2   ============LICENSE_START=======================================================
3   ONAP
4   ================================================================================
5   Copyright (C) 2018-2021 AT&T Intellectual Property. All rights reserved.
6   Modifications Copyright (C) 2019,2023 Nordix Foundation.
7   Modifications Copyright (C) 2020 Bell Canada.
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
27     <parent>
28         <groupId>org.onap.policy.drools-applications.controlloop.common</groupId>
29         <artifactId>drools-applications-common</artifactId>
30         <version>2.1.2-SNAPSHOT</version>
31     </parent>
32
33     <artifactId>feature-controlloop-trans</artifactId>
34
35     <description>
36         Loadable PDP-D feature module to track control loop transactions
37     </description>
38
39     <build>
40         <plugins>
41             <plugin>
42                 <artifactId>maven-assembly-plugin</artifactId>
43                 <executions>
44                     <execution>
45                         <id>zipfile</id>
46                         <goals>
47                             <goal>single</goal>
48                         </goals>
49                         <phase>package</phase>
50                         <configuration>
51                             <attach>true</attach>
52                             <finalName>${project.artifactId}-${project.version}</finalName>
53                             <descriptors>
54                                 <descriptor>src/assembly/assemble_zip.xml</descriptor>
55                             </descriptors>
56                             <appendAssemblyId>false</appendAssemblyId>
57                         </configuration>
58                     </execution>
59                 </executions>
60             </plugin>
61             <plugin>
62                 <groupId>org.apache.maven.plugins</groupId>
63                 <artifactId>maven-dependency-plugin</artifactId>
64                 <executions>
65                     <execution>
66                         <id>copy-dependencies</id>
67                         <goals>
68                             <goal>copy-dependencies</goal>
69                         </goals>
70                         <phase>prepare-package</phase>
71                         <configuration>
72                             <outputDirectory>${project.build.directory}/assembly/lib</outputDirectory>
73                             <overWriteReleases>false</overWriteReleases>
74                             <overWriteSnapshots>true</overWriteSnapshots>
75                             <overWriteIfNewer>true</overWriteIfNewer>
76                             <useRepositoryLayout>false</useRepositoryLayout>
77                             <addParentPoms>false</addParentPoms>
78                             <copyPom>false</copyPom>
79                             <includeScope>runtime</includeScope>
80                         </configuration>
81                     </execution>
82                 </executions>
83             </plugin>
84             <!-- Controllers interfaces generation -->
85             <plugin>
86                 <groupId>io.swagger.codegen.v3</groupId>
87                 <artifactId>swagger-codegen-maven-plugin</artifactId>
88                 <executions>
89                     <execution>
90                         <id>code-gen</id>
91                         <goals>
92                             <goal>generate</goal>
93                         </goals>
94                         <configuration>
95                             <inputSpec>${project.basedir}/src/main/resources/openapi/openapi.yaml</inputSpec>
96                             <invokerPackage>org.onap.policy.drools.server.restful</invokerPackage>
97                             <modelPackage>org.onap.policy.drools.server.restful.model</modelPackage>
98                             <apiPackage>org.onap.policy.drools.server.restful</apiPackage>
99                             <language>jaxrs-spec</language>
100                             <generateModels>false</generateModels>
101                             <generateSupportingFiles>false</generateSupportingFiles>
102                             <importMappings>
103                                 Response=jakarta.ws.rs.core.Response
104                             </importMappings>
105                             <typeMappings>
106                                 <typeMapping>Integer=int</typeMapping>
107                                 <typeMapping>Long=long</typeMapping>
108                             </typeMappings>
109                             <configOptions>
110                                 <useTags>true</useTags>
111                                 <sourceFolder>src/gen/java</sourceFolder>
112                                 <dateLibrary>java17</dateLibrary>
113                                 <interfaceOnly>true</interfaceOnly>
114                                 <jakarta>true</jakarta>
115                             </configOptions>
116                         </configuration>
117                     </execution>
118                 </executions>
119             </plugin>
120         </plugins>
121     </build>
122     <dependencies>
123         <dependency>
124             <groupId>org.onap.policy.models.policy-models-interactions.model-impl</groupId>
125             <artifactId>events</artifactId>
126             <version>${policy.models.version}</version>
127             <scope>provided</scope>
128         </dependency>
129         <dependency>
130             <groupId>org.onap.policy.common</groupId>
131             <artifactId>policy-endpoints</artifactId>
132             <version>${version.policy.common}</version>
133             <scope>provided</scope>
134         </dependency>
135         <dependency>
136             <groupId>org.onap.policy.drools-pdp</groupId>
137             <artifactId>policy-management</artifactId>
138             <version>${version.policy.drools-pdp}</version>
139             <scope>provided</scope>
140         </dependency>
141         <dependency>
142             <groupId>org.onap.policy.drools-pdp</groupId>
143             <artifactId>policy-utils</artifactId>
144             <version>${version.policy.drools-pdp}</version>
145             <scope>provided</scope>
146         </dependency>
147         <dependency>
148             <groupId>com.google.guava</groupId>
149             <artifactId>guava</artifactId>
150             <scope>provided</scope>
151         </dependency>
152     </dependencies>
153 </project>