blob: 9663238318d22302d6634b0ac3c3bc90f71e38c1 [file] [log] [blame]
Pamela Dragosh1dccffb2018-02-16 10:29:09 -05001<!--
2 ============LICENSE_START=======================================================
3 ONAP policy
Pamela Dragosha974aa02017-02-14 19:31:53 -05004 ================================================================================
Jim Hahne9fd35a2018-02-07 17:13:32 -05005 Copyright (C) 2017-2018 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.
Pamela Dragosh1dccffb2018-02-16 10:29:09 -050018 ============LICENSE_END=========================================================
19-->
Pamela Dragosha974aa02017-02-14 19:31:53 -050020
21<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
mmisb40acf22018-07-20 15:28:25 +010022 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
23 <modelVersion>4.0.0</modelVersion>
Pamela Dragosha974aa02017-02-14 19:31:53 -050024
mmisb40acf22018-07-20 15:28:25 +010025 <parent>
liamfallon73ba8032018-07-30 10:22:27 +010026 <groupId>org.onap.policy.parent</groupId>
27 <artifactId>integration</artifactId>
28 <version>2.0.0-SNAPSHOT</version>
29 <relativePath/>
mmisb40acf22018-07-20 15:28:25 +010030 </parent>
Guo Ruijinga790f402017-08-03 09:05:02 +000031
mmisb40acf22018-07-20 15:28:25 +010032 <groupId>org.onap.policy.common</groupId>
33 <artifactId>common-modules</artifactId>
34 <version>1.3.0-SNAPSHOT</version>
Pamela Dragosha974aa02017-02-14 19:31:53 -050035
mmisb40acf22018-07-20 15:28:25 +010036 <packaging>pom</packaging>
Pamela Dragosha974aa02017-02-14 19:31:53 -050037
mmisb40acf22018-07-20 15:28:25 +010038 <name>policy-common</name>
39 <description>Common Modules for Policy-Engine in both XACML and Drools flavor</description>
Pamela Dragosha974aa02017-02-14 19:31:53 -050040
mmisb40acf22018-07-20 15:28:25 +010041 <properties>
42 <!-- Project common build settings -->
43 <maven.compiler.source>1.8</maven.compiler.source>
44 <maven.compiler.target>1.8</maven.compiler.target>
45 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Pamela Dragosh1dccffb2018-02-16 10:29:09 -050046
mmisb40acf22018-07-20 15:28:25 +010047 <!-- Project path properties -->
48 <nexusproxy>https://nexus.onap.org</nexusproxy>
49 <sitePath>/content/sites/site/${project.groupId}/${project.artifactId}/${project.version}</sitePath>
50 <releases.path>content/repositories/releases/</releases.path>
51 <snapshots.path>content/repositories/snapshots/</snapshots.path>
52 <staging.path>content/repositories/staging/</staging.path>
Pamela Dragosh1dccffb2018-02-16 10:29:09 -050053
mmisb40acf22018-07-20 15:28:25 +010054 <!-- sonar/jacoco overrides -->
55 <!-- Overriding oparent default sonar/jacoco settings Combine all
56 our reports into one file shared across sub-modules -->
57 <sonar.jacoco.reportPath>${project.basedir}/../target/code-coverage/jacoco-ut.exec</sonar.jacoco.reportPath>
58 <sonar.jacoco.itReportPath>${project.basedir}/../target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPath>
59 <sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis>
Pamela Dragosh1dccffb2018-02-16 10:29:09 -050060
mmisb40acf22018-07-20 15:28:25 +010061 <!-- Shared between policy/* project repositories - same version -->
62 <junit.version>4.12</junit.version>
63 <logback.version>1.2.3</logback.version>
64 <log4j.version>1.2.17</log4j.version>
65 <javax.persistence.version>2.1.0</javax.persistence.version>
Pamela Dragosh29c8d902018-02-19 11:37:11 -050066
mmisb40acf22018-07-20 15:28:25 +010067 <!-- Shared between policy/* project repositories - different version -->
68 <eclipselink.version>2.6.0</eclipselink.version>
69 <mariadb.jdbc.version>1.2.3</mariadb.jdbc.version>
70
71 <!-- Project common dependency versions -->
72 <javax.persistence.api.version>1.0.2</javax.persistence.api.version>
73 <h2.version>1.4.186</h2.version>
mmisb40acf22018-07-20 15:28:25 +010074 </properties>
Pamela Dragosha974aa02017-02-14 19:31:53 -050075
mmisb40acf22018-07-20 15:28:25 +010076 <modules>
77 <module>capabilities</module>
78 <module>utils-test</module>
79 <module>utils</module>
80 <module>common-logging</module>
liamfallon32c6ed62018-07-24 12:38:24 +010081 <module>common-parameters</module>
mmisb40acf22018-07-20 15:28:25 +010082 <module>integrity-audit</module>
83 <module>integrity-monitor</module>
84 <module>policy-endpoints</module>
85 </modules>
Pamela Dragosha974aa02017-02-14 19:31:53 -050086
mmisb40acf22018-07-20 15:28:25 +010087 <distributionManagement>
88 <site>
89 <id>ecomp-site</id>
90 <url>dav:${nexusproxy}${sitePath}</url>
91 </site>
92 </distributionManagement>
Pamela Dragosha974aa02017-02-14 19:31:53 -050093
mmisb40acf22018-07-20 15:28:25 +010094 <dependencyManagement>
95 <dependencies>
96 <dependency>
97 <groupId>ch.qos.logback</groupId>
98 <artifactId>logback-classic</artifactId>
99 <version>${logback.version}</version>
100 </dependency>
101 <dependency>
102 <groupId>junit</groupId>
103 <artifactId>junit</artifactId>
104 <version>${junit.version}</version>
105 </dependency>
106 <dependency>
107 <groupId>log4j</groupId>
108 <artifactId>log4j</artifactId>
109 <version>${log4j.version}</version>
110 </dependency>
111 <dependency>
112 <groupId>com.h2database</groupId>
113 <artifactId>h2</artifactId>
114 <version>${h2.version}</version>
115 <scope>test</scope>
116 </dependency>
117 <dependency>
118 <groupId>org.eclipse.persistence</groupId>
119 <artifactId>javax.persistence</artifactId>
120 <version>${javax.persistence.version}</version>
121 </dependency>
122 <dependency>
123 <groupId>org.eclipse.persistence</groupId>
124 <artifactId>eclipselink</artifactId>
125 <version>${eclipselink.version}</version>
126 </dependency>
127 </dependencies>
128 </dependencyManagement>
Pamela Dragoshf391f8a2017-11-10 19:18:46 -0500129
mmisb40acf22018-07-20 15:28:25 +0100130 <build>
131 <pluginManagement>
132 <plugins>
133 <plugin>
134 <groupId>org.jacoco</groupId>
135 <artifactId>jacoco-maven-plugin</artifactId>
136 <version>${jacoco.version}</version>
137 <configuration>
138 <!-- Note: This exclusion list should match <sonar.exclusions>
139 property above -->
140 <excludes>
141 <exclude>**/gen/**</exclude>
142 <exclude>**/generated-sources/**</exclude>
143 <exclude>**/yang-gen/**</exclude>
144 <exclude>**/pax/**</exclude>
145 </excludes>
146 </configuration>
147 <executions>
148 <!-- Prepares the property pointing to the JaCoCo
149 runtime agent which is passed as VM argument when Maven the Surefire plugin
150 is executed. -->
151 <execution>
152 <id>pre-unit-test</id>
153 <goals>
154 <goal>prepare-agent</goal>
155 </goals>
156 <configuration>
157 <destFile>${sonar.jacoco.reportPath}</destFile>
158 </configuration>
159 </execution>
160 <!-- Ensures that the code coverage report for unit
161 tests is created after unit tests have been run. -->
162 <execution>
163 <id>post-unit-test</id>
164 <phase>test</phase>
165 <goals>
166 <goal>report</goal>
167 </goals>
168 <configuration>
169 <dataFile>${sonar.jacoco.reportPath}</dataFile>
170 </configuration>
171 </execution>
172 </executions>
173 </plugin>
174 <plugin>
175 <groupId>org.eclipse.m2e</groupId>
176 <artifactId>lifecycle-mapping</artifactId>
177 <version>1.0.0</version>
178 <configuration>
179 <lifecycleMappingMetadata>
180 <pluginExecutions>
181 <pluginExecution>
182 <pluginExecutionFilter>
183 <groupId>org.apache.maven.plugins</groupId>
184 <artifactId>maven-checkstyle-plugin</artifactId>
185 <versionRange>2.17,)</versionRange>
186 <goals>
187 <goal>check</goal>
188 </goals>
189 </pluginExecutionFilter>
190 <action>
191 <ignore />
192 </action>
193 </pluginExecution>
194 </pluginExecutions>
195 </lifecycleMappingMetadata>
196 </configuration>
197 </plugin>
198 </plugins>
199 </pluginManagement>
200 <plugins>
201 <plugin>
202 <groupId>org.jacoco</groupId>
203 <artifactId>jacoco-maven-plugin</artifactId>
204 <executions>
205 <execution>
206 <id>pre-unit-test</id>
207 <goals>
208 <goal>prepare-agent</goal>
209 </goals>
210 <configuration>
211 <destFile>${sonar.jacoco.reportPath}</destFile>
212 <append>true</append>
213 </configuration>
214 </execution>
215 <execution>
216 <id>post-unit-test</id>
217 <phase>test</phase>
218 <goals>
219 <goal>report</goal>
220 </goals>
221 <configuration>
222 <dataFile>${sonar.jacoco.reportPath}</dataFile>
223 </configuration>
224 </execution>
225 </executions>
226 </plugin>
227 <plugin>
228 <groupId>org.sonatype.plugins</groupId>
229 <artifactId>nexus-staging-maven-plugin</artifactId>
230 <extensions>true</extensions>
231 <configuration>
232 <nexusUrl>${nexusproxy}</nexusUrl>
233 <stagingProfileId>176c31dfe190a</stagingProfileId>
234 <serverId>ecomp-staging</serverId>
235 </configuration>
236 </plugin>
237 <plugin>
238 <groupId>org.apache.maven.plugins</groupId>
239 <artifactId>maven-deploy-plugin</artifactId>
240 <configuration>
241 <skip />
242 </configuration>
243 </plugin>
244 <plugin>
245 <groupId>org.apache.maven.plugins</groupId>
246 <artifactId>maven-site-plugin</artifactId>
247 <dependencies>
248 <dependency>
249 <groupId>org.apache.maven.wagon</groupId>
250 <artifactId>wagon-webdav-jackrabbit</artifactId>
251 <version>2.10</version>
252 </dependency>
253 </dependencies>
254 </plugin>
255 </plugins>
256 </build>
257 <reporting>
258 <plugins>
259 <plugin>
260 <groupId>org.apache.maven.plugins</groupId>
261 <artifactId>maven-javadoc-plugin</artifactId>
262 <version>2.10.4</version>
263 <configuration>
264 <failOnError>false</failOnError>
265 <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
266 <docletArtifact>
267 <groupId>org.umlgraph</groupId>
268 <artifactId>umlgraph</artifactId>
269 <version>5.6</version>
270 </docletArtifact>
271 <additionalparam>-views</additionalparam>
272 <useStandardDocletOptions>true</useStandardDocletOptions>
273 </configuration>
274 </plugin>
275 </plugins>
276 </reporting>
Pamela Dragosha974aa02017-02-14 19:31:53 -0500277</project>