blob: 54b370be70e2b7f0075ecae112725b8c5cb39ed7 [file] [log] [blame]
eikrwaqa94302f2018-05-23 14:08:29 +01001<!--
2 ============LICENSE_START=======================================================
3 Copyright (C) 2018 Ericsson. All rights reserved.
liamfallon2e30d8c2019-01-11 10:51:50 +00004 Copyright (C) 2019 Nordix Foundation.
jrh3a94cf1e2019-07-08 13:16:46 -04005 Modifications Copyright (C) 2019 AT&T Intellectual Property. All rights reserved.
eikrwaqa94302f2018-05-23 14:08:29 +01006 ================================================================================
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
19 SPDX-License-Identifier: Apache-2.0
20 ============LICENSE_END=========================================================
21-->
22
liamfallon32497612018-11-10 00:39:12 +000023<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
24 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
eikrwaqa94302f2018-05-23 14:08:29 +010025 <modelVersion>4.0.0</modelVersion>
26 <parent>
27 <groupId>org.onap.policy.parent</groupId>
28 <artifactId>integration</artifactId>
Pamela Dragoshd2534172019-09-09 19:58:04 -040029 <version>3.0.1</version>
eikrwaqa94302f2018-05-23 14:08:29 +010030 <relativePath />
31 </parent>
32
waqas.ikramf524b882018-05-24 15:31:21 +010033 <groupId>org.onap.policy.apex-pdp</groupId>
eikrwaqa94302f2018-05-23 14:08:29 +010034 <artifactId>apex-pdp</artifactId>
jrh3d7d9df62019-09-12 10:07:06 -040035 <version>2.3.0-SNAPSHOT</version>
eikrwaqa94302f2018-05-23 14:08:29 +010036 <packaging>pom</packaging>
37
ramverma6029d252018-05-25 11:55:45 +010038 <name>policy-apex-pdp</name>
eikrwaqa94302f2018-05-23 14:08:29 +010039 <description>Packaging for all the Apex components, the engine, the WAR service, and the editor.</description>
40
41 <properties>
42 <encoding>UTF-8</encoding>
43 <file.encoding>UTF-8</file.encoding>
waqas.ikram75ff76e2018-06-06 11:04:36 +010044 <version.commons-cli>1.4</version.commons-cli>
liamfallon02bef1f2019-08-16 10:16:37 +000045 <version.kafka>2.3.0</version.kafka>
liamfallona40a3832018-07-06 09:41:40 +010046 <version.jersey>2.26</version.jersey>
liamfallon1ba6a322019-02-22 17:30:59 +000047 <version.hibernate>5.3.7.Final</version.hibernate>
jrh3ac9e9062019-09-19 15:14:12 -040048 <version.policy.common>1.6.0-SNAPSHOT</version.policy.common>
49 <version.policy.models>2.2.0-SNAPSHOT</version.policy.models>
liamfallon7d9e1c22019-09-18 15:23:06 +010050 <version.jackson>2.10.0.pr3</version.jackson>
51 <version.jgroups>4.1.5.Final</version.jgroups>
52 <version.commons-codec>20041127.091804</version.commons-codec>
53 <version.caffeine>2.8.0</version.caffeine>
ramvermab59d62f2018-09-09 15:07:34 +010054 <!-- sonar/jacoco overrides -->
55 <!-- Overriding oparent default sonar/jacoco settings Combine all our reports
56 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>
eikrwaqa94302f2018-05-23 14:08:29 +010060 </properties>
61
62 <distributionManagement>
63 <site>
64 <id>ecomp-site</id>
65 <url>dav:${onap.nexus.url}${sitePath}</url>
66 </site>
67 </distributionManagement>
68
69 <dependencies>
70 <dependency>
71 <groupId>junit</groupId>
72 <artifactId>junit</artifactId>
73 <scope>test</scope>
74 </dependency>
75 <dependency>
76 <groupId>org.slf4j</groupId>
77 <artifactId>slf4j-ext</artifactId>
liamfallonf86117b2018-06-19 11:31:44 +080078 <version>1.8.0-beta2</version>
eikrwaqa94302f2018-05-23 14:08:29 +010079 </dependency>
80 <dependency>
81 <groupId>org.slf4j</groupId>
82 <artifactId>slf4j-api</artifactId>
83 </dependency>
84 <dependency>
85 <groupId>ch.qos.logback</groupId>
86 <artifactId>logback-core</artifactId>
87 </dependency>
88 <dependency>
89 <groupId>ch.qos.logback</groupId>
90 <artifactId>logback-classic</artifactId>
91 </dependency>
a.sreekumara86ba142019-07-24 09:35:31 +000092 <dependency>
93 <groupId>org.projectlombok</groupId>
94 <artifactId>lombok</artifactId>
95 </dependency>
eikrwaqa94302f2018-05-23 14:08:29 +010096 </dependencies>
97
liamfallonefdaa0d2018-08-03 16:12:01 +010098 <dependencyManagement>
99 <dependencies>
100 <dependency>
101 <groupId>org.onap.policy.common</groupId>
102 <artifactId>utils</artifactId>
103 <version>${version.policy.common}</version>
104 </dependency>
liamfallonf3250832018-08-30 09:37:29 +0100105 <dependency>
106 <groupId>org.onap.policy.common</groupId>
107 <artifactId>common-parameters</artifactId>
ramverma79e5ede2018-10-24 20:14:02 +0100108 <version>${version.policy.common}</version>
liamfallonf3250832018-08-30 09:37:29 +0100109 </dependency>
liamfallon7d9e1c22019-09-18 15:23:06 +0100110 <dependency>
111 <groupId>com.fasterxml.jackson.core</groupId>
112 <artifactId>jackson-core</artifactId>
113 <version>${version.jackson}</version>
114 </dependency>
115 <dependency>
116 <groupId>com.fasterxml.jackson.core</groupId>
117 <artifactId>jackson-databind</artifactId>
118 <version>${version.jackson}</version>
119 </dependency>
120 <dependency>
liamfallonc30b75d2019-09-25 15:13:37 +0200121 <groupId>org.jgroups</groupId>
liamfallon7d9e1c22019-09-18 15:23:06 +0100122 <artifactId>jgroups</artifactId>
123 <version>${version.jgroups}</version>
124 </dependency>
125 <dependency>
126 <groupId>commons-codec</groupId>
liamfallonc30b75d2019-09-25 15:13:37 +0200127 <artifactId>commons-codec</artifactId>
liamfallon7d9e1c22019-09-18 15:23:06 +0100128 <version>${version.commons-codec}</version>
129 </dependency>
130 <dependency>
131 <groupId>com.github.ben-manes.caffeine</groupId>
132 <artifactId>caffeine</artifactId>
133 <version>${version.caffeine}</version>
134 </dependency>
liamfallonefdaa0d2018-08-03 16:12:01 +0100135 </dependencies>
136 </dependencyManagement>
eikrwaqa94302f2018-05-23 14:08:29 +0100137
138 <profiles>
139 <profile>
140 <!--This profile is used to store Eclipse m2e settings only. It has no
141 influence on the Maven build itself. -->
142 <id>only-eclipse</id>
143 <activation>
144 <property>
145 <name>m2e.version</name>
146 </property>
147 </activation>
148 <build>
149 <pluginManagement>
150 <plugins>
151 <plugin>
152 <groupId>org.eclipse.m2e</groupId>
153 <artifactId>lifecycle-mapping</artifactId>
154 <version>1.0.0</version>
155 <configuration>
156 <lifecycleMappingMetadata>
157 <pluginExecutions>
158 <pluginExecution>
159 <pluginExecutionFilter>
waqas.ikram34bdfe12018-05-31 11:09:58 +0100160 <groupId>org.codehaus.mojo</groupId>
161 <artifactId>exec-maven-plugin</artifactId>
waqas.ikram48229522018-05-31 14:49:38 +0100162 <versionRange>[1.6.0,)</versionRange>
waqas.ikram34bdfe12018-05-31 11:09:58 +0100163 <goals>
164 <goal>java</goal>
ramverma28ea3362018-07-18 16:28:07 +0100165 <goal>exec</goal>
waqas.ikram34bdfe12018-05-31 11:09:58 +0100166 </goals>
167 </pluginExecutionFilter>
168 <action>
169 <execute />
170 </action>
171 </pluginExecution>
172 <pluginExecution>
173 <pluginExecutionFilter>
eikrwaqa94302f2018-05-23 14:08:29 +0100174 <groupId>org.commonjava.maven.plugins</groupId>
175 <artifactId>directory-maven-plugin</artifactId>
176 <versionRange>0.2</versionRange>
177 <goals>
178 <goal>directory-of</goal>
179 </goals>
180 </pluginExecutionFilter>
181 <action>
182 <execute />
183 </action>
184 </pluginExecution>
ramvermaaf74a622018-07-31 18:25:39 +0100185 <pluginExecution>
ramvermac6d74e62018-07-11 14:21:13 +0100186 <pluginExecutionFilter>
187 <groupId>org.apache.maven.plugins</groupId>
188 <artifactId>maven-dependency-plugin</artifactId>
liamfallon32497612018-11-10 00:39:12 +0000189 <versionRange>[2.0,)</versionRange>
ramvermac6d74e62018-07-11 14:21:13 +0100190 <goals>
liamfallon32497612018-11-10 00:39:12 +0000191 <goal>unpack</goal>
ramvermac6d74e62018-07-11 14:21:13 +0100192 <goal>unpack-dependencies</goal>
193 </goals>
194 </pluginExecutionFilter>
195 <action>
196 <execute />
197 </action>
198 </pluginExecution>
liamfallon32497612018-11-10 00:39:12 +0000199 <pluginExecution>
200 <pluginExecutionFilter>
201 <groupId>org.apache.maven.plugins</groupId>
202 <artifactId>maven-antrun-plugin</artifactId>
203 <versionRange>[1.0,)</versionRange>
204 <goals>
205 <goal>run</goal>
206 </goals>
207 </pluginExecutionFilter>
208 <action>
209 <ignore />
210 </action>
211 </pluginExecution>
eikrwaqa94302f2018-05-23 14:08:29 +0100212 </pluginExecutions>
213 </lifecycleMappingMetadata>
214 </configuration>
215 </plugin>
216 </plugins>
217 </pluginManagement>
218 </build>
219 </profile>
ramvermaaf74a622018-07-31 18:25:39 +0100220
221 <profile>
222 <!--This profile is used to create local APEX documentation and a Maven site -->
223 <id>apexSite</id>
224 <activation>
225 <property>
226 <name>apexSite</name>
227 </property>
228 </activation>
229 <properties>
230 <!-- needed to add this to avoid slow site creation due to many dead repos in some configuration see: https://stackoverflow.com/questions/26144541/why-am-i-getting-maven-error-unable-to-determine-if-resource-x-exists-in-http
231 see: https://stackoverflow.com/questions/26144541/why-am-i-getting-maven-error-unable-to-determine-if-resource-x-exists-in-http/35673586 see: https://whatiscomingtomyhead.wordpress.com/2011/04/20/if-your-maven-site-build-is-too-slow/ -->
232 <dependency.locations.enabled>false</dependency.locations.enabled>
233
234 <!-- Site and ADOC properties -->
235 <apex.adsite.prefix>https://www.onap.org/policy/apex-pdp/site</apex.adsite.prefix>
236 <release-version>${project.version}</release-version>
237
238 <adsite-main-dir>${project.basedir}/src</adsite-main-dir>
239 <adsite-tools-wsclients-dir>${project.basedir}/tools/simple-wsclient/src</adsite-tools-wsclients-dir>
240 <adsite-tools-common-dir>${project.basedir}/tools/tools-common/src</adsite-tools-common-dir>
liamfallona41c8772018-09-05 15:46:31 +0100241
ramvermaaf74a622018-07-31 18:25:39 +0100242 <adsite-examples-myfirstpolicy-dir>${project.basedir}/examples/examples-myfirstpolicy/src</adsite-examples-myfirstpolicy-dir>
243 <adsite-examples-decisionmaker-dir>${project.basedir}/examples/examples-decisionmaker/src</adsite-examples-decisionmaker-dir>
244 <adsite-examples-pcvs-dir>${project.basedir}/examples/examples-pcvs/src</adsite-examples-pcvs-dir>
245 <adsite-examples-periodic-dir>${project.basedir}/examples/examples-periodic/src</adsite-examples-periodic-dir>
246 <adsite-examples-onap-vcpe-dir>${project.basedir}/examples/examples-onap-vcpe/src</adsite-examples-onap-vcpe-dir>
s003703465262c352019-04-11 00:14:39 +0530247 <adsite-examples-onap-bbs-dir>${project.basedir}/examples/examples-onap-bbs/src</adsite-examples-onap-bbs-dir>
Dinh Danh Lea5a44272018-08-22 12:41:50 +0100248 <adsite-examples-servlet-dir>${project.basedir}/examples/examples-servlet/src</adsite-examples-servlet-dir>
ramvermaaf74a622018-07-31 18:25:39 +0100249
liamfallona41c8772018-09-05 15:46:31 +0100250 <adsite-packages-docker-dir>${project.basedir}/packages/apex-pdp-docker/src</adsite-packages-docker-dir>
251
ramvermaaf74a622018-07-31 18:25:39 +0100252 <adsite-plugins-event-protocol-dir>${project.basedir}/plugins/plugins-event/plugins-event-protocol/src</adsite-plugins-event-protocol-dir>
253 <adsite-plugins-event-protocol-jms-dir>${project.basedir}/plugins/plugins-event/plugins-event-protocol/plugins-event-protocol-jms/src</adsite-plugins-event-protocol-jms-dir>
254 <adsite-plugins-event-protocol-xml-dir>${project.basedir}/plugins/plugins-event/plugins-event-protocol/plugins-event-protocol-xml/src</adsite-plugins-event-protocol-xml-dir>
255 <adsite-plugins-event-protocol-yaml-dir>${project.basedir}/plugins/plugins-event/plugins-event-protocol/plugins-event-protocol-yaml/src</adsite-plugins-event-protocol-yaml-dir>
256
257 <adsite-plugins-event-carrier-dir>${project.basedir}/plugins/plugins-event/plugins-event-carrier/src</adsite-plugins-event-carrier-dir>
258 <adsite-plugins-event-carrier-jms-dir>${project.basedir}/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-jms/src</adsite-plugins-event-carrier-jms-dir>
259 <adsite-plugins-event-carrier-restclient-dir>${project.basedir}/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restclient/src</adsite-plugins-event-carrier-restclient-dir>
260 <adsite-plugins-event-carrier-restserver-dir>${project.basedir}/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restserver/src</adsite-plugins-event-carrier-restserver-dir>
261 <adsite-plugins-event-carrier-restrequestor-dir>${project.basedir}/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src</adsite-plugins-event-carrier-restrequestor-dir>
262 <adsite-plugins-event-carrier-kafka-dir>${project.basedir}/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-kafka/src</adsite-plugins-event-carrier-kafka-dir>
263 <adsite-plugins-event-carrier-websocket-dir>${project.basedir}/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-websocket/src</adsite-plugins-event-carrier-websocket-dir>
264 <adsite-plugins-context-dir>${project.basedir}/plugins/plugins-context/src</adsite-plugins-context-dir>
Dinh Danh Lea5a44272018-08-22 12:41:50 +0100265 <adsite-plugins-context-schema-avro-dir>${project.basedir}/plugins/plugins-context/plugins-context-schema/plugins-context-schema-avro/src</adsite-plugins-context-schema-avro-dir>
ramvermaaf74a622018-07-31 18:25:39 +0100266 <adsite-plugins-executor-dir>${project.basedir}/plugins/plugins-executor/src</adsite-plugins-executor-dir>
267 <adsite-plugins-executor-java-dir>${project.basedir}/plugins/plugins-executor/plugins-executor-java/src</adsite-plugins-executor-java-dir>
268 <adsite-plugins-executor-javascript-dir>${project.basedir}/plugins/plugins-executor/plugins-executor-javascript/src</adsite-plugins-executor-javascript-dir>
269 <adsite-plugins-executor-jruby-dir>${project.basedir}/plugins/plugins-executor/plugins-executor-jruby/src</adsite-plugins-executor-jruby-dir>
liamfallon88f17592019-09-14 12:39:25 +0100270 <!-- Jython support disabled due to security concerns -->
271 <!-- adsite-plugins-executor-jython-dir>${project.basedir}/plugins/plugins-executor/plugins-executor-jython/src</adsite-plugins-executor-jython-dir-->
ramvermaaf74a622018-07-31 18:25:39 +0100272 <adsite-plugins-executor-mvel-dir>${project.basedir}/plugins/plugins-executor/plugins-executor-mvel/src</adsite-plugins-executor-mvel-dir>
liamfallona41c8772018-09-05 15:46:31 +0100273
ramvermaaf74a622018-07-31 18:25:39 +0100274 <adsite-services-engine-dir>${project.basedir}/services/services-engine/src</adsite-services-engine-dir>
275 </properties>
276 <distributionManagement>
277 <site>
278 <id>${project.artifactId}-site</id>
279 <url>${apex.adsite.prefix}/</url>
280 </site>
281 </distributionManagement>
282 <build>
283 <plugins>
284 <plugin>
285 <groupId>org.commonjava.maven.plugins</groupId>
286 <artifactId>directory-maven-plugin</artifactId>
287 <version>0.2</version>
288 <executions>
289 <execution>
290 <id>directories</id>
291 <goals>
292 <goal>directory-of</goal>
293 </goals>
294 <phase>initialize</phase>
295 <configuration>
296 <property>apex.basedir</property>
297 <project>
298 <groupId>org.onap.policy.apex-pdp</groupId>
299 <artifactId>apex-pdp</artifactId>
300 </project>
301 </configuration>
302 </execution>
303 </executions>
304 </plugin>
305
306 <plugin>
307 <groupId>org.apache.maven.plugins</groupId>
308 <artifactId>maven-site-plugin</artifactId>
309 <version>3.7.1</version>
310 <configuration>
311 <stagingDirectory>${apex.basedir}/target/ad-site</stagingDirectory>
312 <asciidoc>
313 <embedAssets>true</embedAssets>
314 <attributes>
315 <source-highlighter>coderay</source-highlighter>
316 <coderay-css>style</coderay-css>
317 <imagesdir>images</imagesdir>
318 </attributes>
319 </asciidoc>
320 <moduleExcludes>
321 <asciidoc>**/_*.adoc</asciidoc>
322 </moduleExcludes>
323 </configuration>
324 <dependencies>
325 <dependency>
326 <groupId>org.apache.maven.doxia</groupId>
327 <artifactId>doxia-site-renderer</artifactId>
328 <version>1.8</version>
329 </dependency>
330 <dependency>
331 <groupId>org.asciidoctor</groupId>
332 <artifactId>asciidoctor-maven-plugin</artifactId>
333 <version>1.5.6</version>
334 </dependency>
335 </dependencies>
336 </plugin>
337
338 <plugin>
339 <groupId>org.apache.maven.plugins</groupId>
340 <artifactId>maven-resources-plugin</artifactId>
341 <version>3.0.2</version>
342 <executions>
343 <execution>
344 <id>copy-site-css</id>
345 <phase>process-resources</phase>
346 <goals>
347 <goal>copy-resources</goal>
348 </goals>
349 <configuration>
350 <resources>
351 <resource>
352 <directory>src/site/css</directory>
353 <includes>
354 <include>**/*.css</include>
355 </includes>
356 </resource>
357 </resources>
358 <outputDirectory>${project.build.directory}/site/css</outputDirectory>
359 <overwrite>true</overwrite>
360 </configuration>
361 </execution>
362
363 <execution>
364 <id>copy-site-logos</id>
365 <phase>process-resources</phase>
366 <goals>
367 <goal>copy-resources</goal>
368 </goals>
369 <configuration>
370 <resources>
371 <resource>
372 <directory>src/site/images</directory>
373 <includes>
374 <include>**/*.png</include>
375 </includes>
376 </resource>
377 </resources>
378 <outputDirectory>${project.build.directory}/site/images</outputDirectory>
379 <overwrite>true</overwrite>
380 </configuration>
381 </execution>
382
383 <execution>
384 <id>copy-um-install-images</id>
385 <phase>process-resources</phase>
386 <goals>
387 <goal>copy-resources</goal>
388 </goals>
389 <configuration>
390 <resources>
391 <resource>
392 <directory>src/site-docs/adoc/resources/images/install-guide</directory>
393 <includes>
394 <include>**/*.jpg</include>
395 <include>**/*.png</include>
396 </includes>
397 </resource>
398 </resources>
399 <outputDirectory>${project.build.directory}/site/user-manual/install/images/install-guide</outputDirectory>
400 </configuration>
401 </execution>
402
403 <execution>
404 <id>copy-howto-config-images</id>
405 <phase>process-resources</phase>
406 <goals>
407 <goal>copy-resources</goal>
408 </goals>
409 <configuration>
410 <resources>
411 <resource>
412 <directory>src/site-docs/adoc/resources/images/apex-intro</directory>
413 <includes>
414 <include>ApexEngineConfig.jpg</include>
415 <include>ApexEngineConfig.png</include>
416 </includes>
417 </resource>
418 </resources>
419 <outputDirectory>${project.build.directory}/site/user-manual/configuration/images/apex-intro</outputDirectory>
420 </configuration>
421 </execution>
422
423 <execution>
424 <id>copy-tech-intro-apex-images</id>
425 <phase>process-resources</phase>
426 <goals>
427 <goal>copy-resources</goal>
428 </goals>
429 <configuration>
430 <resources>
431 <resource>
432 <directory>src/site-docs/adoc/resources/images/apex-intro</directory>
433 <includes>
434 <include>**/*.jpg</include>
435 <include>**/*.png</include>
436 </includes>
437 </resource>
438 </resources>
439 <outputDirectory>${project.build.directory}/site/apex-intro/images/apex-intro</outputDirectory>
440 </configuration>
441 </execution>
442
443 <execution>
444 <id>copy-tech-pm-apex-images</id>
445 <phase>process-resources</phase>
446 <goals>
447 <goal>copy-resources</goal>
448 </goals>
449 <configuration>
450 <resources>
451 <resource>
452 <directory>src/site-docs/adoc/resources/images/apex-policy-model</directory>
453 <includes>
454 <include>**/*.jpg</include>
455 <include>**/*.png</include>
456 </includes>
457 </resource>
458 </resources>
459 <outputDirectory>${project.build.directory}/site/policy-guide/policy-model/images/apex-policy-model</outputDirectory>
460 </configuration>
461 </execution>
462
463 <execution>
464 <id>copy-tech-pm-apex-intro-images</id>
465 <phase>process-resources</phase>
466 <goals>
467 <goal>copy-resources</goal>
468 </goals>
469 <configuration>
470 <resources>
471 <resource>
472 <directory>src/site-docs/adoc/resources/images/apex-intro</directory>
473 <includes>
474 <include>ApexPolicyMatrix.png</include>
475 </includes>
476 </resource>
477 </resources>
478 <outputDirectory>${project.build.directory}/site/policy-guide/images/apex-intro</outputDirectory>
479 </configuration>
480 </execution>
481
482 <execution>
483 <id>copy-domain-mfp-images</id>
484 <phase>process-resources</phase>
485 <goals>
486 <goal>copy-resources</goal>
487 </goals>
488 <configuration>
489 <resources>
490 <resource>
Dinh Danh Lea5a44272018-08-22 12:41:50 +0100491 <directory>${project.basedir}/examples/examples-myfirstpolicy/src/site-docs/adoc/resources/images</directory>
ramvermaaf74a622018-07-31 18:25:39 +0100492 <includes>
493 <include>**/*.jpg</include>
494 <include>**/*.png</include>
495 </includes>
496 </resource>
497 </resources>
498 <outputDirectory>${project.build.directory}/site/user-manual/my-first-policy/images</outputDirectory>
499 </configuration>
500 </execution>
501
502 <execution>
503 <id>copy-asciidoc-generated</id>
504 <phase>process-resources</phase>
505 <goals>
506 <goal>copy-resources</goal>
507 </goals>
508 <configuration>
509 <resources>
510 <resource>
511 <directory>target/generated-docs</directory>
512 </resource>
513 </resources>
514 <outputDirectory>${project.build.directory}/site/docs-apex</outputDirectory>
515 </configuration>
516 </execution>
517 </executions>
518 </plugin>
a.sreekumar0fbf0392019-06-20 09:39:59 +0000519
520 <plugin>
521 <artifactId>maven-checkstyle-plugin</artifactId>
522 <executions>
523 <execution>
524 <id>onap-java-style</id>
525 <goals>
526 <goal>check</goal>
527 </goals>
528 <phase>process-sources</phase>
529 <configuration>
530 <!-- Use Google Java Style Guide: https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml
531 with minor changes -->
532 <configLocation>onap-checkstyle/onap-java-style.xml</configLocation>
533 <!-- <sourceDirectory> is needed so that checkstyle ignores the generated sources directory -->
534 <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
535 <includeResources>true</includeResources>
536 <includeTestSourceDirectory>true</includeTestSourceDirectory>
537 <includeTestResources>true</includeTestResources>
538 <excludes>
539 </excludes>
540 <consoleOutput>true</consoleOutput>
541 <failOnViolation>true</failOnViolation>
542 <violationSeverity>warning</violationSeverity>
543 </configuration>
544 </execution>
545 </executions>
546 <dependencies>
547 <dependency>
548 <groupId>org.onap.oparent</groupId>
549 <artifactId>checkstyle</artifactId>
550 <version>${oparent.version}</version>
551 <scope>compile</scope>
552 </dependency>
553 </dependencies>
554 </plugin>
ramvermaaf74a622018-07-31 18:25:39 +0100555 </plugins>
556 </build>
557
558 <reporting>
559 <plugins>
560 <plugin>
561 <groupId>org.apache.maven.plugins</groupId>
562 <artifactId>maven-project-info-reports-plugin</artifactId>
563 <version>2.9</version>
564 </plugin>
565 <plugin>
566 <groupId>org.apache.maven.plugins</groupId>
567 <artifactId>maven-javadoc-plugin</artifactId>
568 <version>3.0.0-M1</version>
569 <reportSets>
570 <reportSet>
571 <id>default</id>
572 <reports>
573 <report>javadoc</report>
574 </reports>
575 </reportSet>
576 <reportSet>
577 <id>aggregate</id>
578 <inherited>false</inherited>
579 <reports>
580 <report>aggregate</report>
581 </reports>
582 </reportSet>
583 </reportSets>
584 <configuration>
585 <destDir>javadocs</destDir>
586 <source>${maven.compiler.target}</source>
587 <encoding>${project.resources.sourceEncoding}</encoding>
588 <docencoding>${project.resources.sourceEncoding}</docencoding>
589 <charset>${project.resources.sourceEncoding}</charset>
590 <!--<aggregate>false</aggregate>-->
591 <nohelp>true</nohelp>
592 <header>APEX - ${project.artifactId} ${project.version}</header>
593 <footer>APEX - ${project.artifactId} ${project.version}</footer>
594 <doctitle>APEX - ${project.artifactId} ${project.version}</doctitle>
595 <noqualifier>all</noqualifier>
596 <detectLinks>false</detectLinks>
597 <detectJavaApiLink>true</detectJavaApiLink>
598 <javadocDirectory>${project.basedir}/src/main/javadoc</javadocDirectory>
599 <docfilessubdirs>true</docfilessubdirs>
600 <overview>overview.html</overview>
601 <show>public</show>
602 <!-- Exclude JAXB generated packages -->
603 <excludePackageNames>org.onap.policy.apex.plugins.event.protocol.xml.jaxb</excludePackageNames>
604 </configuration>
605 </plugin>
606 </plugins>
607 </reporting>
608 </profile>
609
610 <profile>
611 <id>apexDocs</id>
612 <activation>
613 <property>
614 <name>apexDocs</name>
615 </property>
616 </activation>
liamfallon3aa7cbe2018-10-31 16:35:54 +0000617 <modules />
ramvermaaf74a622018-07-31 18:25:39 +0100618 <build>
619 <plugins>
620 <plugin>
621 <groupId>org.asciidoctor</groupId>
622 <artifactId>asciidoctor-maven-plugin</artifactId>
623 <version>1.5.6</version>
624 <dependencies>
625 <dependency>
626 <groupId>org.asciidoctor</groupId>
627 <artifactId>asciidoctorj-pdf</artifactId>
628 <version>1.5.0-alpha.16</version>
629 </dependency>
630 </dependencies>
631 <configuration>
632 <sourceHighlighter>coderay</sourceHighlighter>
633 <sourceDirectory>src/site-docs/adoc/guides</sourceDirectory>
634 <preserveDirectories>true</preserveDirectories>
635 <attributes>
636 <toc />
637 <pagenums />
638 <sectnums />
639 <linkcss>true</linkcss>
640 <stylesdir>styles</stylesdir>
641
642 <!-- Change this to get another style -->
643 <stylesheet>compass/rocket-panda.css</stylesheet>
644 <pdf-stylesdir>${project.basedir}/src/site-docs/adoc/resources-pdf/themes</pdf-stylesdir>
645 <pdf-style>apex-pdf.yml</pdf-style>
646 <pdf-fontsdir>${project.basedir}/src/site-docs/adoc/resources-pdf/fonts</pdf-fontsdir>
647
648 <revnumber>${project.version}</revnumber>
649 <revdate>${maven.build.timestamp}</revdate>
650 <organization>${project.organization.name}</organization>
651
652 <release-version>${project.version}</release-version>
653
654 <adsite-main-dir>${project.basedir}/src</adsite-main-dir>
655 <adsite-tools-wsclients-dir>${project.basedir}/tools/simple-wsclient/src</adsite-tools-wsclients-dir>
656 <adsite-tools-common-dir>${project.basedir}/tools/tools-common/src</adsite-tools-common-dir>
liamfallona41c8772018-09-05 15:46:31 +0100657
ramvermaaf74a622018-07-31 18:25:39 +0100658 <adsite-examples-myfirstpolicy-dir>${project.basedir}/examples/examples-myfirstpolicy/src</adsite-examples-myfirstpolicy-dir>
659 <adsite-examples-decisionmaker-dir>${project.basedir}/examples/examples-decisionmaker/src</adsite-examples-decisionmaker-dir>
660 <adsite-examples-pcvs-dir>${project.basedir}/examples/examples-pcvs/src</adsite-examples-pcvs-dir>
661 <adsite-examples-periodic-dir>${project.basedir}/examples/examples-periodic/src</adsite-examples-periodic-dir>
662 <adsite-examples-onap-vcpe-dir>${project.basedir}/examples/examples-onap-vcpe/src</adsite-examples-onap-vcpe-dir>
s003703465262c352019-04-11 00:14:39 +0530663 <adsite-examples-onap-bbs-dir>${project.basedir}/examples/examples-onap-bbs/src</adsite-examples-onap-bbs-dir>
Dinh Danh Lea5a44272018-08-22 12:41:50 +0100664 <adsite-examples-servlet-dir>${project.basedir}/examples/examples-servlet/src</adsite-examples-servlet-dir>
ramvermaaf74a622018-07-31 18:25:39 +0100665
liamfallona41c8772018-09-05 15:46:31 +0100666 <adsite-packages-docker-dir>${project.basedir}/packages/apex-pdp-docker/src</adsite-packages-docker-dir>
667
ramvermaaf74a622018-07-31 18:25:39 +0100668 <adsite-plugins-event-protocol-dir>${project.basedir}/plugins/plugins-event/plugins-event-protocol/src</adsite-plugins-event-protocol-dir>
669 <adsite-plugins-event-protocol-jms-dir>${project.basedir}/plugins/plugins-event/plugins-event-protocol/plugins-event-protocol-jms/src</adsite-plugins-event-protocol-jms-dir>
670 <adsite-plugins-event-protocol-xml-dir>${project.basedir}/plugins/plugins-event/plugins-event-protocol/plugins-event-protocol-xml/src</adsite-plugins-event-protocol-xml-dir>
671 <adsite-plugins-event-protocol-yaml-dir>${project.basedir}/plugins/plugins-event/plugins-event-protocol/plugins-event-protocol-yaml/src</adsite-plugins-event-protocol-yaml-dir>
672 <adsite-plugins-event-carrier-dir>${project.basedir}/plugins/plugins-event/plugins-event-carrier/src</adsite-plugins-event-carrier-dir>
673 <adsite-plugins-event-carrier-jms-dir>${project.basedir}/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-jms/src</adsite-plugins-event-carrier-jms-dir>
674 <adsite-plugins-event-carrier-restclient-dir>${project.basedir}/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restclient/src</adsite-plugins-event-carrier-restclient-dir>
675 <adsite-plugins-event-carrier-restserver-dir>${project.basedir}/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restserver/src</adsite-plugins-event-carrier-restserver-dir>
676 <adsite-plugins-event-carrier-restrequestor-dir>${project.basedir}/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src</adsite-plugins-event-carrier-restrequestor-dir>
677 <adsite-plugins-event-carrier-kafka-dir>${project.basedir}/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-kafka/src</adsite-plugins-event-carrier-kafka-dir>
678 <adsite-plugins-event-carrier-websocket-dir>${project.basedir}/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-websocket/src</adsite-plugins-event-carrier-websocket-dir>
679 <adsite-plugins-context-dir>${project.basedir}/plugins/plugins-context/src</adsite-plugins-context-dir>
Dinh Danh Lea5a44272018-08-22 12:41:50 +0100680 <adsite-plugins-context-schema-avro-dir>${project.basedir}/plugins/plugins-context/plugins-context-schema/plugins-context-schema-avro/src</adsite-plugins-context-schema-avro-dir>
ramvermaaf74a622018-07-31 18:25:39 +0100681 <adsite-plugins-executor-dir>${project.basedir}/plugins/plugins-executor/src</adsite-plugins-executor-dir>
682 <adsite-plugins-executor-java-dir>${project.basedir}/plugins/plugins-executor/plugins-executor-java/src</adsite-plugins-executor-java-dir>
683 <adsite-plugins-executor-javascript-dir>${project.basedir}/plugins/plugins-executor/plugins-executor-javascript/src</adsite-plugins-executor-javascript-dir>
684 <adsite-plugins-executor-jruby-dir>${project.basedir}/plugins/plugins-executor/plugins-executor-jruby/src</adsite-plugins-executor-jruby-dir>
685 <adsite-plugins-executor-jython-dir>${project.basedir}/plugins/plugins-executor/plugins-executor-jython/src</adsite-plugins-executor-jython-dir>
686 <adsite-plugins-executor-mvel-dir>${project.basedir}/plugins/plugins-executor/plugins-executor-mvel/src</adsite-plugins-executor-mvel-dir>
liamfallona41c8772018-09-05 15:46:31 +0100687
ramvermaaf74a622018-07-31 18:25:39 +0100688 <adsite-services-engine-dir>${project.basedir}/services/services-engine/src</adsite-services-engine-dir>
689 </attributes>
690 </configuration>
691 <executions>
692 <execution>
693 <id>asciidoc-html-doc</id>
694 <phase>generate-resources</phase>
695 <configuration>
696 <backend>html</backend>
697 <outputDirectory>${project.build.directory}/generated-docs/html</outputDirectory>
698 <resources>
699 <resource>
700 <directory>src/site-docs/adoc/resources</directory>
701 </resource>
702 <resource>
Dinh Danh Lea5a44272018-08-22 12:41:50 +0100703 <directory>${project.basedir}/examples/examples-myfirstpolicy/src/site-docs/adoc/resources</directory>
ramvermaaf74a622018-07-31 18:25:39 +0100704 </resource>
705 </resources>
706 </configuration>
707 <goals>
708 <goal>process-asciidoc</goal>
709 </goals>
710 </execution>
711 <execution>
712 <id>asciidoc-pdf-doc</id>
713 <phase>generate-resources</phase>
714 <configuration>
715 <backend>pdf</backend>
716 <outputDirectory>${project.build.directory}/generated-docs/pdf</outputDirectory>
717 <imagesDir>${project.basedir}/target/generated-docs/html/images</imagesDir>
718 </configuration>
719 <goals>
720 <goal>process-asciidoc</goal>
721 </goals>
722 </execution>
723 </executions>
724 </plugin>
Dinh Danh Lea5a44272018-08-22 12:41:50 +0100725
726 <plugin>
727 <groupId>org.apache.maven.plugins</groupId>
728 <artifactId>maven-resources-plugin</artifactId>
729 <version>3.0.2</version>
730 <executions>
731 <execution>
732 <id>copy-site-css</id>
733 <phase>generate-sources</phase>
734 <goals>
735 <goal>copy-resources</goal>
736 </goals>
737 <configuration>
738 <resources>
739 <resource>
740 <directory>${project.basedir}/src/site-docs/adoc/guides</directory>
741 <includes>
742 <include>**/*.css</include>
743 </includes>
744 </resource>
745 </resources>
746 <outputDirectory>${project.basedir}/target/generated-docs/pdf/styles</outputDirectory>
747 <overwrite>true</overwrite>
748 </configuration>
749 </execution>
750 </executions>
751 </plugin>
752
ramvermaaf74a622018-07-31 18:25:39 +0100753 </plugins>
754 </build>
755 </profile>
eikrwaqa94302f2018-05-23 14:08:29 +0100756 </profiles>
757
ramvermab59d62f2018-09-09 15:07:34 +0100758 <build>
759 <plugins>
760 <plugin>
761 <groupId>org.jacoco</groupId>
762 <artifactId>jacoco-maven-plugin</artifactId>
763 <executions>
764 <execution>
765 <id>pre-unit-test</id>
766 <goals>
767 <goal>prepare-agent</goal>
768 </goals>
769 <configuration>
770 <destFile>${sonar.jacoco.reportPath}</destFile>
771 <append>true</append>
772 </configuration>
773 </execution>
774 <execution>
775 <id>post-unit-test</id>
776 <phase>test</phase>
777 <goals>
778 <goal>report</goal>
779 </goals>
780 <configuration>
781 <dataFile>${sonar.jacoco.reportPath}</dataFile>
782 </configuration>
783 </execution>
784 </executions>
785 </plugin>
786 </plugins>
787 <pluginManagement>
788 <plugins>
789 <plugin>
790 <groupId>org.jacoco</groupId>
791 <artifactId>jacoco-maven-plugin</artifactId>
792 <version>${jacoco.version}</version>
793 <configuration>
794 <!-- Note: This exclusion list should match <sonar.exclusions> property
795 above -->
796 <excludes>
797 <exclude>**/gen/**</exclude>
798 <exclude>**/generated-sources/**</exclude>
799 <exclude>**/yang-gen/**</exclude>
800 <exclude>**/pax/**</exclude>
801 </excludes>
802 </configuration>
803 <executions>
804 <!-- Prepares the property pointing to the JaCoCo runtime agent which
805 is passed as VM argument when Maven the Surefire plugin is executed. -->
806 <execution>
807 <id>pre-unit-test</id>
808 <goals>
809 <goal>prepare-agent</goal>
810 </goals>
811 <configuration>
812 <destFile>${sonar.jacoco.reportPath}</destFile>
813 </configuration>
814 </execution>
815 <!-- Ensures that the code coverage report for unit tests is created
816 after unit tests have been run. -->
817 <execution>
818 <id>post-unit-test</id>
819 <phase>test</phase>
820 <goals>
821 <goal>report</goal>
822 </goals>
823 <configuration>
824 <dataFile>${sonar.jacoco.reportPath}</dataFile>
825 </configuration>
826 </execution>
827 </executions>
828 </plugin>
829 </plugins>
830 </pluginManagement>
831 </build>
eikrwaqa94302f2018-05-23 14:08:29 +0100832
833 <modules>
834 <module>model</module>
ramverma10d58cd2018-05-29 15:25:49 +0100835 <module>context</module>
ramverma37d6fd92018-06-01 11:51:36 +0100836 <module>core</module>
waqas.ikram57224402018-06-01 14:23:01 +0100837 <module>auth</module>
waqas.ikram75ff76e2018-06-06 11:04:36 +0100838 <module>services</module>
waqas.ikramf94d7522018-06-05 16:18:01 +0100839 <module>plugins</module>
ramverma3d025432018-07-19 18:45:16 +0100840 <module>examples</module>
waqas.ikram2816ea62018-06-27 16:16:42 +0100841 <module>testsuites</module>
ramverma0ba66782018-07-06 16:29:16 +0100842 <module>client</module>
ramverma1eb51982018-07-16 15:23:45 +0100843 <module>tools</module>
liamfallon79ae3f72018-07-24 14:23:37 +0100844 <module>packages</module>
eikrwaqa94302f2018-05-23 14:08:29 +0100845 </modules>
liamfallon4d6fc382018-06-27 12:50:17 +0100846</project>