2 ============LICENSE_START=======================================================
4 ================================================================================
5 Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved.
6 Modified Copyright (C) 2018 Samsung Electronics Co., Ltd.
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"
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>
27 <groupId>org.onap.policy.parent</groupId>
28 <artifactId>integration</artifactId>
29 <version>2.0.0-SNAPSHOT</version>
33 <groupId>org.onap.policy.api</groupId>
34 <artifactId>policy-api</artifactId>
35 <version>2.0.0-SNAPSHOT</version>
37 <packaging>pom</packaging>
39 <name>policy-api</name>
40 <description>Code that define our external API.</description>
43 <!-- sonar/jacoco overrides -->
44 <!-- Overriding oparent default sonar/jacoco settings Combine all our reports
45 into one file shared across sub-modules -->
46 <sonar.jacoco.reportPath>${project.basedir}/../target/code-coverage/jacoco-ut.exec</sonar.jacoco.reportPath>
47 <sonar.jacoco.itReportPath>${project.basedir}/../target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPath>
48 <sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis>
50 <policy.common.version>1.3.0-SNAPSHOT</policy.common.version>
59 <groupId>junit</groupId>
60 <artifactId>junit</artifactId>
64 <groupId>org.slf4j</groupId>
65 <artifactId>slf4j-ext</artifactId>
66 <version>1.8.0-beta2</version>
69 <groupId>org.slf4j</groupId>
70 <artifactId>slf4j-api</artifactId>
73 <groupId>ch.qos.logback</groupId>
74 <artifactId>logback-core</artifactId>
77 <groupId>ch.qos.logback</groupId>
78 <artifactId>logback-classic</artifactId>
82 <distributionManagement>
85 <url>dav:${nexusproxy}${sitePath}</url>
87 </distributionManagement>
92 <groupId>org.jacoco</groupId>
93 <artifactId>jacoco-maven-plugin</artifactId>
96 <id>pre-unit-test</id>
98 <goal>prepare-agent</goal>
101 <destFile>${sonar.jacoco.reportPath}</destFile>
102 <append>true</append>
106 <id>post-unit-test</id>
112 <dataFile>${sonar.jacoco.reportPath}</dataFile>
118 <artifactId>maven-checkstyle-plugin</artifactId>
121 <id>onap-java-style</id>
125 <phase>process-sources</phase>
127 <!-- Use Google Java Style Guide:
128 https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml
129 with minor changes -->
130 <configLocation>onap-checkstyle/onap-java-style.xml</configLocation>
131 <!-- <sourceDirectory> is needed so that checkstyle ignores the generated sources directory -->
132 <sourceDirectory>${project.build.sourceDirectory}/src/main/java</sourceDirectory>
133 <includeResources>true</includeResources>
134 <includeTestSourceDirectory>true</includeTestSourceDirectory>
135 <includeTestResources>true</includeTestResources>
138 <consoleOutput>true</consoleOutput>
139 <failOnViolation>true</failOnViolation>
140 <violationSeverity>warning</violationSeverity>
146 <groupId>org.onap.oparent</groupId>
147 <artifactId>checkstyle</artifactId>
148 <version>1.1.0</version>
149 <scope>compile</scope>
157 <groupId>org.jacoco</groupId>
158 <artifactId>jacoco-maven-plugin</artifactId>
159 <version>${jacoco.version}</version>
161 <!-- Note: This exclusion list should match <sonar.exclusions> property
164 <exclude>**/gen/**</exclude>
165 <exclude>**/generated-sources/**</exclude>
166 <exclude>**/yang-gen/**</exclude>
167 <exclude>**/pax/**</exclude>
171 <!-- Prepares the property pointing to the JaCoCo runtime agent which
172 is passed as VM argument when Maven the Surefire plugin is executed. -->
174 <id>pre-unit-test</id>
176 <goal>prepare-agent</goal>
179 <destFile>${sonar.jacoco.reportPath}</destFile>
182 <!-- Ensures that the code coverage report for unit tests is created
183 after unit tests have been run. -->
185 <id>post-unit-test</id>
191 <dataFile>${sonar.jacoco.reportPath}</dataFile>