blob: 14f900c80ea4de677df6100bfdda5389f11f064f [file] [log] [blame]
Jim Hahn4ec725e2019-02-06 13:14:57 -05001<!--
2 ============LICENSE_START=======================================================
3 ONAP policy
Pamela Dragosha974aa02017-02-14 19:31:53 -05004 ================================================================================
Jim Hahn4ec725e2019-02-06 13:14:57 -05005 Copyright (C) 2017-2019 AT&T Intellectual Property. All rights reserved.
Pamela Dragosha974aa02017-02-14 19:31:53 -05006 ================================================================================
7 Licensed under the Apache License, Version 2.0 (the "License");
8 you may not use this file except in compliance with the License.
9 You may obtain a copy of the License at
Pamela Dragosh1dccffb2018-02-16 10:29:09 -050010
Pamela Dragosha974aa02017-02-14 19:31:53 -050011 http://www.apache.org/licenses/LICENSE-2.0
Pamela Dragosh1dccffb2018-02-16 10:29:09 -050012
Pamela Dragosha974aa02017-02-14 19:31:53 -050013 Unless required by applicable law or agreed to in writing, software
14 distributed under the License is distributed on an "AS IS" BASIS,
15 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 See the License for the specific language governing permissions and
17 limitations under the License.
Jim Hahn4ec725e2019-02-06 13:14:57 -050018 ============LICENSE_END=========================================================
Pamela Dragosh1dccffb2018-02-16 10:29:09 -050019-->
Pamela Dragosha974aa02017-02-14 19:31:53 -050020
liamfallon2f72ab62018-10-31 15:23:33 +000021<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/maven-v4_0_0.xsd">
mmisb40acf22018-07-20 15:28:25 +010022 <modelVersion>4.0.0</modelVersion>
Pamela Dragosha974aa02017-02-14 19:31:53 -050023
mmisb40acf22018-07-20 15:28:25 +010024 <parent>
liamfallon73ba8032018-07-30 10:22:27 +010025 <groupId>org.onap.policy.parent</groupId>
26 <artifactId>integration</artifactId>
Pamela Dragosh31e75e42019-06-20 16:07:38 -040027 <version>3.0.0</version>
liamfalloncf282dd2018-09-07 13:36:41 +010028 <relativePath />
mmisb40acf22018-07-20 15:28:25 +010029 </parent>
Guo Ruijinga790f402017-08-03 09:05:02 +000030
mmisb40acf22018-07-20 15:28:25 +010031 <groupId>org.onap.policy.common</groupId>
32 <artifactId>common-modules</artifactId>
Pamela Dragosh62463da2019-06-21 09:08:00 -040033 <version>1.5.1-SNAPSHOT</version>
Pamela Dragosha974aa02017-02-14 19:31:53 -050034
mmisb40acf22018-07-20 15:28:25 +010035 <packaging>pom</packaging>
Pamela Dragosha974aa02017-02-14 19:31:53 -050036
mmisb40acf22018-07-20 15:28:25 +010037 <name>policy-common</name>
38 <description>Common Modules for Policy-Engine in both XACML and Drools flavor</description>
Pamela Dragosha974aa02017-02-14 19:31:53 -050039
mmisb40acf22018-07-20 15:28:25 +010040 <properties>
41 <!-- Project common build settings -->
42 <maven.compiler.source>1.8</maven.compiler.source>
43 <maven.compiler.target>1.8</maven.compiler.target>
44 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Pamela Dragosh1dccffb2018-02-16 10:29:09 -050045
mmisb40acf22018-07-20 15:28:25 +010046 <!-- Project path properties -->
47 <nexusproxy>https://nexus.onap.org</nexusproxy>
48 <sitePath>/content/sites/site/${project.groupId}/${project.artifactId}/${project.version}</sitePath>
49 <releases.path>content/repositories/releases/</releases.path>
50 <snapshots.path>content/repositories/snapshots/</snapshots.path>
51 <staging.path>content/repositories/staging/</staging.path>
Pamela Dragosh1dccffb2018-02-16 10:29:09 -050052
mmisb40acf22018-07-20 15:28:25 +010053 <!-- sonar/jacoco overrides -->
Jim Hahn4ec725e2019-02-06 13:14:57 -050054 <!-- Overriding oparent default sonar/jacoco settings Combine all
mmisb40acf22018-07-20 15:28:25 +010055 our reports into one file shared across sub-modules -->
56 <sonar.jacoco.reportPath>${project.basedir}/../target/code-coverage/jacoco-ut.exec</sonar.jacoco.reportPath>
57 <sonar.jacoco.itReportPath>${project.basedir}/../target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPath>
58 <sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis>
Pamela Dragosh1dccffb2018-02-16 10:29:09 -050059
mmisb40acf22018-07-20 15:28:25 +010060 <!-- Project common dependency versions -->
liamfalloncf282dd2018-09-07 13:36:41 +010061 <commons-lang3.version>3.4</commons-lang3.version>
Pamela Dragoshb7e2a772019-03-20 01:04:47 +000062 <jersey.version>2.25.1</jersey.version>
mmisb40acf22018-07-20 15:28:25 +010063 </properties>
Pamela Dragosha974aa02017-02-14 19:31:53 -050064
mmisb40acf22018-07-20 15:28:25 +010065 <modules>
66 <module>capabilities</module>
67 <module>utils-test</module>
68 <module>utils</module>
Jim Hahn4ec725e2019-02-06 13:14:57 -050069 <module>gson</module>
mmisb40acf22018-07-20 15:28:25 +010070 <module>common-logging</module>
liamfallon32c6ed62018-07-24 12:38:24 +010071 <module>common-parameters</module>
mmisb40acf22018-07-20 15:28:25 +010072 <module>integrity-audit</module>
73 <module>integrity-monitor</module>
74 <module>policy-endpoints</module>
75 </modules>
Pamela Dragosha974aa02017-02-14 19:31:53 -050076
mmisb40acf22018-07-20 15:28:25 +010077 <dependencyManagement>
78 <dependencies>
79 <dependency>
liamfalloncf282dd2018-09-07 13:36:41 +010080 <groupId>org.apache.commons</groupId>
81 <artifactId>commons-lang3</artifactId>
82 <version>${commons-lang3.version}</version>
83 </dependency>
mmisb40acf22018-07-20 15:28:25 +010084 </dependencies>
85 </dependencyManagement>
Pamela Dragoshf391f8a2017-11-10 19:18:46 -050086
mmisb40acf22018-07-20 15:28:25 +010087 <build>
88 <pluginManagement>
89 <plugins>
90 <plugin>
91 <groupId>org.jacoco</groupId>
92 <artifactId>jacoco-maven-plugin</artifactId>
93 <version>${jacoco.version}</version>
94 <configuration>
Jim Hahn4ec725e2019-02-06 13:14:57 -050095 <!-- Note: This exclusion list should match <sonar.exclusions>
mmisb40acf22018-07-20 15:28:25 +010096 property above -->
97 <excludes>
98 <exclude>**/gen/**</exclude>
99 <exclude>**/generated-sources/**</exclude>
100 <exclude>**/yang-gen/**</exclude>
101 <exclude>**/pax/**</exclude>
102 </excludes>
103 </configuration>
104 <executions>
Jim Hahn4ec725e2019-02-06 13:14:57 -0500105 <!-- Prepares the property pointing to the JaCoCo
106 runtime agent which is passed as VM argument when Maven the Surefire plugin
mmisb40acf22018-07-20 15:28:25 +0100107 is executed. -->
108 <execution>
109 <id>pre-unit-test</id>
110 <goals>
111 <goal>prepare-agent</goal>
112 </goals>
113 <configuration>
114 <destFile>${sonar.jacoco.reportPath}</destFile>
115 </configuration>
116 </execution>
Jim Hahn4ec725e2019-02-06 13:14:57 -0500117 <!-- Ensures that the code coverage report for unit
mmisb40acf22018-07-20 15:28:25 +0100118 tests is created after unit tests have been run. -->
119 <execution>
120 <id>post-unit-test</id>
121 <phase>test</phase>
122 <goals>
123 <goal>report</goal>
124 </goals>
125 <configuration>
126 <dataFile>${sonar.jacoco.reportPath}</dataFile>
127 </configuration>
128 </execution>
129 </executions>
130 </plugin>
131 <plugin>
132 <groupId>org.eclipse.m2e</groupId>
133 <artifactId>lifecycle-mapping</artifactId>
134 <version>1.0.0</version>
135 <configuration>
136 <lifecycleMappingMetadata>
137 <pluginExecutions>
138 <pluginExecution>
139 <pluginExecutionFilter>
140 <groupId>org.apache.maven.plugins</groupId>
141 <artifactId>maven-checkstyle-plugin</artifactId>
142 <versionRange>2.17,)</versionRange>
143 <goals>
144 <goal>check</goal>
145 </goals>
146 </pluginExecutionFilter>
147 <action>
148 <ignore />
149 </action>
150 </pluginExecution>
151 </pluginExecutions>
152 </lifecycleMappingMetadata>
153 </configuration>
154 </plugin>
155 </plugins>
156 </pluginManagement>
157 <plugins>
158 <plugin>
159 <groupId>org.jacoco</groupId>
160 <artifactId>jacoco-maven-plugin</artifactId>
161 <executions>
162 <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 <append>true</append>
170 </configuration>
171 </execution>
172 <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>
184 <plugin>
mmisb40acf22018-07-20 15:28:25 +0100185 <groupId>org.apache.maven.plugins</groupId>
186 <artifactId>maven-deploy-plugin</artifactId>
187 <configuration>
188 <skip />
189 </configuration>
190 </plugin>
191 <plugin>
192 <groupId>org.apache.maven.plugins</groupId>
193 <artifactId>maven-site-plugin</artifactId>
194 <dependencies>
195 <dependency>
196 <groupId>org.apache.maven.wagon</groupId>
197 <artifactId>wagon-webdav-jackrabbit</artifactId>
198 <version>2.10</version>
199 </dependency>
200 </dependencies>
201 </plugin>
Pamela Dragoshf133be22018-08-22 14:02:14 -0400202 <plugin>
liamfalloncf282dd2018-09-07 13:36:41 +0100203 <artifactId>maven-checkstyle-plugin</artifactId>
204 <executions>
205 <execution>
206 <id>onap-java-style</id>
207 <goals>
208 <goal>check</goal>
209 </goals>
210 <phase>process-sources</phase>
211 <configuration>
Pamela Dragoshf133be22018-08-22 14:02:14 -0400212 <!-- Use Google Java Style Guide:
213 https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml
214 with minor changes -->
liamfalloncf282dd2018-09-07 13:36:41 +0100215 <configLocation>onap-checkstyle/onap-java-style.xml</configLocation>
Pamela Dragoshf133be22018-08-22 14:02:14 -0400216 <!-- <sourceDirectory> is needed so that checkstyle ignores the generated sources directory -->
Pamela Dragoshaf5e28c2018-09-21 12:48:29 -0400217 <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
liamfalloncf282dd2018-09-07 13:36:41 +0100218 <includeResources>true</includeResources>
219 <includeTestSourceDirectory>true</includeTestSourceDirectory>
220 <includeTestResources>true</includeTestResources>
221 <excludes>
222 </excludes>
liamfalloncf282dd2018-09-07 13:36:41 +0100223 <consoleOutput>true</consoleOutput>
Pamela Dragoshaf5e28c2018-09-21 12:48:29 -0400224 <failsOnViolation>true</failsOnViolation>
liamfalloncf282dd2018-09-07 13:36:41 +0100225 <violationSeverity>warning</violationSeverity>
226 </configuration>
227 </execution>
228 </executions>
229 <dependencies>
230 <dependency>
231 <groupId>org.onap.oparent</groupId>
232 <artifactId>checkstyle</artifactId>
233 <version>${oparent.version}</version>
234 <scope>compile</scope>
235 </dependency>
236 </dependencies>
Pamela Dragoshf133be22018-08-22 14:02:14 -0400237 </plugin>
mmisb40acf22018-07-20 15:28:25 +0100238 </plugins>
239 </build>
240 <reporting>
241 <plugins>
242 <plugin>
243 <groupId>org.apache.maven.plugins</groupId>
244 <artifactId>maven-javadoc-plugin</artifactId>
245 <version>2.10.4</version>
246 <configuration>
247 <failOnError>false</failOnError>
248 <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
249 <docletArtifact>
250 <groupId>org.umlgraph</groupId>
251 <artifactId>umlgraph</artifactId>
252 <version>5.6</version>
253 </docletArtifact>
254 <additionalparam>-views</additionalparam>
255 <useStandardDocletOptions>true</useStandardDocletOptions>
256 </configuration>
257 </plugin>
258 </plugins>
259 </reporting>
Pamela Dragosha974aa02017-02-14 19:31:53 -0500260</project>