blob: 6a2315f7ac57f3caf9f91ce20ec03d5e407fd8b7 [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>
ramvermacb234872018-10-24 15:17:05 +010029 <version>2.0.0</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>
Krishnajinkada9e01a2018-08-31 20:01:30 +090050 </properties>
51
52 <modules>
53 <module>main</module>
Chenfei Gao6ea2e1b2019-01-31 16:09:09 -050054 <module>packages</module>
Bilal A56f97fa2019-02-14 14:49:44 -050055 <module>testsuites</module>
Krishnajinkada9e01a2018-08-31 20:01:30 +090056 </modules>
57
58 <dependencies>
59 <dependency>
60 <groupId>junit</groupId>
61 <artifactId>junit</artifactId>
62 <scope>test</scope>
63 </dependency>
Bilal A56f97fa2019-02-14 14:49:44 -050064 <dependency>
Chenfei Gao6ea2e1b2019-01-31 16:09:09 -050065 <groupId>org.onap.policy.common</groupId>
66 <artifactId>policy-endpoints</artifactId>
67 <version>${policy.common.version}</version>
Krishnajinkada9e01a2018-08-31 20:01:30 +090068 </dependency>
69 </dependencies>
70
71 <distributionManagement>
72 <site>
73 <id>ecomp-site</id>
74 <url>dav:${nexusproxy}${sitePath}</url>
75 </site>
76 </distributionManagement>
77
78 <build>
79 <plugins>
80 <plugin>
81 <groupId>org.jacoco</groupId>
82 <artifactId>jacoco-maven-plugin</artifactId>
83 <executions>
84 <execution>
85 <id>pre-unit-test</id>
86 <goals>
87 <goal>prepare-agent</goal>
88 </goals>
89 <configuration>
90 <destFile>${sonar.jacoco.reportPath}</destFile>
91 <append>true</append>
92 </configuration>
93 </execution>
94 <execution>
95 <id>post-unit-test</id>
96 <phase>test</phase>
97 <goals>
98 <goal>report</goal>
99 </goals>
100 <configuration>
101 <dataFile>${sonar.jacoco.reportPath}</dataFile>
102 </configuration>
103 </execution>
104 </executions>
105 </plugin>
106 <plugin>
107 <artifactId>maven-checkstyle-plugin</artifactId>
108 <executions>
109 <execution>
110 <id>onap-java-style</id>
111 <goals>
112 <goal>check</goal>
113 </goals>
114 <phase>process-sources</phase>
115 <configuration>
Pamela Dragosh8218ae02018-09-25 09:20:32 -0400116 <!-- Use Google Java Style Guide: https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml
117 with minor changes -->
Krishnajinkada9e01a2018-08-31 20:01:30 +0900118 <configLocation>onap-checkstyle/onap-java-style.xml</configLocation>
119 <!-- <sourceDirectory> is needed so that checkstyle ignores the generated sources directory -->
Pamela Dragosh8218ae02018-09-25 09:20:32 -0400120 <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
Krishnajinkada9e01a2018-08-31 20:01:30 +0900121 <includeResources>true</includeResources>
122 <includeTestSourceDirectory>true</includeTestSourceDirectory>
123 <includeTestResources>true</includeTestResources>
124 <excludes>
125 </excludes>
126 <consoleOutput>true</consoleOutput>
127 <failOnViolation>true</failOnViolation>
128 <violationSeverity>warning</violationSeverity>
129 </configuration>
130 </execution>
131 </executions>
132 <dependencies>
133 <dependency>
134 <groupId>org.onap.oparent</groupId>
135 <artifactId>checkstyle</artifactId>
Pamela Dragosh8218ae02018-09-25 09:20:32 -0400136 <version>${oparent.version}</version>
Krishnajinkada9e01a2018-08-31 20:01:30 +0900137 <scope>compile</scope>
138 </dependency>
139 </dependencies>
140 </plugin>
141 </plugins>
142 <pluginManagement>
143 <plugins>
144 <plugin>
145 <groupId>org.jacoco</groupId>
146 <artifactId>jacoco-maven-plugin</artifactId>
147 <version>${jacoco.version}</version>
148 <configuration>
Pamela Dragosh8218ae02018-09-25 09:20:32 -0400149 <!-- Note: This exclusion list should match <sonar.exclusions> property above -->
Krishnajinkada9e01a2018-08-31 20:01:30 +0900150 <excludes>
151 <exclude>**/gen/**</exclude>
152 <exclude>**/generated-sources/**</exclude>
153 <exclude>**/yang-gen/**</exclude>
154 <exclude>**/pax/**</exclude>
155 </excludes>
156 </configuration>
157 <executions>
Pamela Dragosh8218ae02018-09-25 09:20:32 -0400158 <!-- Prepares the property pointing to the JaCoCo runtime agent which is passed as VM argument when
159 Maven the Surefire plugin is executed. -->
Krishnajinkada9e01a2018-08-31 20:01:30 +0900160 <execution>
161 <id>pre-unit-test</id>
162 <goals>
163 <goal>prepare-agent</goal>
164 </goals>
165 <configuration>
166 <destFile>${sonar.jacoco.reportPath}</destFile>
167 </configuration>
168 </execution>
Pamela Dragosh8218ae02018-09-25 09:20:32 -0400169 <!-- Ensures that the code coverage report for unit tests is created after unit tests have been run. -->
Krishnajinkada9e01a2018-08-31 20:01:30 +0900170 <execution>
171 <id>post-unit-test</id>
172 <phase>test</phase>
173 <goals>
174 <goal>report</goal>
175 </goals>
176 <configuration>
177 <dataFile>${sonar.jacoco.reportPath}</dataFile>
178 </configuration>
179 </execution>
180 </executions>
181 </plugin>
Pamela Dragosh8218ae02018-09-25 09:20:32 -0400182 <plugin>
183 <groupId>org.eclipse.m2e</groupId>
184 <artifactId>lifecycle-mapping</artifactId>
185 <version>1.0.0</version>
186 <configuration>
187 <lifecycleMappingMetadata>
188 <pluginExecutions>
189 <pluginExecution>
190 <pluginExecutionFilter>
191 <groupId>org.apache.maven.plugins</groupId>
192 <artifactId>maven-checkstyle-plugin</artifactId>
193 <versionRange>2.17,)</versionRange>
194 <goals>
195 <goal>check</goal>
196 </goals>
197 </pluginExecutionFilter>
198 <action>
199 <ignore />
200 </action>
201 </pluginExecution>
202 </pluginExecutions>
203 </lifecycleMappingMetadata>
204 </configuration>
205 </plugin>
Krishnajinkada9e01a2018-08-31 20:01:30 +0900206 </plugins>
207 </pluginManagement>
208 </build>
Pamela Dragoshcb8f3f02017-08-15 11:39:16 -0400209
Pamela Dragosh7ef1ede2017-08-03 12:56:47 -0400210</project>