2 ============LICENSE_START=======================================================
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
12 http://www.apache.org/licenses/LICENSE-2.0
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=========================================================
22 <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/xsd/maven-4.0.0.xsd">
24 <modelVersion>4.0.0</modelVersion>
26 <groupId>org.onap.policy.parent</groupId>
27 <artifactId>integration</artifactId>
28 <version>3.0.1</version>
32 <groupId>org.onap.policy.drools-applications</groupId>
33 <artifactId>drools-applications</artifactId>
34 <version>1.5.5-SNAPSHOT</version>
36 <name>policy-drools-applications</name>
37 <packaging>pom</packaging>
40 <!-- Project common build settings -->
41 <maven.compiler.source>1.8</maven.compiler.source>
42 <maven.compiler.target>1.8</maven.compiler.target>
43 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
44 <project.source.version>1.8</project.source.version>
45 <project.target.version>1.8</project.target.version>
47 <!-- Project path properties -->
48 <nexusproxy>https://nexus.onap.org</nexusproxy>
49 <sitePath>/content/sites/site/${project.groupId}/${project.artifactId}/${project.version}</sitePath>
50 <releases.path>content/repositories/releases/</releases.path>
51 <snapshots.path>content/repositories/snapshots/</snapshots.path>
52 <staging.path>content/repositories/staging/</staging.path>
54 <!-- sonar/jacoco overrides -->
55 <!-- Overriding oparent default sonar/jacoco settings Combine all
56 our reports into one file shared across sub-modules -->
57 <sonar.jacoco.reportPath>${project.basedir}/../target/code-coverage/jacoco-ut.exec</sonar.jacoco.reportPath>
58 <sonar.jacoco.itReportPath>${project.basedir}/../target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPath>
59 <sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis>
61 <!-- Project common dependency versions -->
62 <version.policy.common>1.5.2</version.policy.common>
63 <policy.models.version>2.1.4</policy.models.version>
64 <version.policy.drools-pdp>1.5.3</version.policy.drools-pdp>
70 <groupId>org.jacoco</groupId>
71 <artifactId>jacoco-maven-plugin</artifactId>
74 <id>pre-unit-test</id>
76 <goal>prepare-agent</goal>
79 <destFile>${sonar.jacoco.reportPath}</destFile>
84 <id>post-unit-test</id>
90 <dataFile>${sonar.jacoco.reportPath}</dataFile>
96 <groupId>org.apache.maven.plugins</groupId>
97 <artifactId>maven-deploy-plugin</artifactId>
103 <groupId>org.apache.maven.plugins</groupId>
104 <artifactId>maven-compiler-plugin</artifactId>
106 <encoding>${project.encoding}</encoding>
107 <source>${project.source.version}</source>
108 <target>${project.target.version}</target>
112 <groupId>org.apache.maven.plugins</groupId>
113 <artifactId>maven-site-plugin</artifactId>
116 <groupId>org.apache.maven.wagon</groupId>
117 <artifactId>wagon-webdav-jackrabbit</artifactId>
118 <version>2.10</version>
123 <artifactId>maven-checkstyle-plugin</artifactId>
126 <id>onap-java-style</id>
130 <phase>process-sources</phase>
132 <!-- Use Google Java Style Guide:
133 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 <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
138 <includeResources>true</includeResources>
139 <includeTestSourceDirectory>true</includeTestSourceDirectory>
140 <includeTestResources>true</includeTestResources>
143 <consoleOutput>true</consoleOutput>
144 <failsOnViolation>true</failsOnViolation>
145 <violationSeverity>warning</violationSeverity>
151 <groupId>org.onap.oparent</groupId>
152 <artifactId>checkstyle</artifactId>
153 <version>${oparent.version}</version>
154 <scope>compile</scope>
162 <groupId>org.jacoco</groupId>
163 <artifactId>jacoco-maven-plugin</artifactId>
164 <version>${jacoco.version}</version>
166 <!-- Note: This exclusion list should match <sonar.exclusions>
169 <exclude>**/gen/**</exclude>
170 <exclude>**/generated-sources/**</exclude>
171 <exclude>**/yang-gen/**</exclude>
172 <exclude>**/pax/**</exclude>
176 <!-- Prepares the property pointing to the JaCoCo
177 runtime agent which is passed as VM argument when Maven the Surefire plugin
180 <id>pre-unit-test</id>
182 <goal>prepare-agent</goal>
185 <destFile>${sonar.jacoco.reportPath}</destFile>
188 <!-- Ensures that the code coverage report for unit
189 tests is created after unit tests have been run. -->
191 <id>post-unit-test</id>
197 <dataFile>${sonar.jacoco.reportPath}</dataFile>
203 <groupId>org.eclipse.m2e</groupId>
204 <artifactId>lifecycle-mapping</artifactId>
205 <version>1.0.0</version>
207 <lifecycleMappingMetadata>
210 <pluginExecutionFilter>
211 <groupId>org.apache.maven.plugins</groupId>
212 <artifactId>maven-checkstyle-plugin</artifactId>
213 <versionRange>2.17,)</versionRange>
217 </pluginExecutionFilter>
223 </lifecycleMappingMetadata>
231 <module>controlloop</module>
232 <module>testsuites</module>
238 <groupId>org.apache.maven.plugins</groupId>
239 <artifactId>maven-javadoc-plugin</artifactId>
240 <version>2.10.4</version>
242 <failOnError>false</failOnError>
243 <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
245 <groupId>org.umlgraph</groupId>
246 <artifactId>umlgraph</artifactId>
247 <version>5.6</version>
249 <additionalparam>-views</additionalparam>
250 <useStandardDocletOptions>true</useStandardDocletOptions>
258 <groupId>ch.qos.logback</groupId>
259 <artifactId>logback-classic</artifactId>
260 <scope>provided</scope>