Merge "Make custom preinstallation available in image"
[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" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
23          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.2.1-SNAPSHOT</version>
30   </parent>
31
32   <artifactId>policy-management</artifactId>
33
34   <name>policy-management</name>
35   <description>Policy Management</description>
36
37   <properties>
38           <maven.compiler.source>1.8</maven.compiler.source>
39           <maven.compiler.target>1.8</maven.compiler.target>
40           <jetty.version>9.3.20.v20170531</jetty.version>
41           <gson.version>2.8.0</gson.version>
42   </properties>
43
44
45   <build>
46     <plugins>
47                         <plugin>
48                                 <artifactId>maven-assembly-plugin</artifactId>
49                                 <version>2.6</version>
50                                 <executions>
51                                         <execution>
52                                                 <id>zipfile</id>
53                                                 <goals>
54                                                         <goal>single</goal>
55                                                 </goals>
56                                                 <phase>package</phase>
57                                                 <configuration>
58                                                         <attach>true</attach>
59                                                         <finalName>${project.artifactId}-${project.version}</finalName>
60                                                         <descriptors>
61                                                                 <descriptor>src/assembly/assemble_zip.xml</descriptor>
62                                                         </descriptors>
63                                                         <appendAssemblyId>false</appendAssemblyId>
64                                                 </configuration>
65                                         </execution>
66                                 </executions>
67                         </plugin>
68                         <plugin>
69                                 <groupId>org.apache.maven.plugins</groupId>
70                                 <artifactId>maven-dependency-plugin</artifactId>
71                                 <version>2.8</version>
72                                 <executions>
73                                         <execution>
74                                                 <id>copy-dependencies</id>
75                                                 <goals>
76                                                         <goal>copy-dependencies</goal>
77                                                 </goals>
78                                                 <phase>prepare-package</phase>
79                                                 <configuration>
80                                                         <transitive>false</transitive>
81                                                         <outputDirectory>${project.build.directory}/assembly/lib</outputDirectory>
82                                                         <overWriteReleases>false</overWriteReleases>
83                                                         <overWriteSnapshots>true</overWriteSnapshots>
84                                                         <overWriteIfNewer>true</overWriteIfNewer>
85                                                         <useRepositoryLayout>false</useRepositoryLayout>
86                                                         <addParentPoms>false</addParentPoms>
87                                                         <copyPom>false</copyPom>
88                                                         <excludeGroupIds>javax.inject</excludeGroupIds>
89                                                         <includeScope>runtime</includeScope>
90                                                 </configuration>
91                                         </execution>
92                                 </executions>
93                         </plugin>
94                         <plugin>
95                                 <artifactId>maven-resources-plugin</artifactId>
96                                 <version>2.6</version>
97                                 <executions>
98                                         <execution>
99                                                 <id>copy-version</id>
100                                                 <goals>
101                                                         <goal>copy-resources</goal>
102                                                 </goals>
103                                                 <phase>validate</phase>
104                                                 <configuration>
105                                                         <outputDirectory>${basedir}/target/versions</outputDirectory>
106                                                         <resources>
107                                                                 <resource>
108                                                                         <directory>src/main/resources/versions</directory>
109                                                                         <includes>
110                                                                                 <include>version.properties</include>
111                                                                         </includes>
112                                                                         <filtering>true</filtering>
113                                                                 </resource>
114                                                         </resources>
115                                                 </configuration>
116                                         </execution>
117                                         <execution>
118                                                 <id>copy-resources</id>
119                                                 <goals>
120                                                         <goal>copy-resources</goal>
121                                                 </goals>
122                                                 <phase>validate</phase>
123                                                 <configuration>
124                                                         <outputDirectory>${basedir}/target/etc/bvc-extensions</outputDirectory>
125                                                         <resources>
126                                                                 <resource>
127                                                                         <directory>src/main/resources/etc/bvc-extensions</directory>
128                                                                         <includes>
129                                                                                 <include>feature_config_template.cfg</include>
130                                                                                 <include>feature_custom.install</include>
131                                                                         </includes>
132                                                                         <filtering>true</filtering>
133                                                                 </resource>
134                                                         </resources>
135                                                 </configuration>
136                                         </execution>
137                                 </executions>
138                         </plugin>
139     </plugins>
140   </build>
141
142   <dependencies>
143     
144     <dependency>
145       <groupId>org.onap.policy.drools-pdp</groupId>
146       <artifactId>policy-core</artifactId>
147       <version>${project.version}</version>
148     </dependency>
149     
150     <dependency>
151       <groupId>org.onap.policy.drools-pdp</groupId>
152       <artifactId>policy-endpoints</artifactId>
153       <version>${project.version}</version>
154     </dependency>
155
156         <dependency>
157                 <groupId>org.eclipse.jetty</groupId>
158                 <artifactId>jetty-server</artifactId>
159                 <version>${jetty.version}</version>
160         </dependency>
161
162         <dependency>
163                 <groupId>org.eclipse.jetty</groupId>
164                 <artifactId>jetty-servlet</artifactId>
165                 <version>${jetty.version}</version>
166         </dependency>
167                         
168         <dependency>
169                 <groupId>org.glassfish.jersey.core</groupId>
170                 <artifactId>jersey-server</artifactId>
171                 <version>${jersey.version}</version>
172         </dependency>
173         
174         <dependency>
175                 <groupId>org.glassfish.jersey.containers</groupId>
176                 <artifactId>jersey-container-servlet-core</artifactId>
177         </dependency>
178         
179         <dependency>
180         <groupId>org.glassfish.jersey.media</groupId>
181         <artifactId>jersey-media-json-jackson</artifactId>
182         <version>${jersey.version}</version>
183     </dependency>
184     
185         <dependency>
186                 <groupId>org.glassfish.jersey.containers</groupId>
187                 <artifactId>jersey-container-jetty-http</artifactId>
188                 <version>${jersey.version}</version>
189                 <exclusions>
190                         <exclusion>
191                                 <groupId>org.eclipse.jetty</groupId>
192                                 <artifactId>jetty-util</artifactId>
193                         </exclusion>
194                 </exclusions>
195         </dependency>
196         
197         <dependency>
198             <groupId>io.swagger</groupId>
199             <artifactId>swagger-jersey2-jaxrs</artifactId>
200         </dependency>
201         
202         <dependency>
203         <groupId>com.fasterxml.jackson.core</groupId>
204         <artifactId>jackson-databind</artifactId>
205         <version>${jackson.version}</version>
206         </dependency>
207         
208         <dependency>
209           <groupId>com.fasterxml.jackson.datatype</groupId>
210           <artifactId>jackson-datatype-jsr310</artifactId>
211           <version>${jackson.version}</version>
212         </dependency> 
213         
214         <dependency>
215             <groupId>com.fasterxml.jackson.core</groupId>
216             <artifactId>jackson-annotations</artifactId>
217             <version>${jackson.version}</version>
218         </dependency>
219         
220         <dependency>
221         <groupId>com.google.code.gson</groupId>
222         <artifactId>gson</artifactId>
223         <version>${gson.version}</version>
224         </dependency>
225         
226         <dependency>
227           <groupId>com.fatboyindustrial.gson-javatime-serialisers</groupId>
228           <artifactId>gson-javatime-serialisers</artifactId>
229           <version>1.1.1</version>
230         </dependency>
231         
232         <dependency>
233                 <groupId>org.apache.commons</groupId>
234                 <artifactId>commons-collections4</artifactId>
235                 <version>4.1</version>
236         </dependency>
237         
238         <!-- if we don't explicitly specify the version here, we seem to end up
239                  with version 1.4 (as a dependency to drools-core). This version is
240                  not compatible with 'saClientLibrary' version 1.2.1-oss -->
241         <dependency>
242                 <groupId>commons-codec</groupId>
243                 <artifactId>commons-codec</artifactId>
244                 <version>1.9</version>
245         </dependency>
246         
247         <dependency>
248                 <groupId>ch.qos.logback</groupId>
249                 <artifactId>logback-classic</artifactId>
250         </dependency>
251
252         <dependency>
253                 <groupId>junit</groupId>
254                 <artifactId>junit</artifactId>
255                 <scope>test</scope>
256         </dependency>
257         
258         <!--
259                 The following dependencies are for features and drools
260                 applications usage
261          -->
262          
263         <dependency>
264                 <groupId>org.eclipse.persistence</groupId>
265                 <artifactId>eclipselink</artifactId>
266         </dependency>
267         
268         <dependency>
269                 <groupId>org.eclipse.persistence</groupId>
270                 <artifactId>org.eclipse.persistence.jpa</artifactId>
271         </dependency>
272         
273         <dependency>
274             <groupId>org.mariadb.jdbc</groupId>
275             <artifactId>mariadb-java-client</artifactId>
276         </dependency>
277
278         <dependency>
279             <groupId>org.hibernate</groupId>
280             <artifactId>hibernate-core</artifactId>
281         </dependency>
282
283         <dependency>
284             <groupId>org.hibernate.common</groupId>
285             <artifactId>hibernate-commons-annotations</artifactId>
286         </dependency>
287         
288         <dependency>
289             <groupId>commons-io</groupId>
290             <artifactId>commons-io</artifactId>
291         </dependency>
292                         
293   </dependencies>
294
295 </project>