Set parent to policy/parent
[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-2018 AT&T Intellectual Property. All rights reserved.
7   ================================================================================
8   Licensed under the Apache License, Version 2.0 (the "License");
9   you may not use this file except in compliance with the License.
10   You may obtain a copy of the License at
11   
12        http://www.apache.org/licenses/LICENSE-2.0
13   
14   Unless required by applicable law or agreed to in writing, software
15   distributed under the License is distributed on an "AS IS" BASIS,
16   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17   See the License for the specific language governing permissions and
18   limitations under the License.
19   ============LICENSE_END=========================================================
20   -->
21
22 <project xmlns="http://maven.apache.org/POM/4.0.0"
23     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
24     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
25     <modelVersion>4.0.0</modelVersion>
26
27     <parent>
28         <groupId>org.onap.policy.drools-pdp</groupId>
29         <artifactId>drools-pdp</artifactId>
30         <version>1.3.0-SNAPSHOT</version>
31     </parent>
32
33     <artifactId>policy-management</artifactId>
34
35     <name>policy-management</name>
36     <description>Policy Management</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                             <transitive>false</transitive>
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                             <excludeGroupIds>javax.inject</excludeGroupIds>
80                             <includeScope>runtime</includeScope>
81                         </configuration>
82                     </execution>
83                 </executions>
84             </plugin>
85             <plugin>
86                 <artifactId>maven-resources-plugin</artifactId>
87                 <executions>
88                     <execution>
89                         <id>copy-version</id>
90                         <goals>
91                             <goal>copy-resources</goal>
92                         </goals>
93                         <phase>validate</phase>
94                         <configuration>
95                             <outputDirectory>${basedir}/target/versions</outputDirectory>
96                             <resources>
97                                 <resource>
98                                     <directory>src/main/resources/versions</directory>
99                                     <includes>
100                                         <include>version.properties</include>
101                                     </includes>
102                                     <filtering>true</filtering>
103                                 </resource>
104                             </resources>
105                         </configuration>
106                     </execution>
107                     <execution>
108                         <id>copy-resources</id>
109                         <goals>
110                             <goal>copy-resources</goal>
111                         </goals>
112                         <phase>validate</phase>
113                         <configuration>
114                             <outputDirectory>${basedir}/target/etc/bvc-extensions</outputDirectory>
115                             <resources>
116                                 <resource>
117                                     <directory>src/main/resources/etc/bvc-extensions</directory>
118                                     <includes>
119                                         <include>feature_config_template.cfg</include>
120                                         <include>feature_custom.install</include>
121                                     </includes>
122                                     <filtering>true</filtering>
123                                 </resource>
124                             </resources>
125                         </configuration>
126                     </execution>
127                 </executions>
128             </plugin>
129         </plugins>
130     </build>
131
132     <dependencies>
133
134         <dependency>
135             <groupId>org.onap.policy.drools-pdp</groupId>
136             <artifactId>policy-core</artifactId>
137             <version>${project.version}</version>
138         </dependency>
139
140         <dependency>
141             <groupId>org.onap.policy.common</groupId>
142             <artifactId>policy-endpoints</artifactId>
143             <version>${project.version}</version>
144         </dependency>
145
146         <dependency>
147             <groupId>org.eclipse.jetty</groupId>
148             <artifactId>jetty-server</artifactId>
149             <version>${jetty.version}</version>
150         </dependency>
151
152         <dependency>
153             <groupId>org.eclipse.jetty</groupId>
154             <artifactId>jetty-servlet</artifactId>
155             <version>${jetty.version}</version>
156         </dependency>
157
158         <dependency>
159             <groupId>org.glassfish.jersey.core</groupId>
160             <artifactId>jersey-server</artifactId>
161             <version>${jersey.version}</version>
162         </dependency>
163
164         <dependency>
165             <groupId>org.glassfish.jersey.containers</groupId>
166             <artifactId>jersey-container-servlet-core</artifactId>
167         </dependency>
168
169         <dependency>
170             <groupId>org.glassfish.jersey.media</groupId>
171             <artifactId>jersey-media-json-jackson</artifactId>
172             <version>${jersey.version}</version>
173         </dependency>
174
175         <dependency>
176             <groupId>org.glassfish.jersey.containers</groupId>
177             <artifactId>jersey-container-jetty-http</artifactId>
178             <version>${jersey.version}</version>
179             <exclusions>
180                 <exclusion>
181                     <groupId>org.eclipse.jetty</groupId>
182                     <artifactId>jetty-util</artifactId>
183                 </exclusion>
184             </exclusions>
185         </dependency>
186
187         <dependency>
188             <groupId>io.swagger</groupId>
189             <artifactId>swagger-jersey2-jaxrs</artifactId>
190         </dependency>
191
192         <dependency>
193             <groupId>com.fasterxml.jackson.core</groupId>
194             <artifactId>jackson-databind</artifactId>
195             <version>${jackson.version}</version>
196         </dependency>
197
198         <dependency>
199             <groupId>com.fasterxml.jackson.datatype</groupId>
200             <artifactId>jackson-datatype-jsr310</artifactId>
201             <version>${jackson.version}</version>
202         </dependency>
203
204         <dependency>
205             <groupId>com.fasterxml.jackson.core</groupId>
206             <artifactId>jackson-annotations</artifactId>
207             <version>${jackson.version}</version>
208         </dependency>
209
210         <dependency>
211             <groupId>com.google.code.gson</groupId>
212             <artifactId>gson</artifactId>
213         </dependency>
214
215         <dependency>
216             <groupId>com.fatboyindustrial.gson-javatime-serialisers</groupId>
217             <artifactId>gson-javatime-serialisers</artifactId>
218             <version>1.1.1</version>
219         </dependency>
220
221         <dependency>
222             <groupId>org.apache.commons</groupId>
223             <artifactId>commons-collections4</artifactId>
224             <version>4.1</version>
225         </dependency>
226         
227         <!-- if we don't explicitly specify the version here, we seem to end up
228         with version 1.4 (as a dependency to drools-core). This version is
229         not compatible with 'saClientLibrary' version 1.2.1-oss 
230         -->
231         <dependency>
232             <groupId>commons-codec</groupId>
233             <artifactId>commons-codec</artifactId>
234         </dependency>
235
236         <dependency>
237             <groupId>ch.qos.logback</groupId>
238             <artifactId>logback-classic</artifactId>
239         </dependency>
240
241         <dependency>
242             <groupId>junit</groupId>
243             <artifactId>junit</artifactId>
244             <scope>test</scope>
245         </dependency>
246         
247         <!--
248         The following dependencies are for features and drools
249         applications usage
250         -->
251
252         <dependency>
253             <groupId>org.eclipse.persistence</groupId>
254             <artifactId>eclipselink</artifactId>
255         </dependency>
256
257         <dependency>
258             <groupId>org.eclipse.persistence</groupId>
259             <artifactId>org.eclipse.persistence.jpa</artifactId>
260         </dependency>
261
262         <dependency>
263             <groupId>org.mariadb.jdbc</groupId>
264             <artifactId>mariadb-java-client</artifactId>
265         </dependency>
266
267         <dependency>
268             <groupId>org.hibernate</groupId>
269             <artifactId>hibernate-core</artifactId>
270         </dependency>
271
272         <dependency>
273             <groupId>org.hibernate.common</groupId>
274             <artifactId>hibernate-commons-annotations</artifactId>
275         </dependency>
276
277         <dependency>
278             <groupId>commons-io</groupId>
279             <artifactId>commons-io</artifactId>
280         </dependency>
281
282     </dependencies>
283
284 </project>