blob: 5d32039e5242515da5de78404076b9a45bf2e4d7 [file] [log] [blame]
Pamela Dragosh0e16acf2017-02-14 19:45:48 -05001<!--
2 ============LICENSE_START=======================================================
3 ECOMP Policy Engine - Drools PDP
4 ================================================================================
5 Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6 ================================================================================
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
10
11 http://www.apache.org/licenses/LICENSE-2.0
12
13 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.
18 ============LICENSE_END=========================================================
19 -->
20
21<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
22 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>
24
25 <groupId>org.openecomp.policy.drools-pdp</groupId>
26 <artifactId>drools-pdp</artifactId>
Pamela Dragosh998f0b32017-03-10 14:31:17 -050027 <version>1.1.0-SNAPSHOT</version>
Pamela Dragosh0e16acf2017-02-14 19:45:48 -050028 <packaging>pom</packaging>
Pamela Dragosh8ddd73a2017-04-28 10:50:14 -040029 <name>Policy Engine - Drools PDP</name>
Pamela Dragosh0e16acf2017-02-14 19:45:48 -050030
31 <description>The ECOMP Policy Engine drools-based PDP Project</description>
32
33 <properties>
34 <maven.compiler.source>1.8</maven.compiler.source>
35 <maven.compiler.target>1.8</maven.compiler.target>
36
Ralph Straubs5bd9ff42017-04-21 04:23:55 -050037 <swagger-maven-plugin-version>3.1.4</swagger-maven-plugin-version>
38
Pamela Dragosh0e16acf2017-02-14 19:45:48 -050039 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
40 <project.source.version>1.8</project.source.version>
41 <project.target.version>1.8</project.target.version>
Pamela Dragosh998f0b32017-03-10 14:31:17 -050042 <common-modules.version>1.1.0-SNAPSHOT</common-modules.version>
Ralph Straubs5bd9ff42017-04-21 04:23:55 -050043 <dmaap.version>0.2.12</dmaap.version>
44 <cambria.version>0.0.1</cambria.version>
45 <jersey.version>2.22.2</jersey.version>
46 <jackson.version>2.8.4</jackson.version>
Pamela Dragosh0e16acf2017-02-14 19:45:48 -050047
48 <sonar.language>java</sonar.language>
49 <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
50 <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
51 <sonar.jacoco.reportPath>${project.build.directory}/coverage-reports/jacoco.exec</sonar.jacoco.reportPath>
52 <sonar.jacoco.itReportPath>/opt/app/jacoco-it.exec</sonar.jacoco.itReportPath>
53 <sonar.jacoco.reportMissing.force.zero>true</sonar.jacoco.reportMissing.force.zero>
Pamela Dragoshe8bdb512017-03-30 09:46:40 -040054 <nexusproxy>https://nexus.onap.org</nexusproxy>
Anaël Closson8f7e5de2017-04-12 11:09:25 +020055 <sitePath>/content/sites/site/${project.groupId}/${project.artifactId}/${project.version}</sitePath>
56 <releases.path>content/repositories/releases/</releases.path>
57 <snapshots.path>content/repositories/snapshots/</snapshots.path>
58 <staging.path>content/repositories/staging/</staging.path>
Pamela Dragosh0e16acf2017-02-14 19:45:48 -050059 </properties>
60
61 <modules>
62 <module>policy-utils</module>
63 <module>policy-core</module>
64 <module>policy-endpoints</module>
65 <module>policy-management</module>
66 <module>policy-persistence</module>
67 <module>policy-healthcheck</module>
68 <module>packages</module>
69 </modules>
70
71 <repositories>
72 <repository>
Pamela Dragosh3273b612017-05-03 09:22:58 -040073 <id>ecomp-snapshots</id>
74 <name>OpenECOMP Snapshot Repository</name>
75 <url>${nexusproxy}/${snapshots.path}</url>
Pamela Dragosh0e16acf2017-02-14 19:45:48 -050076 </repository>
Pamela Dragosh2f7c70d2017-02-15 16:09:00 -050077 <repository>
78 <id>ecomp-releases</id>
79 <name>OpenECOMP Release Repository</name>
Anaël Closson8f7e5de2017-04-12 11:09:25 +020080 <url>${nexusproxy}/${releases.path}</url>
Pamela Dragosh2f7c70d2017-02-15 16:09:00 -050081 </repository>
82 <repository>
83 <id>ecomp-staging</id>
84 <name>OpenECOMP Staging Repository</name>
Anaël Closson8f7e5de2017-04-12 11:09:25 +020085 <url>${nexusproxy}/${staging.path}</url>
Pamela Dragosh2f7c70d2017-02-15 16:09:00 -050086 </repository>
Pamela Dragosh0e16acf2017-02-14 19:45:48 -050087 </repositories>
88
Pamela Dragosh2f7c70d2017-02-15 16:09:00 -050089 <distributionManagement>
90 <repository>
91 <id>ecomp-releases</id>
92 <name>OpenECOMP Release Repository</name>
Anaël Closson8f7e5de2017-04-12 11:09:25 +020093 <url>${nexusproxy}/${releases.path}</url>
Pamela Dragosh2f7c70d2017-02-15 16:09:00 -050094 </repository>
95 <snapshotRepository>
96 <id>ecomp-snapshots</id>
97 <name>OpenECOMP Snapshot Repository</name>
Anaël Closson8f7e5de2017-04-12 11:09:25 +020098 <url>${nexusproxy}/${snapshots.path}</url>
Pamela Dragosh2f7c70d2017-02-15 16:09:00 -050099 </snapshotRepository>
100 <site>
Pamela Dragoshb67f4172017-04-10 10:24:23 -0400101 <id>ecomp-site</id>
102 <url>dav:${nexusproxy}${sitePath}</url>
Pamela Dragosh2f7c70d2017-02-15 16:09:00 -0500103 </site>
104 </distributionManagement>
105
Pamela Dragosh0e16acf2017-02-14 19:45:48 -0500106 <dependencies>
107
108 </dependencies>
Ralph Straubs5bd9ff42017-04-21 04:23:55 -0500109 <dependencyManagement>
110 <dependencies>
111 <dependency>
112 <groupId>com.google.guava</groupId>
113 <artifactId>guava</artifactId>
114 <version>10.0.1</version>
115 </dependency>
116 <dependency>
117 <groupId>javax.ws.rs</groupId>
118 <artifactId>javax.ws.rs-api</artifactId>
119 <version>2.0.1</version>
120 </dependency>
121 <dependency>
122 <groupId>org.glassfish.hk2.external</groupId>
123 <artifactId>javax.inject</artifactId>
124 <version>2.4.0-b31</version>
125 </dependency>
126 <dependency>
127 <groupId>com.fasterxml.jackson.jaxrs</groupId>
128 <artifactId>jackson-jaxrs-base</artifactId>
129 <version>${jackson.version}</version>
130 </dependency>
131 <dependency>
132 <groupId>com.fasterxml.jackson.jaxrs</groupId>
133 <artifactId>jackson-jaxrs-json-provider</artifactId>
134 <version>${jackson.version}</version>
135 </dependency>
136 <dependency>
137 <groupId>com.fasterxml.jackson.dataformat</groupId>
138 <artifactId>jackson-dataformat-xml</artifactId>
139 <version>${jackson.version}</version>
140 </dependency>
141 <dependency>
142 <groupId>com.fasterxml.jackson.dataformat</groupId>
143 <artifactId>jackson-dataformat-yaml</artifactId>
144 <version>${jackson.version}</version>
145 </dependency>
146 <dependency>
147 <groupId>com.fasterxml.jackson.datatype</groupId>
148 <artifactId>jackson-datatype-joda</artifactId>
149 <version>${jackson.version}</version>
150 </dependency>
151 <dependency>
152 <groupId>org.glassfish.jersey.containers</groupId>
153 <artifactId>jersey-common</artifactId>
154 <version>${jersey.version}</version>
155 </dependency>
156 <dependency>
157 <groupId>org.glassfish.jersey.containers</groupId>
158 <artifactId>jersey-container-servlet-core</artifactId>
159 <version>${jersey.version}</version>
160 </dependency>
161 </dependencies>
162 </dependencyManagement>
163
Pamela Dragosh0e16acf2017-02-14 19:45:48 -0500164 <build>
165 <plugins>
166 <plugin>
Pamela Dragosha5fd1fb2017-02-17 15:31:11 -0500167 <groupId>org.sonatype.plugins</groupId>
168 <artifactId>nexus-staging-maven-plugin</artifactId>
169 <version>1.6.7</version>
170 <extensions>true</extensions>
171 <configuration>
172 <nexusUrl>${nexusproxy}</nexusUrl>
173 <stagingProfileId>176c31dfe190a</stagingProfileId>
174 <serverId>ecomp-staging</serverId>
175 </configuration>
176 </plugin>
177 <plugin>
Ralph Straubs5bd9ff42017-04-21 04:23:55 -0500178 <groupId>com.github.kongchen</groupId>
179 <artifactId>swagger-maven-plugin</artifactId>
180 <version>${swagger-maven-plugin-version}</version>
181 <configuration>
182 <apiSources>
183 <apiSource>
184 <springmvc>false</springmvc>
185 <locations>
186 <location>
187 org.openecomp.policy.drools.core.DroolsPDPIntegrityMonitor
188 </location>
189 </locations>
190 <info>
191 <title>Drools PDP</title>
192 <version>1.0.0</version>
193 </info>
194 <swaggerDirectory>${project.build.directory}/swagger/integrityMonitor</swaggerDirectory>
195 <swaggerFileName>swagger</swaggerFileName>
196 <attachSwaggerArtifact>true</attachSwaggerArtifact>
197 </apiSource>
198 </apiSources>
199 </configuration>
200 <dependencies>
201 <!-- Adding dependency to swagger-hibernate-validations to enable the BeanValidator as a custom
202 model converter -->
203 <dependency>
204 <groupId>io.swagger</groupId>
205 <artifactId>swagger-hibernate-validations</artifactId>
206 <version>1.5.6</version>
207 </dependency>
208 <!-- https://mvnrepository.com/artifact/org.apache.commons/commons-lang3 -->
209 <dependency>
210 <groupId>org.apache.commons</groupId>
211 <artifactId>commons-lang3</artifactId>
212 <version>3.4</version>
213 </dependency>
214 </dependencies>
215 <executions>
216 <execution>
217 <phase>compile</phase>
218 <goals>
219 <goal>generate</goal>
220 </goals>
221 </execution>
222 </executions>
223 </plugin>
224 <plugin>
Pamela Dragosh0e16acf2017-02-14 19:45:48 -0500225 <groupId>org.apache.maven.plugins</groupId>
226 <artifactId>maven-deploy-plugin</artifactId>
227 <version>2.8</version> <!-- This version supports the "deployAtEnd" parameter -->
Pamela Dragosha5fd1fb2017-02-17 15:31:11 -0500228 <configuration>
229 <skip />
230 </configuration>
Pamela Dragosh0e16acf2017-02-14 19:45:48 -0500231 </plugin>
232 <plugin>
233 <groupId>org.apache.maven.plugins</groupId>
234 <artifactId>maven-compiler-plugin</artifactId>
235 <version>3.0</version>
236 <configuration>
237 <encoding>${project.encoding}</encoding>
238 <source>${project.source.version}</source>
239 <target>${project.target.version}</target>
240 </configuration>
241 </plugin>
242 <plugin>
243 <groupId>org.apache.maven.plugins</groupId>
244 <artifactId>maven-resources-plugin</artifactId>
245 <version>2.6</version>
246 <configuration>
247 <encoding>${project.encoding}</encoding>
248 </configuration>
249 </plugin>
250 <!--
251 license plugin
252 Run
253 mvn clean
254 before running from the command line
255 mvn license:update-file-header
256 -->
257 <plugin>
258 <groupId>org.codehaus.mojo</groupId>
259 <artifactId>license-maven-plugin</artifactId>
260 <version>1.9</version>
261 <configuration>
262 <extraExtensions>
263 <!-- Used to add or change the header style <fileTypeYouAreMapping>
264 fileTypeMappedInto </fileTypeYouAreMapping> -->
265 <drl>java</drl>
266 <ccf>properties</ccf>
267
268 <!-- Because the typical sql comment type confuses the update algorithm -->
269 <sql>java</sql>
270 </extraExtensions>
271 <licenseName>apache_v2</licenseName>
272
273 <inceptionYear>2017</inceptionYear>
274 <organizationName>AT&amp;T Intellectual Property. All rights reserved.</organizationName>
275
276 <!-- Once you have established the tags and delimiter, they cannot be
277 changed -->
278 <processStartTag>============LICENSE_START=======================================================</processStartTag>
279 <processEndTag>============LICENSE_END=========================================================</processEndTag>
280 <sectionDelimiter>================================================================================</sectionDelimiter>
281 <addJavaLicenseAfterPackage>false</addJavaLicenseAfterPackage>
282 <canUpdateCopyright>true</canUpdateCopyright>
283 <canUpdateDescription>true</canUpdateDescription>
284 <canUpdateLicense>true</canUpdateLicense>
285 <emptyLineAfterHeader>true</emptyLineAfterHeader>
286 <roots>
287 <!-- Default is src, target/generated-sources, target/processed-sources -->
288
289 <!-- Everything except the files in the excludes section -->
290 <root>/</root>
291 </roots>
292 <excludes>
293 <!-- Files which are to be excluded. The pom.xml is excluded because
294 the start/end tags and the delimiters are in the body of the file. This confuses
295 the algorithm. So, this file must be manually updated with a license header. -->
296 <exclude>pom.xml</exclude>
297 </excludes>
298 </configuration>
299 </plugin>
Pamela Dragoshb67f4172017-04-10 10:24:23 -0400300 <plugin>
301 <groupId>org.apache.maven.plugins</groupId>
302 <artifactId>maven-site-plugin</artifactId>
303 <version>3.6</version>
304 <dependencies>
305 <dependency>
306 <groupId>org.apache.maven.wagon</groupId>
307 <artifactId>wagon-webdav-jackrabbit</artifactId>
308 <version>2.10</version>
309 </dependency>
310 </dependencies>
311 </plugin>
Pamela Dragosh0e16acf2017-02-14 19:45:48 -0500312 </plugins>
313 <pluginManagement>
314 <plugins>
315 <plugin>
316 <groupId>org.jacoco</groupId>
317 <artifactId>jacoco-maven-plugin</artifactId>
318 <version>0.7.5.201505241946</version>
319 <configuration>
320 <dumpOnExit>true</dumpOnExit>
321 <includes>
322 <include>org.openecomp.*</include>
323 </includes>
324 </configuration>
325 <executions>
326 <execution>
327 <id>jacoco-initialize-unit-tests</id>
328 <goals>
329 <goal>prepare-agent</goal>
330 </goals>
331 <configuration>
332 <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
333 </configuration>
334 </execution>
335 </executions>
336 </plugin>
337 </plugins>
338 </pluginManagement>
339 </build>
Pamela Dragoshb67f4172017-04-10 10:24:23 -0400340 <reporting>
341 <plugins>
342 <plugin>
343 <groupId>org.apache.maven.plugins</groupId>
344 <artifactId>maven-javadoc-plugin</artifactId>
345 <version>2.10.4</version>
346 <configuration>
347 <failOnError>false</failOnError>
348 <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
349 <docletArtifact>
350 <groupId>org.umlgraph</groupId>
351 <artifactId>umlgraph</artifactId>
352 <version>5.6</version>
353 </docletArtifact>
354 <additionalparam>-views</additionalparam>
355 <useStandardDocletOptions>true</useStandardDocletOptions>
356 </configuration>
357 </plugin>
358 </plugins>
359 </reporting>
360
Pamela Dragosh0e16acf2017-02-14 19:45:48 -0500361</project>