blob: b077e70dcaaa96e5a804c0b38bb55f8bc98e1c0d [file] [log] [blame]
Pamela Dragosh7ef1ede2017-08-03 12:56:47 -04001<!--
2 ============LICENSE_START=======================================================
ramverma74b108c2018-05-24 12:40:21 +01003 ONAP Policy API
Pamela Dragosh7ef1ede2017-08-03 12:56:47 -04004 ================================================================================
Chenfei Gao6ea2e1b2019-01-31 16:09:09 -05005 Copyright (C) 2018 Samsung Electronics Co., Ltd. All rights reserved.
6 Copyright (C) 2017-2019 AT&T Intellectual Property. All rights reserved.
Pamela Dragosh7ef1ede2017-08-03 12:56:47 -04007 ================================================================================
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
22<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
Krishnajinkada9e01a2018-08-31 20:01:30 +090023 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>
Pamela Dragosh7ef1ede2017-08-03 12:56:47 -040025
Krishnajinkada9e01a2018-08-31 20:01:30 +090026 <parent>
27 <groupId>org.onap.policy.parent</groupId>
28 <artifactId>integration</artifactId>
Chenfei Gao0c117e62019-02-18 16:28:54 -050029 <version>2.1.0-SNAPSHOT</version>
Pamela Dragosh8218ae02018-09-25 09:20:32 -040030 <relativePath />
Krishnajinkada9e01a2018-08-31 20:01:30 +090031 </parent>
Pamela Dragosh7ef1ede2017-08-03 12:56:47 -040032
Krishnajinkada9e01a2018-08-31 20:01:30 +090033 <groupId>org.onap.policy.api</groupId>
34 <artifactId>policy-api</artifactId>
ramvermacb234872018-10-24 15:17:05 +010035 <version>2.0.0-SNAPSHOT</version>
Pamela Dragosh7ef1ede2017-08-03 12:56:47 -040036
Krishnajinkada9e01a2018-08-31 20:01:30 +090037 <packaging>pom</packaging>
Pamela Dragosh7ef1ede2017-08-03 12:56:47 -040038
Krishnajinkada9e01a2018-08-31 20:01:30 +090039 <name>policy-api</name>
40 <description>Code that define our external API.</description>
Pamela Dragosh7ef1ede2017-08-03 12:56:47 -040041
Krishnajinkada9e01a2018-08-31 20:01:30 +090042 <properties>
43 <!-- sonar/jacoco overrides -->
Pamela Dragosh8218ae02018-09-25 09:20:32 -040044 <!-- Overriding oparent default sonar/jacoco settings Combine all our reports into one file shared across sub-modules -->
Krishnajinkada9e01a2018-08-31 20:01:30 +090045 <sonar.jacoco.reportPath>${project.basedir}/../target/code-coverage/jacoco-ut.exec</sonar.jacoco.reportPath>
46 <sonar.jacoco.itReportPath>${project.basedir}/../target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPath>
47 <sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis>
48
Chenfei Gao6ea2e1b2019-01-31 16:09:09 -050049 <policy.common.version>1.4.0-SNAPSHOT</policy.common.version>
Chenfei Gao0c117e62019-02-18 16:28:54 -050050 <policy.models.version>2.0.0-SNAPSHOT</policy.models.version>
Krishnajinkada9e01a2018-08-31 20:01:30 +090051 </properties>
52
53 <modules>
54 <module>main</module>
Chenfei Gao6ea2e1b2019-01-31 16:09:09 -050055 <module>packages</module>
Bilal A56f97fa2019-02-14 14:49:44 -050056 <module>testsuites</module>
Krishnajinkada9e01a2018-08-31 20:01:30 +090057 </modules>
58
59 <dependencies>
60 <dependency>
61 <groupId>junit</groupId>
62 <artifactId>junit</artifactId>
63 <scope>test</scope>
64 </dependency>
Bilal A56f97fa2019-02-14 14:49:44 -050065 <dependency>
Chenfei Gao6ea2e1b2019-01-31 16:09:09 -050066 <groupId>org.onap.policy.common</groupId>
67 <artifactId>policy-endpoints</artifactId>
68 <version>${policy.common.version}</version>
Krishnajinkada9e01a2018-08-31 20:01:30 +090069 </dependency>
70 </dependencies>
71
72 <distributionManagement>
73 <site>
74 <id>ecomp-site</id>
75 <url>dav:${nexusproxy}${sitePath}</url>
76 </site>
77 </distributionManagement>
78
79 <build>
80 <plugins>
81 <plugin>
82 <groupId>org.jacoco</groupId>
83 <artifactId>jacoco-maven-plugin</artifactId>
84 <executions>
85 <execution>
86 <id>pre-unit-test</id>
87 <goals>
88 <goal>prepare-agent</goal>
89 </goals>
90 <configuration>
91 <destFile>${sonar.jacoco.reportPath}</destFile>
92 <append>true</append>
93 </configuration>
94 </execution>
95 <execution>
96 <id>post-unit-test</id>
97 <phase>test</phase>
98 <goals>
99 <goal>report</goal>
100 </goals>
101 <configuration>
102 <dataFile>${sonar.jacoco.reportPath}</dataFile>
103 </configuration>
104 </execution>
105 </executions>
106 </plugin>
107 <plugin>
108 <artifactId>maven-checkstyle-plugin</artifactId>
109 <executions>
110 <execution>
111 <id>onap-java-style</id>
112 <goals>
113 <goal>check</goal>
114 </goals>
115 <phase>process-sources</phase>
116 <configuration>
Pamela Dragosh8218ae02018-09-25 09:20:32 -0400117 <!-- Use Google Java Style Guide: https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml
118 with minor changes -->
Krishnajinkada9e01a2018-08-31 20:01:30 +0900119 <configLocation>onap-checkstyle/onap-java-style.xml</configLocation>
120 <!-- <sourceDirectory> is needed so that checkstyle ignores the generated sources directory -->
Pamela Dragosh8218ae02018-09-25 09:20:32 -0400121 <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
Krishnajinkada9e01a2018-08-31 20:01:30 +0900122 <includeResources>true</includeResources>
123 <includeTestSourceDirectory>true</includeTestSourceDirectory>
124 <includeTestResources>true</includeTestResources>
125 <excludes>
126 </excludes>
127 <consoleOutput>true</consoleOutput>
128 <failOnViolation>true</failOnViolation>
129 <violationSeverity>warning</violationSeverity>
130 </configuration>
131 </execution>
132 </executions>
133 <dependencies>
134 <dependency>
135 <groupId>org.onap.oparent</groupId>
136 <artifactId>checkstyle</artifactId>
Pamela Dragosh8218ae02018-09-25 09:20:32 -0400137 <version>${oparent.version}</version>
Krishnajinkada9e01a2018-08-31 20:01:30 +0900138 <scope>compile</scope>
139 </dependency>
140 </dependencies>
141 </plugin>
142 </plugins>
143 <pluginManagement>
144 <plugins>
145 <plugin>
146 <groupId>org.jacoco</groupId>
147 <artifactId>jacoco-maven-plugin</artifactId>
148 <version>${jacoco.version}</version>
149 <configuration>
Pamela Dragosh8218ae02018-09-25 09:20:32 -0400150 <!-- Note: This exclusion list should match <sonar.exclusions> property above -->
Krishnajinkada9e01a2018-08-31 20:01:30 +0900151 <excludes>
152 <exclude>**/gen/**</exclude>
153 <exclude>**/generated-sources/**</exclude>
154 <exclude>**/yang-gen/**</exclude>
155 <exclude>**/pax/**</exclude>
156 </excludes>
157 </configuration>
158 <executions>
Pamela Dragosh8218ae02018-09-25 09:20:32 -0400159 <!-- Prepares the property pointing to the JaCoCo runtime agent which is passed as VM argument when
160 Maven the Surefire plugin is executed. -->
Krishnajinkada9e01a2018-08-31 20:01:30 +0900161 <execution>
162 <id>pre-unit-test</id>
163 <goals>
164 <goal>prepare-agent</goal>
165 </goals>
166 <configuration>
167 <destFile>${sonar.jacoco.reportPath}</destFile>
168 </configuration>
169 </execution>
Pamela Dragosh8218ae02018-09-25 09:20:32 -0400170 <!-- Ensures that the code coverage report for unit tests is created after unit tests have been run. -->
Krishnajinkada9e01a2018-08-31 20:01:30 +0900171 <execution>
172 <id>post-unit-test</id>
173 <phase>test</phase>
174 <goals>
175 <goal>report</goal>
176 </goals>
177 <configuration>
178 <dataFile>${sonar.jacoco.reportPath}</dataFile>
179 </configuration>
180 </execution>
181 </executions>
182 </plugin>
Pamela Dragosh8218ae02018-09-25 09:20:32 -0400183 <plugin>
184 <groupId>org.eclipse.m2e</groupId>
185 <artifactId>lifecycle-mapping</artifactId>
186 <version>1.0.0</version>
187 <configuration>
188 <lifecycleMappingMetadata>
189 <pluginExecutions>
190 <pluginExecution>
191 <pluginExecutionFilter>
192 <groupId>org.apache.maven.plugins</groupId>
193 <artifactId>maven-checkstyle-plugin</artifactId>
194 <versionRange>2.17,)</versionRange>
195 <goals>
196 <goal>check</goal>
197 </goals>
198 </pluginExecutionFilter>
199 <action>
200 <ignore />
201 </action>
202 </pluginExecution>
203 </pluginExecutions>
204 </lifecycleMappingMetadata>
205 </configuration>
206 </plugin>
Krishnajinkada9e01a2018-08-31 20:01:30 +0900207 </plugins>
208 </pluginManagement>
209 </build>
Pamela Dragoshcb8f3f02017-08-15 11:39:16 -0400210
Pamela Dragosh7ef1ede2017-08-03 12:56:47 -0400211</project>