blob: a2aa1469000d497624b7289ac1fa722bc2c5cc7b [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.
liamfallonbdfdcf12019-11-01 11:37:50 +00007 Modifications Copyright (C) 2019 Nordix Foundation.
Pamela Dragosh7ef1ede2017-08-03 12:56:47 -04008 ================================================================================
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"
Krishnajinkada9e01a2018-08-31 20:01:30 +090024 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
25 <modelVersion>4.0.0</modelVersion>
Pamela Dragosh7ef1ede2017-08-03 12:56:47 -040026
Krishnajinkada9e01a2018-08-31 20:01:30 +090027 <parent>
28 <groupId>org.onap.policy.parent</groupId>
29 <artifactId>integration</artifactId>
liamfallonbdfdcf12019-11-01 11:37:50 +000030 <version>3.1.0-SNAPSHOT</version>
Pamela Dragosh8218ae02018-09-25 09:20:32 -040031 <relativePath />
Krishnajinkada9e01a2018-08-31 20:01:30 +090032 </parent>
Pamela Dragosh7ef1ede2017-08-03 12:56:47 -040033
Krishnajinkada9e01a2018-08-31 20:01:30 +090034 <groupId>org.onap.policy.api</groupId>
35 <artifactId>policy-api</artifactId>
Jim Hahneeb2aa12019-09-10 09:57:24 -040036 <version>2.2.0-SNAPSHOT</version>
Pamela Dragosh7ef1ede2017-08-03 12:56:47 -040037
Krishnajinkada9e01a2018-08-31 20:01:30 +090038 <packaging>pom</packaging>
Pamela Dragosh7ef1ede2017-08-03 12:56:47 -040039
Krishnajinkada9e01a2018-08-31 20:01:30 +090040 <name>policy-api</name>
41 <description>Code that define our external API.</description>
Pamela Dragosh7ef1ede2017-08-03 12:56:47 -040042
Krishnajinkada9e01a2018-08-31 20:01:30 +090043 <properties>
44 <!-- sonar/jacoco overrides -->
Pamela Dragosh8218ae02018-09-25 09:20:32 -040045 <!-- Overriding oparent default sonar/jacoco settings Combine all our reports into one file shared across sub-modules -->
Krishnajinkada9e01a2018-08-31 20:01:30 +090046 <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>
49
Chenfei Gao20390c62019-09-16 22:20:34 -040050 <policy.common.version>1.6.0-SNAPSHOT</policy.common.version>
51 <policy.models.version>2.2.0-SNAPSHOT</policy.models.version>
Krishnajinkada9e01a2018-08-31 20:01:30 +090052 </properties>
53
54 <modules>
55 <module>main</module>
Chenfei Gao6ea2e1b2019-01-31 16:09:09 -050056 <module>packages</module>
Bilal A56f97fa2019-02-14 14:49:44 -050057 <module>testsuites</module>
Krishnajinkada9e01a2018-08-31 20:01:30 +090058 </modules>
59
60 <dependencies>
61 <dependency>
62 <groupId>junit</groupId>
63 <artifactId>junit</artifactId>
64 <scope>test</scope>
65 </dependency>
Bilal A56f97fa2019-02-14 14:49:44 -050066 <dependency>
Chenfei Gao6ea2e1b2019-01-31 16:09:09 -050067 <groupId>org.onap.policy.common</groupId>
68 <artifactId>policy-endpoints</artifactId>
69 <version>${policy.common.version}</version>
Krishnajinkada9e01a2018-08-31 20:01:30 +090070 </dependency>
71 </dependencies>
72
73 <distributionManagement>
74 <site>
75 <id>ecomp-site</id>
76 <url>dav:${nexusproxy}${sitePath}</url>
77 </site>
78 </distributionManagement>
79
80 <build>
81 <plugins>
82 <plugin>
83 <groupId>org.jacoco</groupId>
84 <artifactId>jacoco-maven-plugin</artifactId>
85 <executions>
86 <execution>
87 <id>pre-unit-test</id>
88 <goals>
89 <goal>prepare-agent</goal>
90 </goals>
91 <configuration>
92 <destFile>${sonar.jacoco.reportPath}</destFile>
93 <append>true</append>
94 </configuration>
95 </execution>
96 <execution>
97 <id>post-unit-test</id>
98 <phase>test</phase>
99 <goals>
100 <goal>report</goal>
101 </goals>
102 <configuration>
103 <dataFile>${sonar.jacoco.reportPath}</dataFile>
104 </configuration>
105 </execution>
106 </executions>
107 </plugin>
108 <plugin>
109 <artifactId>maven-checkstyle-plugin</artifactId>
110 <executions>
111 <execution>
112 <id>onap-java-style</id>
113 <goals>
114 <goal>check</goal>
115 </goals>
116 <phase>process-sources</phase>
117 <configuration>
Pamela Dragosh8218ae02018-09-25 09:20:32 -0400118 <!-- Use Google Java Style Guide: https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml
119 with minor changes -->
Krishnajinkada9e01a2018-08-31 20:01:30 +0900120 <configLocation>onap-checkstyle/onap-java-style.xml</configLocation>
121 <!-- <sourceDirectory> is needed so that checkstyle ignores the generated sources directory -->
Pamela Dragosh8218ae02018-09-25 09:20:32 -0400122 <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
Krishnajinkada9e01a2018-08-31 20:01:30 +0900123 <includeResources>true</includeResources>
124 <includeTestSourceDirectory>true</includeTestSourceDirectory>
125 <includeTestResources>true</includeTestResources>
126 <excludes>
127 </excludes>
128 <consoleOutput>true</consoleOutput>
129 <failOnViolation>true</failOnViolation>
130 <violationSeverity>warning</violationSeverity>
131 </configuration>
132 </execution>
133 </executions>
134 <dependencies>
135 <dependency>
136 <groupId>org.onap.oparent</groupId>
137 <artifactId>checkstyle</artifactId>
Pamela Dragosh8218ae02018-09-25 09:20:32 -0400138 <version>${oparent.version}</version>
Krishnajinkada9e01a2018-08-31 20:01:30 +0900139 <scope>compile</scope>
140 </dependency>
141 </dependencies>
142 </plugin>
143 </plugins>
144 <pluginManagement>
145 <plugins>
146 <plugin>
147 <groupId>org.jacoco</groupId>
148 <artifactId>jacoco-maven-plugin</artifactId>
149 <version>${jacoco.version}</version>
150 <configuration>
Pamela Dragosh8218ae02018-09-25 09:20:32 -0400151 <!-- Note: This exclusion list should match <sonar.exclusions> property above -->
Krishnajinkada9e01a2018-08-31 20:01:30 +0900152 <excludes>
153 <exclude>**/gen/**</exclude>
154 <exclude>**/generated-sources/**</exclude>
155 <exclude>**/yang-gen/**</exclude>
156 <exclude>**/pax/**</exclude>
157 </excludes>
158 </configuration>
159 <executions>
Pamela Dragosh8218ae02018-09-25 09:20:32 -0400160 <!-- Prepares the property pointing to the JaCoCo runtime agent which is passed as VM argument when
161 Maven the Surefire plugin is executed. -->
Krishnajinkada9e01a2018-08-31 20:01:30 +0900162 <execution>
163 <id>pre-unit-test</id>
164 <goals>
165 <goal>prepare-agent</goal>
166 </goals>
167 <configuration>
168 <destFile>${sonar.jacoco.reportPath}</destFile>
169 </configuration>
170 </execution>
Pamela Dragosh8218ae02018-09-25 09:20:32 -0400171 <!-- Ensures that the code coverage report for unit tests is created after unit tests have been run. -->
Krishnajinkada9e01a2018-08-31 20:01:30 +0900172 <execution>
173 <id>post-unit-test</id>
174 <phase>test</phase>
175 <goals>
176 <goal>report</goal>
177 </goals>
178 <configuration>
179 <dataFile>${sonar.jacoco.reportPath}</dataFile>
180 </configuration>
181 </execution>
182 </executions>
183 </plugin>
Pamela Dragosh8218ae02018-09-25 09:20:32 -0400184 <plugin>
185 <groupId>org.eclipse.m2e</groupId>
186 <artifactId>lifecycle-mapping</artifactId>
187 <version>1.0.0</version>
188 <configuration>
189 <lifecycleMappingMetadata>
190 <pluginExecutions>
191 <pluginExecution>
192 <pluginExecutionFilter>
193 <groupId>org.apache.maven.plugins</groupId>
194 <artifactId>maven-checkstyle-plugin</artifactId>
195 <versionRange>2.17,)</versionRange>
196 <goals>
197 <goal>check</goal>
198 </goals>
199 </pluginExecutionFilter>
200 <action>
201 <ignore />
202 </action>
203 </pluginExecution>
204 </pluginExecutions>
205 </lifecycleMappingMetadata>
206 </configuration>
207 </plugin>
Krishnajinkada9e01a2018-08-31 20:01:30 +0900208 </plugins>
209 </pluginManagement>
210 </build>
Pamela Dragoshcb8f3f02017-08-15 11:39:16 -0400211
Pamela Dragosh7ef1ede2017-08-03 12:56:47 -0400212</project>