Merge "Update sonar config"
[policy/drools-pdp.git] / 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-2020 AT&T Intellectual Property. All rights reserved.
7   Modifications Copyright (C) 2019 Nordix Foundation.
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/maven-v4_0_0.xsd">
24     <modelVersion>4.0.0</modelVersion>
25
26     <parent>
27         <groupId>org.onap.policy.parent</groupId>
28         <artifactId>integration</artifactId>
29         <version>3.1.1-SNAPSHOT</version>
30         <relativePath />
31     </parent>
32
33     <groupId>org.onap.policy.drools-pdp</groupId>
34     <artifactId>drools-pdp</artifactId>
35     <version>1.6.0-SNAPSHOT</version>
36     <packaging>pom</packaging>
37     <name>policy-drools-pdp</name>
38
39     <description>The ONAP Policy Engine drools-based PDP Project</description>
40
41     <properties>
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         <!-- Project common dependency versions -->
50         <json.path.version>2.4.0</json.path.version>
51         <hibernate.core.version>5.2.10.Final</hibernate.core.version>
52         <hibernate.commons.annotations.version>5.0.1.Final</hibernate.commons.annotations.version>
53         <commons.io.version>2.5</commons.io.version>
54         <xml.apis.version>1.4.01</xml.apis.version>
55         <policy.common.version>1.6.2-SNAPSHOT</policy.common.version>
56         <policy.models.version>2.2.1-SNAPSHOT</policy.models.version>
57     </properties>
58
59     <modules>
60         <module>policy-utils</module>
61         <module>policy-core</module>
62         <module>policy-management</module>
63         <module>feature-healthcheck</module>
64         <module>feature-eelf</module>
65         <module>feature-pooling-dmaap</module>
66         <module>feature-session-persistence</module>
67         <module>feature-test-transaction</module>
68         <module>api-state-management</module>
69         <module>feature-state-management</module>
70         <module>api-active-standby-management</module>
71         <module>feature-active-standby-management</module>
72         <module>feature-simulators</module>
73         <module>feature-distributed-locking</module>
74         <module>feature-controller-logging</module>
75         <module>feature-mdc-filters</module>
76         <module>feature-lifecycle</module>
77         <module>feature-drools-init</module>
78         <module>packages</module>
79     </modules>
80
81     <dependencyManagement>
82         <dependencies>
83             <dependency>
84                 <groupId>javax.ws.rs</groupId>
85                 <artifactId>javax.ws.rs-api</artifactId>
86                 <version>2.0.1</version>
87             </dependency>
88             <dependency>
89                 <groupId>org.glassfish.hk2.external</groupId>
90                 <artifactId>javax.inject</artifactId>
91                 <version>2.4.0-b31</version>
92             </dependency>
93             <dependency>
94                 <groupId>com.jayway.jsonpath</groupId>
95                 <artifactId>json-path</artifactId>
96                 <version>${json.path.version}</version>
97             </dependency>
98             <dependency>
99                 <groupId>org.hibernate</groupId>
100                 <artifactId>hibernate-core</artifactId>
101                 <version>${hibernate.core.version}</version>
102             </dependency>
103             <dependency>
104                 <groupId>org.hibernate.common</groupId>
105                 <artifactId>hibernate-commons-annotations</artifactId>
106                 <version>${hibernate.commons.annotations.version}</version>
107             </dependency>
108             <dependency>
109                 <groupId>commons-io</groupId>
110                 <artifactId>commons-io</artifactId>
111                 <version>${commons.io.version}</version>
112             </dependency>
113             <dependency>
114                 <groupId>xml-apis</groupId>
115                 <artifactId>xml-apis</artifactId>
116                 <version>${xml.apis.version}</version>
117             </dependency>
118         </dependencies>
119     </dependencyManagement>
120
121     <build>
122         <plugins>
123                 <plugin>
124                     <artifactId>maven-checkstyle-plugin</artifactId>
125                     <executions>
126                         <execution>
127                             <id>onap-java-style</id>
128                             <goals>
129                                 <goal>check</goal>
130                             </goals>
131                             <phase>process-sources</phase>
132                             <configuration>
133                                 <!-- Use Google Java Style Guide: https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml
134                                     with minor changes -->
135                                 <configLocation>onap-checkstyle/onap-java-style.xml</configLocation>
136                                 <!-- <sourceDirectory> is needed so that checkstyle ignores the generated sources directory -->
137                                 <sourceDirectories>${project.build.sourceDirectory}</sourceDirectories>
138                                 <includeResources>true</includeResources>
139                                 <includeTestSourceDirectory>true</includeTestSourceDirectory>
140                                 <includeTestResources>true</includeTestResources>
141                                 <excludes>
142                                 </excludes>
143                                 <!-- suppressionsLocation>${project.baseUri}checkstyle-suppressions.xml</suppressionsLocation -->
144                                 <consoleOutput>true</consoleOutput>
145                                 <failsOnViolation>true</failsOnViolation>
146                                 <violationSeverity>warning</violationSeverity>
147                             </configuration>
148                         </execution>
149                     </executions>
150                     <dependencies>
151                         <dependency>
152                             <groupId>org.onap.oparent</groupId>
153                             <artifactId>checkstyle</artifactId>
154                             <version>${oparent.version}</version>
155                             <scope>compile</scope>
156                         </dependency>
157                     </dependencies>
158                 </plugin>
159             <plugin>
160                 <groupId>org.apache.maven.plugins</groupId>
161                 <artifactId>maven-deploy-plugin</artifactId>
162                 <configuration>
163                     <skip/>
164                 </configuration>
165             </plugin>
166             <plugin>
167                 <groupId>org.apache.maven.plugins</groupId>
168                 <artifactId>maven-compiler-plugin</artifactId>
169                 <configuration>
170                     <encoding>${project.encoding}</encoding>
171                     <source>${project.source.version}</source>
172                     <target>${project.target.version}</target>
173                 </configuration>
174             </plugin>
175             <plugin>
176                 <groupId>org.apache.maven.plugins</groupId>
177                 <artifactId>maven-resources-plugin</artifactId>
178                 <configuration>
179                     <encoding>${project.encoding}</encoding>
180                 </configuration>
181             </plugin>
182
183             <plugin>
184                 <groupId>org.apache.maven.plugins</groupId>
185                 <artifactId>maven-site-plugin</artifactId>
186                 <dependencies>
187                     <dependency>
188                         <groupId>org.apache.maven.wagon</groupId>
189                         <artifactId>wagon-webdav-jackrabbit</artifactId>
190                         <version>2.10</version>
191                     </dependency>
192                 </dependencies>
193             </plugin>
194         </plugins>
195         <pluginManagement>
196             <plugins>
197                 <plugin>
198                     <groupId>org.eclipse.m2e</groupId>
199                     <artifactId>lifecycle-mapping</artifactId>
200                     <version>1.0.0</version>
201                     <configuration>
202                         <lifecycleMappingMetadata>
203                             <pluginExecutions>
204                                 <pluginExecution>
205                                     <pluginExecutionFilter>
206                                         <groupId>org.apache.maven.plugins</groupId>
207                                         <artifactId>maven-checkstyle-plugin</artifactId>
208                                         <versionRange>2.17,)</versionRange>
209                                         <goals>
210                                             <goal>check</goal>
211                                         </goals>
212                                     </pluginExecutionFilter>
213                                     <action>
214                                         <ignore/>
215                                     </action>
216                                 </pluginExecution>
217                             </pluginExecutions>
218                         </lifecycleMappingMetadata>
219                     </configuration>
220                 </plugin>
221             </plugins>
222         </pluginManagement>
223     </build>
224     <reporting>
225         <plugins>
226             <plugin>
227                 <groupId>org.apache.maven.plugins</groupId>
228                 <artifactId>maven-javadoc-plugin</artifactId>
229                 <version>2.10.4</version>
230                 <configuration>
231                     <failOnError>false</failOnError>
232                     <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
233                     <docletArtifact>
234                         <groupId>org.umlgraph</groupId>
235                         <artifactId>umlgraph</artifactId>
236                         <version>5.6</version>
237                     </docletArtifact>
238                     <additionalparam>-views</additionalparam>
239                     <useStandardDocletOptions>true</useStandardDocletOptions>
240                 </configuration>
241             </plugin>
242         </plugins>
243     </reporting>
244
245 </project>