blob: 6b6b4721b4bdaca3845e2c19ab18aa8cd3cb401f [file] [log] [blame]
Pamela Dragosh0e16acf2017-02-14 19:45:48 -05001<!--
2 ============LICENSE_START=======================================================
Guo Ruijing6abeb292017-07-28 08:23:01 +00003 ONAP Policy Engine - Drools PDP
Pamela Dragosh0e16acf2017-02-14 19:45:48 -05004 ================================================================================
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
Guo Ruijing6abeb292017-07-28 08:23:01 +000025 <groupId>org.onap.policy.drools-pdp</groupId>
Pamela Dragosh0e16acf2017-02-14 19:45:48 -050026 <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
Guo Ruijing6abeb292017-07-28 08:23:01 +000031 <description>The ONAP Policy Engine drools-based PDP Project</description>
Pamela Dragosh0e16acf2017-02-14 19:45:48 -050032
33 <properties>
34 <maven.compiler.source>1.8</maven.compiler.source>
35 <maven.compiler.target>1.8</maven.compiler.target>
Pamela Dragosh0e16acf2017-02-14 19:45:48 -050036 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
37 <project.source.version>1.8</project.source.version>
38 <project.target.version>1.8</project.target.version>
Pamela Dragosh998f0b32017-03-10 14:31:17 -050039 <common-modules.version>1.1.0-SNAPSHOT</common-modules.version>
Ralph Straubs5bd9ff42017-04-21 04:23:55 -050040 <dmaap.version>0.2.12</dmaap.version>
41 <cambria.version>0.0.1</cambria.version>
42 <jersey.version>2.22.2</jersey.version>
Jorge Hernandez881c32e2017-05-25 16:44:15 -050043 <jersey.swagger.version>1.5.13</jersey.swagger.version>
Ralph Straubs5bd9ff42017-04-21 04:23:55 -050044 <jackson.version>2.8.4</jackson.version>
Jorge Hernandez8f61e182017-06-22 17:17:28 -050045 <http.client.version>4.5</http.client.version>
46 <http.core.version>4.4.4</http.core.version>
47 <logback.version>1.2.3</logback.version>
Jorge Hernandez1550fa82017-07-26 19:00:54 -050048 <sonar.plugin.version>3.2</sonar.plugin.version>
49 <jacoco.plugin.version>0.7.9</jacoco.plugin.version>
Pamela Dragosh0e16acf2017-02-14 19:45:48 -050050
51 <sonar.language>java</sonar.language>
52 <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
53 <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
54 <sonar.jacoco.reportPath>${project.build.directory}/coverage-reports/jacoco.exec</sonar.jacoco.reportPath>
Jorge Hernandez1550fa82017-07-26 19:00:54 -050055 <sonar.jacoco.reportMissing.force.zero>false</sonar.jacoco.reportMissing.force.zero>
56 <sonar.projectVersion>${project.version}</sonar.projectVersion>
57
Pamela Dragoshe8bdb512017-03-30 09:46:40 -040058 <nexusproxy>https://nexus.onap.org</nexusproxy>
Anaël Closson8f7e5de2017-04-12 11:09:25 +020059 <sitePath>/content/sites/site/${project.groupId}/${project.artifactId}/${project.version}</sitePath>
60 <releases.path>content/repositories/releases/</releases.path>
61 <snapshots.path>content/repositories/snapshots/</snapshots.path>
62 <staging.path>content/repositories/staging/</staging.path>
Pamela Dragosh0e16acf2017-02-14 19:45:48 -050063 </properties>
64
65 <modules>
66 <module>policy-utils</module>
67 <module>policy-core</module>
68 <module>policy-endpoints</module>
69 <module>policy-management</module>
Jorge Hernandez564f8182017-06-30 13:29:03 -050070 <module>feature-healthcheck</module>
Jorge Hernandez9e69cc22017-06-26 08:05:30 -050071 <module>feature-eelf</module>
Pamela Dragosh0e16acf2017-02-14 19:45:48 -050072 <module>packages</module>
73 </modules>
74
75 <repositories>
76 <repository>
Jorge Hernandezef5969b2017-07-31 15:07:43 -050077 <id>ecomp-snapshots</id>
Guo Ruijing6abeb292017-07-28 08:23:01 +000078 <name>ONAP Snapshot Repository</name>
Pamela Dragosh3273b612017-05-03 09:22:58 -040079 <url>${nexusproxy}/${snapshots.path}</url>
Pamela Dragosh0e16acf2017-02-14 19:45:48 -050080 </repository>
Pamela Dragosh2f7c70d2017-02-15 16:09:00 -050081 <repository>
Jorge Hernandezef5969b2017-07-31 15:07:43 -050082 <id>ecomp-releases</id>
Guo Ruijing6abeb292017-07-28 08:23:01 +000083 <name>ONAP Release Repository</name>
Anaël Closson8f7e5de2017-04-12 11:09:25 +020084 <url>${nexusproxy}/${releases.path}</url>
Pamela Dragosh2f7c70d2017-02-15 16:09:00 -050085 </repository>
86 <repository>
Jorge Hernandezef5969b2017-07-31 15:07:43 -050087 <id>ecomp-staging</id>
Guo Ruijing6abeb292017-07-28 08:23:01 +000088 <name>ONAP Staging Repository</name>
Anaël Closson8f7e5de2017-04-12 11:09:25 +020089 <url>${nexusproxy}/${staging.path}</url>
Pamela Dragosh2f7c70d2017-02-15 16:09:00 -050090 </repository>
Pamela Dragosh0e16acf2017-02-14 19:45:48 -050091 </repositories>
92
Pamela Dragosh2f7c70d2017-02-15 16:09:00 -050093 <distributionManagement>
94 <repository>
Jorge Hernandez41ca2182017-07-31 15:35:01 -050095 <id>ecomp-releases</id>
Guo Ruijing6abeb292017-07-28 08:23:01 +000096 <name>ONAP Release Repository</name>
Anaël Closson8f7e5de2017-04-12 11:09:25 +020097 <url>${nexusproxy}/${releases.path}</url>
Pamela Dragosh2f7c70d2017-02-15 16:09:00 -050098 </repository>
99 <snapshotRepository>
Jorge Hernandez41ca2182017-07-31 15:35:01 -0500100 <id>ecomp-snapshots</id>
Guo Ruijing6abeb292017-07-28 08:23:01 +0000101 <name>ONAP Snapshot Repository</name>
Anaël Closson8f7e5de2017-04-12 11:09:25 +0200102 <url>${nexusproxy}/${snapshots.path}</url>
Pamela Dragosh2f7c70d2017-02-15 16:09:00 -0500103 </snapshotRepository>
104 <site>
Jorge Hernandez41ca2182017-07-31 15:35:01 -0500105 <id>ecomp-site</id>
Pamela Dragoshb67f4172017-04-10 10:24:23 -0400106 <url>dav:${nexusproxy}${sitePath}</url>
Pamela Dragosh2f7c70d2017-02-15 16:09:00 -0500107 </site>
108 </distributionManagement>
109
Jorge Hernandez8f61e182017-06-22 17:17:28 -0500110 <dependencies/>
Pamela Dragosh0e16acf2017-02-14 19:45:48 -0500111
Ralph Straubs5bd9ff42017-04-21 04:23:55 -0500112 <dependencyManagement>
113 <dependencies>
114 <dependency>
115 <groupId>com.google.guava</groupId>
116 <artifactId>guava</artifactId>
Ralph Straubs8ce73e22017-07-17 10:16:44 -0500117 <version>16.0.1</version>
Ralph Straubs5bd9ff42017-04-21 04:23:55 -0500118 </dependency>
119 <dependency>
120 <groupId>javax.ws.rs</groupId>
121 <artifactId>javax.ws.rs-api</artifactId>
122 <version>2.0.1</version>
123 </dependency>
124 <dependency>
125 <groupId>org.glassfish.hk2.external</groupId>
126 <artifactId>javax.inject</artifactId>
127 <version>2.4.0-b31</version>
128 </dependency>
129 <dependency>
130 <groupId>com.fasterxml.jackson.jaxrs</groupId>
131 <artifactId>jackson-jaxrs-base</artifactId>
132 <version>${jackson.version}</version>
133 </dependency>
134 <dependency>
135 <groupId>com.fasterxml.jackson.jaxrs</groupId>
136 <artifactId>jackson-jaxrs-json-provider</artifactId>
137 <version>${jackson.version}</version>
138 </dependency>
139 <dependency>
140 <groupId>com.fasterxml.jackson.dataformat</groupId>
141 <artifactId>jackson-dataformat-xml</artifactId>
142 <version>${jackson.version}</version>
143 </dependency>
144 <dependency>
145 <groupId>com.fasterxml.jackson.dataformat</groupId>
146 <artifactId>jackson-dataformat-yaml</artifactId>
147 <version>${jackson.version}</version>
148 </dependency>
149 <dependency>
150 <groupId>com.fasterxml.jackson.datatype</groupId>
151 <artifactId>jackson-datatype-joda</artifactId>
152 <version>${jackson.version}</version>
153 </dependency>
154 <dependency>
155 <groupId>org.glassfish.jersey.containers</groupId>
156 <artifactId>jersey-common</artifactId>
157 <version>${jersey.version}</version>
158 </dependency>
159 <dependency>
160 <groupId>org.glassfish.jersey.containers</groupId>
161 <artifactId>jersey-container-servlet-core</artifactId>
162 <version>${jersey.version}</version>
163 </dependency>
Jorge Hernandez881c32e2017-05-25 16:44:15 -0500164 <dependency>
165 <groupId>io.swagger</groupId>
166 <artifactId>swagger-jersey2-jaxrs</artifactId>
167 <version>${jersey.swagger.version}</version>
168 </dependency>
Jorge Hernandez85e12562017-06-05 09:51:55 -0500169 <dependency>
170 <groupId>org.apache.httpcomponents</groupId>
171 <artifactId>httpclient</artifactId>
Jorge Hernandez8f61e182017-06-22 17:17:28 -0500172 <version>${http.client.version}</version>
Jorge Hernandez85e12562017-06-05 09:51:55 -0500173 </dependency>
174 <dependency>
175 <groupId>org.apache.httpcomponents</groupId>
176 <artifactId>httpcore</artifactId>
Jorge Hernandez8f61e182017-06-22 17:17:28 -0500177 <version>${http.core.version}</version>
178 </dependency>
179 <dependency>
180 <groupId>ch.qos.logback</groupId>
181 <artifactId>logback-classic</artifactId>
182 <version>${logback.version}</version>
Jorge Hernandez85e12562017-06-05 09:51:55 -0500183 </dependency>
Ralph Straubs5bd9ff42017-04-21 04:23:55 -0500184 </dependencies>
185 </dependencyManagement>
186
Pamela Dragosh0e16acf2017-02-14 19:45:48 -0500187 <build>
188 <plugins>
189 <plugin>
Pamela Dragosha5fd1fb2017-02-17 15:31:11 -0500190 <groupId>org.sonatype.plugins</groupId>
191 <artifactId>nexus-staging-maven-plugin</artifactId>
192 <version>1.6.7</version>
193 <extensions>true</extensions>
194 <configuration>
195 <nexusUrl>${nexusproxy}</nexusUrl>
196 <stagingProfileId>176c31dfe190a</stagingProfileId>
Pamela Dragosh96265942017-07-31 21:31:31 -0400197 <serverId>ecomp-staging</serverId>
Pamela Dragosha5fd1fb2017-02-17 15:31:11 -0500198 </configuration>
199 </plugin>
200 <plugin>
Pamela Dragosh0e16acf2017-02-14 19:45:48 -0500201 <groupId>org.apache.maven.plugins</groupId>
202 <artifactId>maven-deploy-plugin</artifactId>
203 <version>2.8</version> <!-- This version supports the "deployAtEnd" parameter -->
Pamela Dragosha5fd1fb2017-02-17 15:31:11 -0500204 <configuration>
205 <skip />
206 </configuration>
Pamela Dragosh0e16acf2017-02-14 19:45:48 -0500207 </plugin>
208 <plugin>
209 <groupId>org.apache.maven.plugins</groupId>
210 <artifactId>maven-compiler-plugin</artifactId>
211 <version>3.0</version>
212 <configuration>
213 <encoding>${project.encoding}</encoding>
214 <source>${project.source.version}</source>
215 <target>${project.target.version}</target>
216 </configuration>
217 </plugin>
218 <plugin>
219 <groupId>org.apache.maven.plugins</groupId>
220 <artifactId>maven-resources-plugin</artifactId>
221 <version>2.6</version>
222 <configuration>
223 <encoding>${project.encoding}</encoding>
224 </configuration>
225 </plugin>
226 <!--
227 license plugin
228 Run
229 mvn clean
230 before running from the command line
231 mvn license:update-file-header
232 -->
233 <plugin>
234 <groupId>org.codehaus.mojo</groupId>
235 <artifactId>license-maven-plugin</artifactId>
236 <version>1.9</version>
237 <configuration>
238 <extraExtensions>
239 <!-- Used to add or change the header style <fileTypeYouAreMapping>
240 fileTypeMappedInto </fileTypeYouAreMapping> -->
241 <drl>java</drl>
242 <ccf>properties</ccf>
243
244 <!-- Because the typical sql comment type confuses the update algorithm -->
245 <sql>java</sql>
246 </extraExtensions>
247 <licenseName>apache_v2</licenseName>
248
249 <inceptionYear>2017</inceptionYear>
250 <organizationName>AT&amp;T Intellectual Property. All rights reserved.</organizationName>
251
252 <!-- Once you have established the tags and delimiter, they cannot be
253 changed -->
254 <processStartTag>============LICENSE_START=======================================================</processStartTag>
255 <processEndTag>============LICENSE_END=========================================================</processEndTag>
256 <sectionDelimiter>================================================================================</sectionDelimiter>
257 <addJavaLicenseAfterPackage>false</addJavaLicenseAfterPackage>
258 <canUpdateCopyright>true</canUpdateCopyright>
259 <canUpdateDescription>true</canUpdateDescription>
260 <canUpdateLicense>true</canUpdateLicense>
261 <emptyLineAfterHeader>true</emptyLineAfterHeader>
262 <roots>
263 <!-- Default is src, target/generated-sources, target/processed-sources -->
264
265 <!-- Everything except the files in the excludes section -->
266 <root>/</root>
267 </roots>
268 <excludes>
269 <!-- Files which are to be excluded. The pom.xml is excluded because
270 the start/end tags and the delimiters are in the body of the file. This confuses
271 the algorithm. So, this file must be manually updated with a license header. -->
272 <exclude>pom.xml</exclude>
273 </excludes>
274 </configuration>
275 </plugin>
Pamela Dragoshb67f4172017-04-10 10:24:23 -0400276 <plugin>
277 <groupId>org.apache.maven.plugins</groupId>
278 <artifactId>maven-site-plugin</artifactId>
279 <version>3.6</version>
280 <dependencies>
281 <dependency>
282 <groupId>org.apache.maven.wagon</groupId>
283 <artifactId>wagon-webdav-jackrabbit</artifactId>
284 <version>2.10</version>
285 </dependency>
286 </dependencies>
287 </plugin>
Jorge Hernandez1550fa82017-07-26 19:00:54 -0500288
289 <plugin>
290 <groupId>org.jacoco</groupId>
291 <artifactId>jacoco-maven-plugin</artifactId>
292 </plugin>
293
294 <plugin>
295 <groupId>org.codehaus.mojo</groupId>
296 <artifactId>sonar-maven-plugin</artifactId>
297 </plugin>
Pamela Dragosh0e16acf2017-02-14 19:45:48 -0500298 </plugins>
299 <pluginManagement>
300 <plugins>
301 <plugin>
302 <groupId>org.jacoco</groupId>
303 <artifactId>jacoco-maven-plugin</artifactId>
Jorge Hernandez1550fa82017-07-26 19:00:54 -0500304 <version>${jacoco.plugin.version}</version>
Pamela Dragosh0e16acf2017-02-14 19:45:48 -0500305 <configuration>
306 <dumpOnExit>true</dumpOnExit>
307 <includes>
Guo Ruijing6abeb292017-07-28 08:23:01 +0000308 <include>org.onap.*</include>
Pamela Dragosh0e16acf2017-02-14 19:45:48 -0500309 </includes>
310 </configuration>
311 <executions>
312 <execution>
313 <id>jacoco-initialize-unit-tests</id>
314 <goals>
315 <goal>prepare-agent</goal>
316 </goals>
317 <configuration>
318 <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
319 </configuration>
320 </execution>
321 </executions>
322 </plugin>
Jorge Hernandez1550fa82017-07-26 19:00:54 -0500323 <plugin>
324 <groupId>org.codehaus.mojo</groupId>
325 <artifactId>sonar-maven-plugin</artifactId>
326 <version>${sonar.plugin.version}</version>
327 </plugin>
Pamela Dragosh0e16acf2017-02-14 19:45:48 -0500328 </plugins>
329 </pluginManagement>
330 </build>
Pamela Dragoshb67f4172017-04-10 10:24:23 -0400331 <reporting>
332 <plugins>
333 <plugin>
334 <groupId>org.apache.maven.plugins</groupId>
335 <artifactId>maven-javadoc-plugin</artifactId>
336 <version>2.10.4</version>
337 <configuration>
338 <failOnError>false</failOnError>
339 <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
340 <docletArtifact>
341 <groupId>org.umlgraph</groupId>
342 <artifactId>umlgraph</artifactId>
343 <version>5.6</version>
344 </docletArtifact>
345 <additionalparam>-views</additionalparam>
346 <useStandardDocletOptions>true</useStandardDocletOptions>
347 </configuration>
348 </plugin>
349 </plugins>
350 </reporting>
351
Pamela Dragosh0e16acf2017-02-14 19:45:48 -0500352</project>