Point to release versions of policy/parent and policy/common
[policy/engine.git] / pom.xml
1 <!--
2   ============LICENSE_START=======================================================
3   ONAP Policy Engine
4   ================================================================================
5   Copyright (C) 2017-2019 AT&T Intellectual Property. All rights reserved.
6   Modifications Copyright (C) 2019 Nordix Foundation.
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 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
22     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
23     <modelVersion>4.0.0</modelVersion>
24     <parent>
25         <groupId>org.onap.policy.parent</groupId>
26         <artifactId>integration</artifactId>
27         <version>3.1.0</version>
28         <relativePath />
29     </parent>
30     <groupId>org.onap.policy.engine</groupId>
31     <artifactId>PolicyEngineSuite</artifactId>
32     <version>1.6.0-SNAPSHOT</version>
33     <packaging>pom</packaging>
34     <name>policy-engine</name>
35     <description>The ONAP Policy Engine main pom</description>
36     <properties>
37         <!-- Project common build settings -->
38         <project.source.version>1.8</project.source.version>
39         <project.target.version>1.8</project.target.version>
40         <project.encoding>UTF-8</project.encoding>
41         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
42         <!-- Project path properties -->
43         <nexusproxy>https://nexus.onap.org</nexusproxy>
44         <sitePath>/content/sites/site/${project.groupId}/${project.artifactId}/${project.version}</sitePath>
45         <releases.path>content/repositories/releases/</releases.path>
46         <snapshots.path>content/repositories/snapshots/</snapshots.path>
47         <staging.path>content/repositories/staging/</staging.path>
48
49         <!-- sonar/jacoco overrides -->
50         <!-- Overriding oparent default sonar/jacoco settings Combine all our reports 
51             into one file shared across sub-modules -->
52         <sonar.jacoco.reportPath>${project.basedir}/../target/code-coverage/jacoco-ut.exec</sonar.jacoco.reportPath>
53         <sonar.jacoco.itReportPath>${project.basedir}/../target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPath>
54         <sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis>
55
56         <!-- Project common dependency versions -->
57         <springframework.version>4.3.24.RELEASE</springframework.version>
58         <jetty.plugin.version>9.2.3.v20140905</jetty.plugin.version>
59         <jackson.version>2.9.4</jackson.version>
60         <commons.fileupload.version>1.3.3</commons.fileupload.version>
61         <commons.compress.version>1.18</commons.compress.version>
62         <elasticsearch.version>6.8.2</elasticsearch.version>
63         <version.policy.common>1.6.1</version.policy.common>
64         <version.policy.models>2.2.0-SNAPSHOT</version.policy.models>
65     </properties>
66     <modules>
67         <module>PolicyEngineUtils</module>
68         <module>ONAP-XACML</module>
69         <module>ONAP-REST</module>
70         <module>PolicyEngineAPI</module>
71         <module>ONAP-PDP</module>
72         <module>ONAP-PDP-REST</module>
73         <module>ONAP-PAP-REST</module>
74         <module>LogParser</module>
75         <module>PolicyEngineClient</module>
76         <module>BRMSGateway</module>
77         <module>POLICY-SDK-APP</module>
78         <module>ONAP-SDK-APP</module>
79         <module>packages</module>
80         <module>TestSuite</module>
81     </modules>
82     <reporting>
83         <plugins>
84             <plugin>
85                 <groupId>org.apache.maven.plugins</groupId>
86                 <artifactId>maven-javadoc-plugin</artifactId>
87                 <version>2.10.4</version>
88                 <configuration>
89                     <failOnError>false</failOnError>
90                     <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
91                     <docletArtifact>
92                         <groupId>org.umlgraph</groupId>
93                         <artifactId>umlgraph</artifactId>
94                         <version>5.6</version>
95                     </docletArtifact>
96                     <additionalparam>-views</additionalparam>
97                     <useStandardDocletOptions>true</useStandardDocletOptions>
98                 </configuration>
99             </plugin>
100         </plugins>
101     </reporting>
102     <dependencies>
103         <dependency>
104             <groupId>org.projectlombok</groupId>
105             <artifactId>lombok</artifactId>
106             <scope>provided</scope>
107         </dependency>
108         <dependency>
109             <groupId>javax.servlet</groupId>
110             <artifactId>javax.servlet-api</artifactId>
111         </dependency>
112         <dependency>
113             <!-- org.w3c.dom dependencies -->
114             <groupId>xml-apis</groupId>
115             <artifactId>xml-apis</artifactId>
116             <version>1.3.03</version>
117         </dependency>
118         <!-- https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-databind -->
119         <dependency>
120             <groupId>com.fasterxml.jackson.core</groupId>
121             <artifactId>jackson-databind</artifactId>
122             <version>${jackson.version}</version>
123         </dependency>
124         <dependency>
125             <groupId>junit</groupId>
126             <artifactId>junit</artifactId>
127             <scope>test</scope>
128         </dependency>
129         <dependency>
130             <groupId>org.assertj</groupId>
131             <artifactId>assertj-core</artifactId>
132             <scope>test</scope>
133         </dependency>
134         <dependency>
135             <groupId>org.springframework</groupId>
136             <artifactId>spring-mock</artifactId>
137             <version>2.0.8</version>
138             <scope>test</scope>
139         </dependency>
140         <dependency>
141             <groupId>com.mockrunner</groupId>
142             <artifactId>mockrunner</artifactId>
143             <version>0.3.1</version>
144             <scope>test</scope>
145         </dependency>
146         <!-- https://mvnrepository.com/artifact/org.powermock/powermock-api-mockito -->
147         <dependency>
148             <groupId>org.powermock</groupId>
149             <artifactId>powermock-api-mockito</artifactId>
150             <scope>test</scope>
151         </dependency>
152         <dependency>
153             <groupId>org.powermock</groupId>
154             <artifactId>powermock-module-junit4</artifactId>
155             <scope>test</scope>
156         </dependency>
157         <!-- https://mvnrepository.com/artifact/org.mockito/mockito-all -->
158         <dependency>
159             <groupId>org.mockito</groupId>
160             <artifactId>mockito-all</artifactId>
161             <scope>test</scope>
162         </dependency>
163         <dependency>
164             <groupId>org.easymock</groupId>
165             <artifactId>easymock</artifactId>
166             <version>3.1</version>
167             <scope>test</scope>
168         </dependency>
169         <dependency>
170             <groupId>org.glassfish.jersey.inject</groupId>
171             <artifactId>jersey-hk2</artifactId>
172             <scope>test</scope>
173         </dependency>
174     </dependencies>
175     <build>
176         <plugins>
177             <plugin>
178                 <groupId>org.jacoco</groupId>
179                 <artifactId>jacoco-maven-plugin</artifactId>
180                 <executions>
181                     <execution>
182                         <id>pre-unit-test</id>
183                         <goals>
184                             <goal>prepare-agent</goal>
185                         </goals>
186                         <configuration>
187                             <destFile>${sonar.jacoco.reportPath}</destFile>
188                             <append>true</append>
189                         </configuration>
190                     </execution>
191                     <execution>
192                         <id>post-unit-test</id>
193                         <phase>test</phase>
194                         <goals>
195                             <goal>report</goal>
196                         </goals>
197                         <configuration>
198                             <dataFile>${sonar.jacoco.reportPath}</dataFile>
199                         </configuration>
200                     </execution>
201                 </executions>
202             </plugin>
203             <plugin>
204                 <groupId>org.apache.maven.plugins</groupId>
205                 <artifactId>maven-deploy-plugin</artifactId>
206                 <configuration>
207                     <skip />
208                 </configuration>
209             </plugin>
210             <plugin>
211                 <groupId>org.apache.maven.plugins</groupId>
212                 <artifactId>maven-surefire-plugin</artifactId>
213             </plugin>
214             <plugin>
215                 <groupId>org.apache.maven.plugins</groupId>
216                 <artifactId>maven-clean-plugin</artifactId>
217                 <version>2.4.1</version>
218             </plugin>
219             <plugin>
220                 <groupId>org.apache.maven.plugins</groupId>
221                 <artifactId>maven-compiler-plugin</artifactId>
222                 <configuration>
223                     <encoding>${project.encoding}</encoding>
224                     <source>${project.source.version}</source>
225                     <target>${project.target.version}</target>
226                 </configuration>
227             </plugin>
228             <plugin>
229                 <groupId>org.apache.maven.plugins</groupId>
230                 <artifactId>maven-resources-plugin</artifactId>
231                 <configuration>
232                     <encoding>${project.encoding}</encoding>
233                 </configuration>
234             </plugin>
235             <plugin>
236                 <groupId>org.apache.maven.plugins</groupId>
237                 <artifactId>maven-war-plugin</artifactId>
238                 <configuration>
239                     <failOnMissingWebXml>false</failOnMissingWebXml>
240                 </configuration>
241             </plugin>
242             <!-- The Jetty plugin allows us to easily test the development build by
243                 running jetty:run on the command line. -->
244             <plugin>
245                 <groupId>org.eclipse.jetty</groupId>
246                 <artifactId>jetty-maven-plugin</artifactId>
247                 <version>${jetty.plugin.version}</version>
248                 <configuration>
249                     <scanIntervalSeconds>2</scanIntervalSeconds>
250                 </configuration>
251             </plugin>
252             <plugin>
253                 <groupId>com.fortify.ps.maven.plugin</groupId>
254                 <artifactId>sca-maven-plugin</artifactId>
255                 <version>4.20</version>
256             </plugin>
257             <plugin>
258                 <groupId>org.apache.maven.plugins</groupId>
259                 <artifactId>maven-site-plugin</artifactId>
260                 <dependencies>
261                     <dependency>
262                         <groupId>org.apache.maven.wagon</groupId>
263                         <artifactId>wagon-webdav-jackrabbit</artifactId>
264                         <version>2.10</version>
265                     </dependency>
266                 </dependencies>
267             </plugin>
268         </plugins>
269         <pluginManagement>
270             <plugins>
271                 <plugin>
272                     <groupId>org.jacoco</groupId>
273                     <artifactId>jacoco-maven-plugin</artifactId>
274                     <version>${jacoco.version}</version>
275                     <configuration>
276                          <!-- Note: This exclusion list should match <sonar.exclusions> property 
277                              above -->
278                         <excludes>
279                             <exclude>**/gen/**</exclude>
280                             <exclude>**/generated-sources/**</exclude>
281                             <exclude>**/yang-gen/**</exclude>
282                             <exclude>**/pax/**</exclude>
283                         </excludes>
284                     </configuration>
285                     <executions>
286                         <!-- Prepares the property pointing to the JaCoCo runtime agent which 
287                              is passed as VM argument when Maven the Surefire plugin is executed. -->
288                         <execution>
289                             <id>pre-unit-test</id>
290                             <goals>
291                                 <goal>prepare-agent</goal>
292                             </goals>
293                             <configuration>
294                                 <destFile>${sonar.jacoco.reportPath}</destFile>
295                             </configuration>
296                         </execution>
297                         <!-- Ensures that the code coverage report for unit tests is created 
298                             after unit tests have been run. -->
299                         <execution>
300                             <id>post-unit-test</id>
301                             <phase>test</phase>
302                             <goals>
303                                 <goal>report</goal>
304                             </goals>
305                             <configuration>
306                                 <dataFile>${sonar.jacoco.reportPath}</dataFile>
307                             </configuration>
308                         </execution>
309                     </executions>
310                 </plugin>
311                 <plugin>
312                     <groupId>org.eclipse.m2e</groupId>
313                     <artifactId>lifecycle-mapping</artifactId>
314                     <version>1.0.0</version>
315                     <configuration>
316                         <lifecycleMappingMetadata>
317                             <pluginExecutions>
318                                 <pluginExecution>
319                                     <pluginExecutionFilter>
320                                         <groupId>org.apache.maven.plugins</groupId>
321                                         <artifactId>maven-checkstyle-plugin</artifactId>
322                                         <versionRange>2.17,)</versionRange>
323                                         <goals>
324                                             <goal>check</goal>
325                                         </goals>
326                                     </pluginExecutionFilter>
327                                     <action>
328                                         <ignore />
329                                     </action>
330                                 </pluginExecution>
331                             </pluginExecutions>
332                         </lifecycleMappingMetadata>
333                     </configuration>
334                 </plugin>
335             </plugins>
336         </pluginManagement>
337     </build>
338 </project>