b6e0093f377cdee950ec9a41ce624635da3f74ec
[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" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
24     <modelVersion>4.0.0</modelVersion>
25
26     <parent>
27         <groupId>org.onap.policy.drools-applications.controlloop.common</groupId>
28         <artifactId>drools-applications-common</artifactId>
29         <version>1.12.2-SNAPSHOT</version>
30     </parent>
31
32     <artifactId>feature-controlloop-trans</artifactId>
33
34     <description>
35         Loadable PDP-D feature module to track control loop transactions
36     </description>
37
38     <build>
39         <plugins>
40             <plugin>
41                 <artifactId>maven-assembly-plugin</artifactId>
42                 <executions>
43                     <execution>
44                         <id>zipfile</id>
45                         <goals>
46                             <goal>single</goal>
47                         </goals>
48                         <phase>package</phase>
49                         <configuration>
50                             <attach>true</attach>
51                             <finalName>${project.artifactId}-${project.version}</finalName>
52                             <descriptors>
53                                 <descriptor>src/assembly/assemble_zip.xml</descriptor>
54                             </descriptors>
55                             <appendAssemblyId>false</appendAssemblyId>
56                         </configuration>
57                     </execution>
58                 </executions>
59             </plugin>
60             <plugin>
61                 <groupId>org.apache.maven.plugins</groupId>
62                 <artifactId>maven-dependency-plugin</artifactId>
63                 <executions>
64                     <execution>
65                         <id>copy-dependencies</id>
66                         <goals>
67                             <goal>copy-dependencies</goal>
68                         </goals>
69                         <phase>prepare-package</phase>
70                         <configuration>
71                             <outputDirectory>${project.build.directory}/assembly/lib</outputDirectory>
72                             <overWriteReleases>false</overWriteReleases>
73                             <overWriteSnapshots>true</overWriteSnapshots>
74                             <overWriteIfNewer>true</overWriteIfNewer>
75                             <useRepositoryLayout>false</useRepositoryLayout>
76                             <addParentPoms>false</addParentPoms>
77                             <copyPom>false</copyPom>
78                             <includeScope>runtime</includeScope>
79                         </configuration>
80                     </execution>
81                 </executions>
82             </plugin>
83             <!-- Controllers interfaces generation -->
84             <plugin>
85                 <groupId>io.swagger.codegen.v3</groupId>
86                 <artifactId>swagger-codegen-maven-plugin</artifactId>
87                 <executions>
88                     <execution>
89                         <id>code-gen</id>
90                         <goals>
91                             <goal>generate</goal>
92                         </goals>
93                         <configuration>
94                             <inputSpec>${project.basedir}/src/main/resources/openapi/openapi.yaml</inputSpec>
95                             <invokerPackage>org.onap.policy.drools.server.restful</invokerPackage>
96                             <modelPackage>org.onap.policy.drools.server.restful.model</modelPackage>
97                             <apiPackage>org.onap.policy.drools.server.restful</apiPackage>
98                             <language>jaxrs-spec</language>
99                             <generateModels>false</generateModels>
100                             <generateSupportingFiles>false</generateSupportingFiles>
101                             <sortParamsByRequiredFlag>false</sortParamsByRequiredFlag>
102                             <importMappings>
103                                 Response=javax.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>java11</dateLibrary>
113                                 <interfaceOnly>true</interfaceOnly>
114                             </configOptions>
115                         </configuration>
116                     </execution>
117                 </executions>
118             </plugin>
119         </plugins>
120     </build>
121     <dependencies>
122         <dependency>
123             <groupId>org.onap.policy.models.policy-models-interactions.model-impl</groupId>
124             <artifactId>events</artifactId>
125             <version>${policy.models.version}</version>
126             <scope>provided</scope>
127         </dependency>
128         <dependency>
129             <groupId>org.onap.policy.common</groupId>
130             <artifactId>policy-endpoints</artifactId>
131             <version>${version.policy.common}</version>
132             <scope>provided</scope>
133         </dependency>
134         <dependency>
135             <groupId>org.onap.policy.drools-pdp</groupId>
136             <artifactId>policy-management</artifactId>
137             <version>${version.policy.drools-pdp}</version>
138             <scope>provided</scope>
139         </dependency>
140         <dependency>
141             <groupId>org.onap.policy.drools-pdp</groupId>
142             <artifactId>policy-utils</artifactId>
143             <version>${version.policy.drools-pdp}</version>
144             <scope>provided</scope>
145         </dependency>
146         <dependency>
147             <groupId>com.google.guava</groupId>
148             <artifactId>guava</artifactId>
149             <scope>provided</scope>
150         </dependency>
151     </dependencies>
152 </project>