Merge "Sonar cleanup"
[policy/drools-pdp.git] / pom.xml
1 <!-- 
2   ============LICENSE_START======================================================= 
3   ONAP Policy Engine - Drools PDP 
4   ================================================================================
5   Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved.
6   ================================================================================
7   Licensed under the Apache License, Version 2.0 (the "License");
8   you may not use this file except in compliance with the License.
9   You may obtain a copy of the License at
10
11        http://www.apache.org/licenses/LICENSE-2.0
12
13   Unless required by applicable law or agreed to in writing, software
14   distributed under the License is distributed on an "AS IS" BASIS,
15   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16   See the License for the specific language governing permissions and
17   limitations under the License.
18   ============LICENSE_END========================================================= 
19 -->
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
25         <parent>
26                 <groupId>org.onap.oparent</groupId>
27                 <artifactId>oparent</artifactId>
28                 <version>1.1.0</version>
29                 <relativePath />
30         </parent>
31
32         <groupId>org.onap.policy.drools-pdp</groupId>
33         <artifactId>drools-pdp</artifactId>
34         <version>1.2.1-SNAPSHOT</version>
35         <packaging>pom</packaging>
36         <name>policy-drools-pdp</name>
37
38         <description>The ONAP Policy Engine drools-based PDP Project</description>
39
40         <properties>
41                 <!-- Project common build settings -->
42                 <project.source.version>1.8</project.source.version>
43                 <project.target.version>1.8</project.target.version>
44
45                 <!-- Project path properties -->
46                 <nexusproxy>https://nexus.onap.org</nexusproxy>
47                 <sitePath>/content/sites/site/${project.groupId}/${project.artifactId}/${project.version}</sitePath>
48                 <releases.path>content/repositories/releases/</releases.path>
49                 <snapshots.path>content/repositories/snapshots/</snapshots.path>
50                 <staging.path>content/repositories/staging/</staging.path>
51
52                 <!-- sonar/jacoco overrides -->
53                 <!-- Overriding oparent default sonar/jacoco settings Combine all our reports 
54                         into one file shared across sub-modules -->
55                 <sonar.jacoco.reportPath>${project.basedir}/../target/code-coverage/jacoco-ut.exec</sonar.jacoco.reportPath>
56                 <sonar.jacoco.itReportPath>${project.basedir}/../target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPath>
57                 <sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis>
58
59                 <!-- Project common dependency versions -->
60                 <dmaap.version>1.1.3</dmaap.version>
61                 <cambria.version>0.0.1</cambria.version>
62                 <jersey.version>2.25.1</jersey.version>
63                 <jersey.swagger.version>1.5.18</jersey.swagger.version>
64                 <jackson.version>2.9.5</jackson.version>
65                 <http.client.version>4.5.5</http.client.version>
66                 <http.core.version>4.4.4</http.core.version>
67                 <logback.version>1.2.3</logback.version>
68                 <junit.version>4.12</junit.version>
69                 <eclipselink.version>2.7.0</eclipselink.version>
70                 <mariadb.jdbc.version>2.1.0</mariadb.jdbc.version>
71                 <hibernate.core.version>5.2.10.Final</hibernate.core.version>
72                 <hibernate.commons.annotations.version>5.0.1.Final</hibernate.commons.annotations.version>
73                 <commons.io.version>2.5</commons.io.version>
74                 <guava.version>23.0</guava.version>
75                 <xml.apis.version>1.4.01</xml.apis.version>
76         </properties>
77
78         <modules>
79                 <module>policy-utils</module>
80                 <module>policy-core</module>
81                 <module>policy-endpoints</module>
82                 <module>policy-management</module>
83                 <module>feature-healthcheck</module>
84                 <module>feature-eelf</module>
85         <module>feature-pooling-dmaap</module>
86                 <module>feature-session-persistence</module>
87                 <module>feature-test-transaction</module>
88                 <module>api-state-management</module>
89                 <module>feature-state-management</module>
90                 <module>api-active-standby-management</module>
91                 <module>feature-active-standby-management</module>
92                 <module>feature-simulators</module>
93                 <module>feature-distributed-locking</module>
94                 <module>packages</module>
95         </modules>
96
97         <distributionManagement>
98                 <repository>
99                         <id>ecomp-releases</id>
100                         <name>ONAP Release Repository</name>
101                         <url>${nexusproxy}/${releases.path}</url>
102                 </repository>
103                 <snapshotRepository>
104                         <id>ecomp-snapshots</id>
105                         <name>ONAP Snapshot Repository</name>
106                         <url>${nexusproxy}/${snapshots.path}</url>
107                 </snapshotRepository>
108                 <site>
109                         <id>ecomp-site</id>
110                         <url>dav:${nexusproxy}${sitePath}</url>
111                 </site>
112         </distributionManagement>
113
114         <dependencyManagement>
115                 <dependencies>
116                         <dependency>
117                                 <groupId>com.google.guava</groupId>
118                                 <artifactId>guava</artifactId>
119                                 <version>${guava.version}</version>
120                         </dependency>
121                         <dependency>
122                                 <groupId>javax.ws.rs</groupId>
123                                 <artifactId>javax.ws.rs-api</artifactId>
124                                 <version>2.0.1</version>
125                         </dependency>
126                         <dependency>
127                                 <groupId>org.glassfish.hk2.external</groupId>
128                                 <artifactId>javax.inject</artifactId>
129                                 <version>2.4.0-b31</version>
130                         </dependency>
131                         <dependency>
132                                 <groupId>com.fasterxml.jackson.jaxrs</groupId>
133                                 <artifactId>jackson-jaxrs-base</artifactId>
134                                 <version>${jackson.version}</version>
135                         </dependency>
136                         <dependency>
137                                 <groupId>com.fasterxml.jackson.jaxrs</groupId>
138                                 <artifactId>jackson-jaxrs-json-provider</artifactId>
139                                 <version>${jackson.version}</version>
140                         </dependency>
141                         <dependency>
142                                 <groupId>com.fasterxml.jackson.dataformat</groupId>
143                                 <artifactId>jackson-dataformat-xml</artifactId>
144                                 <version>${jackson.version}</version>
145                         </dependency>
146                         <dependency>
147                                 <groupId>com.fasterxml.jackson.dataformat</groupId>
148                                 <artifactId>jackson-dataformat-yaml</artifactId>
149                                 <version>${jackson.version}</version>
150                         </dependency>
151                         <dependency>
152                                 <groupId>com.fasterxml.jackson.datatype</groupId>
153                                 <artifactId>jackson-datatype-joda</artifactId>
154                                 <version>${jackson.version}</version>
155                         </dependency>
156                         <dependency>
157                                 <groupId>org.glassfish.jersey.containers</groupId>
158                                 <artifactId>jersey-common</artifactId>
159                                 <version>${jersey.version}</version>
160                         </dependency>
161                         <dependency>
162                                 <groupId>org.glassfish.jersey.containers</groupId>
163                                 <artifactId>jersey-container-servlet-core</artifactId>
164                                 <version>${jersey.version}</version>
165                         </dependency>
166                         <dependency>
167                                 <groupId>io.swagger</groupId>
168                                 <artifactId>swagger-jersey2-jaxrs</artifactId>
169                                 <version>${jersey.swagger.version}</version>
170                         </dependency>
171                         <dependency>
172                                 <groupId>org.apache.httpcomponents</groupId>
173                                 <artifactId>httpclient</artifactId>
174                                 <version>${http.client.version}</version>
175                         </dependency>
176                         <dependency>
177                                 <groupId>org.apache.httpcomponents</groupId>
178                                 <artifactId>httpcore</artifactId>
179                                 <version>${http.core.version}</version>
180                         </dependency>
181                         <dependency>
182                                 <groupId>ch.qos.logback</groupId>
183                                 <artifactId>logback-classic</artifactId>
184                                 <version>${logback.version}</version>
185                         </dependency>
186                         <dependency>
187                                 <groupId>junit</groupId>
188                                 <artifactId>junit</artifactId>
189                                 <version>${junit.version}</version>
190                         </dependency>
191                         <dependency>
192                                 <groupId>org.eclipse.persistence</groupId>
193                                 <artifactId>eclipselink</artifactId>
194                                 <version>${eclipselink.version}</version>
195                         </dependency>
196                         <dependency>
197                                 <groupId>org.eclipse.persistence</groupId>
198                                 <artifactId>org.eclipse.persistence.jpa</artifactId>
199                                 <version>${eclipselink.version}</version>
200                         </dependency>
201                         <dependency>
202                                 <groupId>org.mariadb.jdbc</groupId>
203                                 <artifactId>mariadb-java-client</artifactId>
204                                 <version>${mariadb.jdbc.version}</version>
205                         </dependency>
206                         <dependency>
207                                 <groupId>org.hibernate</groupId>
208                                 <artifactId>hibernate-core</artifactId>
209                                 <version>${hibernate.core.version}</version>
210                         </dependency>
211                         <dependency>
212                                 <groupId>org.hibernate.common</groupId>
213                                 <artifactId>hibernate-commons-annotations</artifactId>
214                                 <version>${hibernate.commons.annotations.version}</version>
215                         </dependency>
216                         <dependency>
217                                 <groupId>commons-io</groupId>
218                                 <artifactId>commons-io</artifactId>
219                                 <version>${commons.io.version}</version>
220                         </dependency>
221                         <dependency>
222                                 <groupId>xml-apis</groupId>
223                                 <artifactId>xml-apis</artifactId>
224                                 <version>${xml.apis.version}</version>
225                         </dependency>
226                 </dependencies>
227         </dependencyManagement>
228
229         <build>
230                 <plugins>
231                         <plugin>
232                                 <groupId>org.jacoco</groupId>
233                                 <artifactId>jacoco-maven-plugin</artifactId>
234                                 <executions>
235                                         <execution>
236                                                 <id>pre-unit-test</id>
237                                                 <goals>
238                                                         <goal>prepare-agent</goal>
239                                                 </goals>
240                                                 <configuration>
241                                                         <destFile>${sonar.jacoco.reportPath}</destFile>
242                                                         <append>true</append>
243                                                 </configuration>
244                                         </execution>
245                                         <execution>
246                                                 <id>post-unit-test</id>
247                                                 <phase>test</phase>
248                                                 <goals>
249                                                         <goal>report</goal>
250                                                 </goals>
251                                                 <configuration>
252                                                         <dataFile>${sonar.jacoco.reportPath}</dataFile>
253                                                 </configuration>
254                                         </execution>
255                                 </executions>
256                         </plugin>
257                         <plugin>
258                                 <groupId>org.sonatype.plugins</groupId>
259                                 <artifactId>nexus-staging-maven-plugin</artifactId>
260                                 <extensions>true</extensions>
261                                 <configuration>
262                                         <nexusUrl>${nexusproxy}</nexusUrl>
263                                         <stagingProfileId>176c31dfe190a</stagingProfileId>
264                                         <serverId>ecomp-staging</serverId>
265                                 </configuration>
266                         </plugin>
267                         <plugin>
268                                 <groupId>org.apache.maven.plugins</groupId>
269                                 <artifactId>maven-deploy-plugin</artifactId>
270                                 <configuration>
271                                         <skip />
272                                 </configuration>
273                         </plugin>
274                         <plugin>
275                                 <groupId>org.apache.maven.plugins</groupId>
276                                 <artifactId>maven-compiler-plugin</artifactId>
277                                 <version>3.0</version>
278                                 <configuration>
279                                         <encoding>${project.encoding}</encoding>
280                                         <source>${project.source.version}</source>
281                                         <target>${project.target.version}</target>
282                                 </configuration>
283                         </plugin>
284                         <plugin>
285                                 <groupId>org.apache.maven.plugins</groupId>
286                                 <artifactId>maven-resources-plugin</artifactId>
287                                 <version>2.6</version>
288                                 <configuration>
289                                         <encoding>${project.encoding}</encoding>
290                                 </configuration>
291                         </plugin>
292
293                         <plugin>
294                                 <groupId>org.apache.maven.plugins</groupId>
295                                 <artifactId>maven-site-plugin</artifactId>
296                                 <dependencies>
297                                         <dependency>
298                                                 <groupId>org.apache.maven.wagon</groupId>
299                                                 <artifactId>wagon-webdav-jackrabbit</artifactId>
300                                                 <version>2.10</version>
301                                         </dependency>
302                                 </dependencies>
303                         </plugin>
304                 </plugins>
305                 <pluginManagement>
306                         <plugins>
307                                 <plugin>
308                                         <groupId>org.jacoco</groupId>
309                                         <artifactId>jacoco-maven-plugin</artifactId>
310                                         <version>${jacoco.version}</version>
311                                         <configuration>
312                                                 <!-- Note: This exclusion list should match <sonar.exclusions> property 
313                                                         above -->
314                                                 <excludes>
315                                                         <exclude>**/gen/**</exclude>
316                                                         <exclude>**/generated-sources/**</exclude>
317                                                         <exclude>**/yang-gen/**</exclude>
318                                                         <exclude>**/pax/**</exclude>
319                                                 </excludes>
320                                         </configuration>
321                                         <executions>
322                                                 <!-- Prepares the property pointing to the JaCoCo runtime agent which 
323                                                         is passed as VM argument when Maven the Surefire plugin is executed. -->
324                                                 <execution>
325                                                         <id>pre-unit-test</id>
326                                                         <goals>
327                                                                 <goal>prepare-agent</goal>
328                                                         </goals>
329                                                         <configuration>
330                                                                 <destFile>${sonar.jacoco.reportPath}</destFile>
331                                                         </configuration>
332                                                 </execution>
333                                                 <!-- Ensures that the code coverage report for unit tests is created 
334                                                         after unit tests have been run. -->
335                                                 <execution>
336                                                         <id>post-unit-test</id>
337                                                         <phase>test</phase>
338                                                         <goals>
339                                                                 <goal>report</goal>
340                                                         </goals>
341                                                         <configuration>
342                                                                 <dataFile>${sonar.jacoco.reportPath}</dataFile>
343                                                         </configuration>
344                                                 </execution>
345                                         </executions>
346                                 </plugin>
347                                 <plugin>
348                                         <groupId>org.eclipse.m2e</groupId>
349                                         <artifactId>lifecycle-mapping</artifactId>
350                                         <version>1.0.0</version>
351                                         <configuration>
352                                                 <lifecycleMappingMetadata>
353                                                         <pluginExecutions>
354                                                                 <pluginExecution>
355                                                                         <pluginExecutionFilter>
356                                                                                 <groupId>org.apache.maven.plugins</groupId>
357                                                                                 <artifactId>maven-checkstyle-plugin</artifactId>
358                                                                                 <versionRange>2.17,)</versionRange>
359                                                                                 <goals>
360                                                                                         <goal>check</goal>
361                                                                                 </goals>
362                                                                         </pluginExecutionFilter>
363                                                                         <action>
364                                                                                 <ignore />
365                                                                         </action>
366                                                                 </pluginExecution>
367                                                         </pluginExecutions>
368                                                 </lifecycleMappingMetadata>
369                                         </configuration>
370                                 </plugin>
371                         </plugins>
372                 </pluginManagement>
373         </build>
374         <reporting>
375                 <plugins>
376                         <plugin>
377                                 <groupId>org.apache.maven.plugins</groupId>
378                                 <artifactId>maven-javadoc-plugin</artifactId>
379                                 <version>2.10.4</version>
380                                 <configuration>
381                                         <failOnError>false</failOnError>
382                                         <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
383                                         <docletArtifact>
384                                                 <groupId>org.umlgraph</groupId>
385                                                 <artifactId>umlgraph</artifactId>
386                                                 <version>5.6</version>
387                                         </docletArtifact>
388                                         <additionalparam>-views</additionalparam>
389                                         <useStandardDocletOptions>true</useStandardDocletOptions>
390                                 </configuration>
391                         </plugin>
392                 </plugins>
393         </reporting>
394
395 </project>