blob: 1ce1b73afa46bc878a055fe9218b2d01cec5b4dc [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.
eikrwaqa94302f2018-05-23 14:08:29 +01005 ================================================================================
6 Licensed under the Apache License, Version 2.0 (the "License");
7 you may not use this file except in compliance with the License.
8 You may obtain a copy of the License at
9
10 http://www.apache.org/licenses/LICENSE-2.0
11
12 Unless required by applicable law or agreed to in writing, software
13 distributed under the License is distributed on an "AS IS" BASIS,
14 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 See the License for the specific language governing permissions and
16 limitations under the License.
17
18 SPDX-License-Identifier: Apache-2.0
19 ============LICENSE_END=========================================================
20-->
21
liamfallon32497612018-11-10 00:39:12 +000022<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
23 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 +010024 <modelVersion>4.0.0</modelVersion>
25 <parent>
26 <groupId>org.onap.policy.parent</groupId>
27 <artifactId>integration</artifactId>
Jim Hahna9a3a5d2019-05-30 13:04:05 -040028 <version>3.0.0-SNAPSHOT</version>
eikrwaqa94302f2018-05-23 14:08:29 +010029 <relativePath />
30 </parent>
31
waqas.ikramf524b882018-05-24 15:31:21 +010032 <groupId>org.onap.policy.apex-pdp</groupId>
eikrwaqa94302f2018-05-23 14:08:29 +010033 <artifactId>apex-pdp</artifactId>
Jim Hahna9a3a5d2019-05-30 13:04:05 -040034 <version>2.2.0-SNAPSHOT</version>
eikrwaqa94302f2018-05-23 14:08:29 +010035 <packaging>pom</packaging>
36
ramverma6029d252018-05-25 11:55:45 +010037 <name>policy-apex-pdp</name>
eikrwaqa94302f2018-05-23 14:08:29 +010038 <description>Packaging for all the Apex components, the engine, the WAR service, and the editor.</description>
39
40 <properties>
41 <encoding>UTF-8</encoding>
42 <file.encoding>UTF-8</file.encoding>
waqas.ikram75ff76e2018-06-06 11:04:36 +010043 <version.commons-cli>1.4</version.commons-cli>
liamfallona46382d2018-09-18 16:20:26 +010044 <version.kafka>1.1.1</version.kafka>
liamfallona40a3832018-07-06 09:41:40 +010045 <version.jersey>2.26</version.jersey>
liamfallon1ba6a322019-02-22 17:30:59 +000046 <version.hibernate>5.3.7.Final</version.hibernate>
Jim Hahna9a3a5d2019-05-30 13:04:05 -040047 <version.policy.common>1.5.0-SNAPSHOT</version.policy.common>
48 <version.policy.models>2.1.0-SNAPSHOT</version.policy.models>
ramvermab59d62f2018-09-09 15:07:34 +010049 <!-- sonar/jacoco overrides -->
50 <!-- Overriding oparent default sonar/jacoco settings Combine all our reports
51 into one file shared across sub-modules -->
52 <sonar.jacoco.reportPath>${project.basedir}/../target/code-coverage/jacoco-ut.exec</sonar.jacoco.reportPath>
53 <sonar.jacoco.itReportPath>${project.basedir}/../target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPath>
54 <sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis>
eikrwaqa94302f2018-05-23 14:08:29 +010055 </properties>
56
57 <distributionManagement>
58 <site>
59 <id>ecomp-site</id>
60 <url>dav:${onap.nexus.url}${sitePath}</url>
61 </site>
62 </distributionManagement>
63
64 <dependencies>
65 <dependency>
66 <groupId>junit</groupId>
67 <artifactId>junit</artifactId>
68 <scope>test</scope>
69 </dependency>
70 <dependency>
71 <groupId>org.slf4j</groupId>
72 <artifactId>slf4j-ext</artifactId>
liamfallonf86117b2018-06-19 11:31:44 +080073 <version>1.8.0-beta2</version>
eikrwaqa94302f2018-05-23 14:08:29 +010074 </dependency>
75 <dependency>
76 <groupId>org.slf4j</groupId>
77 <artifactId>slf4j-api</artifactId>
78 </dependency>
79 <dependency>
80 <groupId>ch.qos.logback</groupId>
81 <artifactId>logback-core</artifactId>
82 </dependency>
83 <dependency>
84 <groupId>ch.qos.logback</groupId>
85 <artifactId>logback-classic</artifactId>
86 </dependency>
87 </dependencies>
88
liamfallonefdaa0d2018-08-03 16:12:01 +010089 <dependencyManagement>
90 <dependencies>
91 <dependency>
92 <groupId>org.onap.policy.common</groupId>
93 <artifactId>utils</artifactId>
94 <version>${version.policy.common}</version>
95 </dependency>
liamfallonf3250832018-08-30 09:37:29 +010096 <dependency>
97 <groupId>org.onap.policy.common</groupId>
98 <artifactId>common-parameters</artifactId>
ramverma79e5ede2018-10-24 20:14:02 +010099 <version>${version.policy.common}</version>
liamfallonf3250832018-08-30 09:37:29 +0100100 </dependency>
liamfallonefdaa0d2018-08-03 16:12:01 +0100101 </dependencies>
102 </dependencyManagement>
eikrwaqa94302f2018-05-23 14:08:29 +0100103
104 <profiles>
105 <profile>
106 <!--This profile is used to store Eclipse m2e settings only. It has no
107 influence on the Maven build itself. -->
108 <id>only-eclipse</id>
109 <activation>
110 <property>
111 <name>m2e.version</name>
112 </property>
113 </activation>
114 <build>
115 <pluginManagement>
116 <plugins>
117 <plugin>
118 <groupId>org.eclipse.m2e</groupId>
119 <artifactId>lifecycle-mapping</artifactId>
120 <version>1.0.0</version>
121 <configuration>
122 <lifecycleMappingMetadata>
123 <pluginExecutions>
124 <pluginExecution>
125 <pluginExecutionFilter>
waqas.ikram34bdfe12018-05-31 11:09:58 +0100126 <groupId>org.codehaus.mojo</groupId>
127 <artifactId>exec-maven-plugin</artifactId>
waqas.ikram48229522018-05-31 14:49:38 +0100128 <versionRange>[1.6.0,)</versionRange>
waqas.ikram34bdfe12018-05-31 11:09:58 +0100129 <goals>
130 <goal>java</goal>
ramverma28ea3362018-07-18 16:28:07 +0100131 <goal>exec</goal>
waqas.ikram34bdfe12018-05-31 11:09:58 +0100132 </goals>
133 </pluginExecutionFilter>
134 <action>
135 <execute />
136 </action>
137 </pluginExecution>
138 <pluginExecution>
139 <pluginExecutionFilter>
eikrwaqa94302f2018-05-23 14:08:29 +0100140 <groupId>org.commonjava.maven.plugins</groupId>
141 <artifactId>directory-maven-plugin</artifactId>
142 <versionRange>0.2</versionRange>
143 <goals>
144 <goal>directory-of</goal>
145 </goals>
146 </pluginExecutionFilter>
147 <action>
148 <execute />
149 </action>
150 </pluginExecution>
ramvermaaf74a622018-07-31 18:25:39 +0100151 <pluginExecution>
ramvermac6d74e62018-07-11 14:21:13 +0100152 <pluginExecutionFilter>
153 <groupId>org.apache.maven.plugins</groupId>
154 <artifactId>maven-dependency-plugin</artifactId>
liamfallon32497612018-11-10 00:39:12 +0000155 <versionRange>[2.0,)</versionRange>
ramvermac6d74e62018-07-11 14:21:13 +0100156 <goals>
liamfallon32497612018-11-10 00:39:12 +0000157 <goal>unpack</goal>
ramvermac6d74e62018-07-11 14:21:13 +0100158 <goal>unpack-dependencies</goal>
159 </goals>
160 </pluginExecutionFilter>
161 <action>
162 <execute />
163 </action>
164 </pluginExecution>
liamfallon32497612018-11-10 00:39:12 +0000165 <pluginExecution>
166 <pluginExecutionFilter>
167 <groupId>org.apache.maven.plugins</groupId>
168 <artifactId>maven-antrun-plugin</artifactId>
169 <versionRange>[1.0,)</versionRange>
170 <goals>
171 <goal>run</goal>
172 </goals>
173 </pluginExecutionFilter>
174 <action>
175 <ignore />
176 </action>
177 </pluginExecution>
eikrwaqa94302f2018-05-23 14:08:29 +0100178 </pluginExecutions>
179 </lifecycleMappingMetadata>
180 </configuration>
181 </plugin>
182 </plugins>
183 </pluginManagement>
184 </build>
185 </profile>
ramvermaaf74a622018-07-31 18:25:39 +0100186
187 <profile>
188 <!--This profile is used to create local APEX documentation and a Maven site -->
189 <id>apexSite</id>
190 <activation>
191 <property>
192 <name>apexSite</name>
193 </property>
194 </activation>
195 <properties>
196 <!-- 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
197 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/ -->
198 <dependency.locations.enabled>false</dependency.locations.enabled>
199
200 <!-- Site and ADOC properties -->
201 <apex.adsite.prefix>https://www.onap.org/policy/apex-pdp/site</apex.adsite.prefix>
202 <release-version>${project.version}</release-version>
203
204 <adsite-main-dir>${project.basedir}/src</adsite-main-dir>
205 <adsite-tools-wsclients-dir>${project.basedir}/tools/simple-wsclient/src</adsite-tools-wsclients-dir>
206 <adsite-tools-common-dir>${project.basedir}/tools/tools-common/src</adsite-tools-common-dir>
liamfallona41c8772018-09-05 15:46:31 +0100207
ramvermaaf74a622018-07-31 18:25:39 +0100208 <adsite-examples-myfirstpolicy-dir>${project.basedir}/examples/examples-myfirstpolicy/src</adsite-examples-myfirstpolicy-dir>
209 <adsite-examples-decisionmaker-dir>${project.basedir}/examples/examples-decisionmaker/src</adsite-examples-decisionmaker-dir>
210 <adsite-examples-pcvs-dir>${project.basedir}/examples/examples-pcvs/src</adsite-examples-pcvs-dir>
211 <adsite-examples-periodic-dir>${project.basedir}/examples/examples-periodic/src</adsite-examples-periodic-dir>
212 <adsite-examples-onap-vcpe-dir>${project.basedir}/examples/examples-onap-vcpe/src</adsite-examples-onap-vcpe-dir>
s003703465262c352019-04-11 00:14:39 +0530213 <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 +0100214 <adsite-examples-servlet-dir>${project.basedir}/examples/examples-servlet/src</adsite-examples-servlet-dir>
ramvermaaf74a622018-07-31 18:25:39 +0100215
liamfallona41c8772018-09-05 15:46:31 +0100216 <adsite-packages-docker-dir>${project.basedir}/packages/apex-pdp-docker/src</adsite-packages-docker-dir>
217
ramvermaaf74a622018-07-31 18:25:39 +0100218 <adsite-plugins-event-protocol-dir>${project.basedir}/plugins/plugins-event/plugins-event-protocol/src</adsite-plugins-event-protocol-dir>
219 <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>
220 <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>
221 <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>
222
223 <adsite-plugins-event-carrier-dir>${project.basedir}/plugins/plugins-event/plugins-event-carrier/src</adsite-plugins-event-carrier-dir>
224 <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>
225 <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>
226 <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>
227 <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>
228 <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>
229 <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>
230 <adsite-plugins-context-dir>${project.basedir}/plugins/plugins-context/src</adsite-plugins-context-dir>
Dinh Danh Lea5a44272018-08-22 12:41:50 +0100231 <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 +0100232 <adsite-plugins-executor-dir>${project.basedir}/plugins/plugins-executor/src</adsite-plugins-executor-dir>
233 <adsite-plugins-executor-java-dir>${project.basedir}/plugins/plugins-executor/plugins-executor-java/src</adsite-plugins-executor-java-dir>
234 <adsite-plugins-executor-javascript-dir>${project.basedir}/plugins/plugins-executor/plugins-executor-javascript/src</adsite-plugins-executor-javascript-dir>
235 <adsite-plugins-executor-jruby-dir>${project.basedir}/plugins/plugins-executor/plugins-executor-jruby/src</adsite-plugins-executor-jruby-dir>
236 <adsite-plugins-executor-jython-dir>${project.basedir}/plugins/plugins-executor/plugins-executor-jython/src</adsite-plugins-executor-jython-dir>
237 <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 +0100238
ramvermaaf74a622018-07-31 18:25:39 +0100239 <adsite-services-engine-dir>${project.basedir}/services/services-engine/src</adsite-services-engine-dir>
240 </properties>
241 <distributionManagement>
242 <site>
243 <id>${project.artifactId}-site</id>
244 <url>${apex.adsite.prefix}/</url>
245 </site>
246 </distributionManagement>
247 <build>
248 <plugins>
249 <plugin>
250 <groupId>org.commonjava.maven.plugins</groupId>
251 <artifactId>directory-maven-plugin</artifactId>
252 <version>0.2</version>
253 <executions>
254 <execution>
255 <id>directories</id>
256 <goals>
257 <goal>directory-of</goal>
258 </goals>
259 <phase>initialize</phase>
260 <configuration>
261 <property>apex.basedir</property>
262 <project>
263 <groupId>org.onap.policy.apex-pdp</groupId>
264 <artifactId>apex-pdp</artifactId>
265 </project>
266 </configuration>
267 </execution>
268 </executions>
269 </plugin>
270
271 <plugin>
272 <groupId>org.apache.maven.plugins</groupId>
273 <artifactId>maven-site-plugin</artifactId>
274 <version>3.7.1</version>
275 <configuration>
276 <stagingDirectory>${apex.basedir}/target/ad-site</stagingDirectory>
277 <asciidoc>
278 <embedAssets>true</embedAssets>
279 <attributes>
280 <source-highlighter>coderay</source-highlighter>
281 <coderay-css>style</coderay-css>
282 <imagesdir>images</imagesdir>
283 </attributes>
284 </asciidoc>
285 <moduleExcludes>
286 <asciidoc>**/_*.adoc</asciidoc>
287 </moduleExcludes>
288 </configuration>
289 <dependencies>
290 <dependency>
291 <groupId>org.apache.maven.doxia</groupId>
292 <artifactId>doxia-site-renderer</artifactId>
293 <version>1.8</version>
294 </dependency>
295 <dependency>
296 <groupId>org.asciidoctor</groupId>
297 <artifactId>asciidoctor-maven-plugin</artifactId>
298 <version>1.5.6</version>
299 </dependency>
300 </dependencies>
301 </plugin>
302
303 <plugin>
304 <groupId>org.apache.maven.plugins</groupId>
305 <artifactId>maven-resources-plugin</artifactId>
306 <version>3.0.2</version>
307 <executions>
308 <execution>
309 <id>copy-site-css</id>
310 <phase>process-resources</phase>
311 <goals>
312 <goal>copy-resources</goal>
313 </goals>
314 <configuration>
315 <resources>
316 <resource>
317 <directory>src/site/css</directory>
318 <includes>
319 <include>**/*.css</include>
320 </includes>
321 </resource>
322 </resources>
323 <outputDirectory>${project.build.directory}/site/css</outputDirectory>
324 <overwrite>true</overwrite>
325 </configuration>
326 </execution>
327
328 <execution>
329 <id>copy-site-logos</id>
330 <phase>process-resources</phase>
331 <goals>
332 <goal>copy-resources</goal>
333 </goals>
334 <configuration>
335 <resources>
336 <resource>
337 <directory>src/site/images</directory>
338 <includes>
339 <include>**/*.png</include>
340 </includes>
341 </resource>
342 </resources>
343 <outputDirectory>${project.build.directory}/site/images</outputDirectory>
344 <overwrite>true</overwrite>
345 </configuration>
346 </execution>
347
348 <execution>
349 <id>copy-um-install-images</id>
350 <phase>process-resources</phase>
351 <goals>
352 <goal>copy-resources</goal>
353 </goals>
354 <configuration>
355 <resources>
356 <resource>
357 <directory>src/site-docs/adoc/resources/images/install-guide</directory>
358 <includes>
359 <include>**/*.jpg</include>
360 <include>**/*.png</include>
361 </includes>
362 </resource>
363 </resources>
364 <outputDirectory>${project.build.directory}/site/user-manual/install/images/install-guide</outputDirectory>
365 </configuration>
366 </execution>
367
368 <execution>
369 <id>copy-howto-config-images</id>
370 <phase>process-resources</phase>
371 <goals>
372 <goal>copy-resources</goal>
373 </goals>
374 <configuration>
375 <resources>
376 <resource>
377 <directory>src/site-docs/adoc/resources/images/apex-intro</directory>
378 <includes>
379 <include>ApexEngineConfig.jpg</include>
380 <include>ApexEngineConfig.png</include>
381 </includes>
382 </resource>
383 </resources>
384 <outputDirectory>${project.build.directory}/site/user-manual/configuration/images/apex-intro</outputDirectory>
385 </configuration>
386 </execution>
387
388 <execution>
389 <id>copy-tech-intro-apex-images</id>
390 <phase>process-resources</phase>
391 <goals>
392 <goal>copy-resources</goal>
393 </goals>
394 <configuration>
395 <resources>
396 <resource>
397 <directory>src/site-docs/adoc/resources/images/apex-intro</directory>
398 <includes>
399 <include>**/*.jpg</include>
400 <include>**/*.png</include>
401 </includes>
402 </resource>
403 </resources>
404 <outputDirectory>${project.build.directory}/site/apex-intro/images/apex-intro</outputDirectory>
405 </configuration>
406 </execution>
407
408 <execution>
409 <id>copy-tech-pm-apex-images</id>
410 <phase>process-resources</phase>
411 <goals>
412 <goal>copy-resources</goal>
413 </goals>
414 <configuration>
415 <resources>
416 <resource>
417 <directory>src/site-docs/adoc/resources/images/apex-policy-model</directory>
418 <includes>
419 <include>**/*.jpg</include>
420 <include>**/*.png</include>
421 </includes>
422 </resource>
423 </resources>
424 <outputDirectory>${project.build.directory}/site/policy-guide/policy-model/images/apex-policy-model</outputDirectory>
425 </configuration>
426 </execution>
427
428 <execution>
429 <id>copy-tech-pm-apex-intro-images</id>
430 <phase>process-resources</phase>
431 <goals>
432 <goal>copy-resources</goal>
433 </goals>
434 <configuration>
435 <resources>
436 <resource>
437 <directory>src/site-docs/adoc/resources/images/apex-intro</directory>
438 <includes>
439 <include>ApexPolicyMatrix.png</include>
440 </includes>
441 </resource>
442 </resources>
443 <outputDirectory>${project.build.directory}/site/policy-guide/images/apex-intro</outputDirectory>
444 </configuration>
445 </execution>
446
447 <execution>
448 <id>copy-domain-mfp-images</id>
449 <phase>process-resources</phase>
450 <goals>
451 <goal>copy-resources</goal>
452 </goals>
453 <configuration>
454 <resources>
455 <resource>
Dinh Danh Lea5a44272018-08-22 12:41:50 +0100456 <directory>${project.basedir}/examples/examples-myfirstpolicy/src/site-docs/adoc/resources/images</directory>
ramvermaaf74a622018-07-31 18:25:39 +0100457 <includes>
458 <include>**/*.jpg</include>
459 <include>**/*.png</include>
460 </includes>
461 </resource>
462 </resources>
463 <outputDirectory>${project.build.directory}/site/user-manual/my-first-policy/images</outputDirectory>
464 </configuration>
465 </execution>
466
467 <execution>
468 <id>copy-asciidoc-generated</id>
469 <phase>process-resources</phase>
470 <goals>
471 <goal>copy-resources</goal>
472 </goals>
473 <configuration>
474 <resources>
475 <resource>
476 <directory>target/generated-docs</directory>
477 </resource>
478 </resources>
479 <outputDirectory>${project.build.directory}/site/docs-apex</outputDirectory>
480 </configuration>
481 </execution>
482 </executions>
483 </plugin>
a.sreekumar0fbf0392019-06-20 09:39:59 +0000484
485 <plugin>
486 <artifactId>maven-checkstyle-plugin</artifactId>
487 <executions>
488 <execution>
489 <id>onap-java-style</id>
490 <goals>
491 <goal>check</goal>
492 </goals>
493 <phase>process-sources</phase>
494 <configuration>
495 <!-- Use Google Java Style Guide: https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml
496 with minor changes -->
497 <configLocation>onap-checkstyle/onap-java-style.xml</configLocation>
498 <!-- <sourceDirectory> is needed so that checkstyle ignores the generated sources directory -->
499 <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
500 <includeResources>true</includeResources>
501 <includeTestSourceDirectory>true</includeTestSourceDirectory>
502 <includeTestResources>true</includeTestResources>
503 <excludes>
504 </excludes>
505 <consoleOutput>true</consoleOutput>
506 <failOnViolation>true</failOnViolation>
507 <violationSeverity>warning</violationSeverity>
508 </configuration>
509 </execution>
510 </executions>
511 <dependencies>
512 <dependency>
513 <groupId>org.onap.oparent</groupId>
514 <artifactId>checkstyle</artifactId>
515 <version>${oparent.version}</version>
516 <scope>compile</scope>
517 </dependency>
518 </dependencies>
519 </plugin>
ramvermaaf74a622018-07-31 18:25:39 +0100520 </plugins>
521 </build>
522
523 <reporting>
524 <plugins>
525 <plugin>
526 <groupId>org.apache.maven.plugins</groupId>
527 <artifactId>maven-project-info-reports-plugin</artifactId>
528 <version>2.9</version>
529 </plugin>
530 <plugin>
531 <groupId>org.apache.maven.plugins</groupId>
532 <artifactId>maven-javadoc-plugin</artifactId>
533 <version>3.0.0-M1</version>
534 <reportSets>
535 <reportSet>
536 <id>default</id>
537 <reports>
538 <report>javadoc</report>
539 </reports>
540 </reportSet>
541 <reportSet>
542 <id>aggregate</id>
543 <inherited>false</inherited>
544 <reports>
545 <report>aggregate</report>
546 </reports>
547 </reportSet>
548 </reportSets>
549 <configuration>
550 <destDir>javadocs</destDir>
551 <source>${maven.compiler.target}</source>
552 <encoding>${project.resources.sourceEncoding}</encoding>
553 <docencoding>${project.resources.sourceEncoding}</docencoding>
554 <charset>${project.resources.sourceEncoding}</charset>
555 <!--<aggregate>false</aggregate>-->
556 <nohelp>true</nohelp>
557 <header>APEX - ${project.artifactId} ${project.version}</header>
558 <footer>APEX - ${project.artifactId} ${project.version}</footer>
559 <doctitle>APEX - ${project.artifactId} ${project.version}</doctitle>
560 <noqualifier>all</noqualifier>
561 <detectLinks>false</detectLinks>
562 <detectJavaApiLink>true</detectJavaApiLink>
563 <javadocDirectory>${project.basedir}/src/main/javadoc</javadocDirectory>
564 <docfilessubdirs>true</docfilessubdirs>
565 <overview>overview.html</overview>
566 <show>public</show>
567 <!-- Exclude JAXB generated packages -->
568 <excludePackageNames>org.onap.policy.apex.plugins.event.protocol.xml.jaxb</excludePackageNames>
569 </configuration>
570 </plugin>
571 </plugins>
572 </reporting>
573 </profile>
574
575 <profile>
576 <id>apexDocs</id>
577 <activation>
578 <property>
579 <name>apexDocs</name>
580 </property>
581 </activation>
liamfallon3aa7cbe2018-10-31 16:35:54 +0000582 <modules />
ramvermaaf74a622018-07-31 18:25:39 +0100583 <build>
584 <plugins>
585 <plugin>
586 <groupId>org.asciidoctor</groupId>
587 <artifactId>asciidoctor-maven-plugin</artifactId>
588 <version>1.5.6</version>
589 <dependencies>
590 <dependency>
591 <groupId>org.asciidoctor</groupId>
592 <artifactId>asciidoctorj-pdf</artifactId>
593 <version>1.5.0-alpha.16</version>
594 </dependency>
595 </dependencies>
596 <configuration>
597 <sourceHighlighter>coderay</sourceHighlighter>
598 <sourceDirectory>src/site-docs/adoc/guides</sourceDirectory>
599 <preserveDirectories>true</preserveDirectories>
600 <attributes>
601 <toc />
602 <pagenums />
603 <sectnums />
604 <linkcss>true</linkcss>
605 <stylesdir>styles</stylesdir>
606
607 <!-- Change this to get another style -->
608 <stylesheet>compass/rocket-panda.css</stylesheet>
609 <pdf-stylesdir>${project.basedir}/src/site-docs/adoc/resources-pdf/themes</pdf-stylesdir>
610 <pdf-style>apex-pdf.yml</pdf-style>
611 <pdf-fontsdir>${project.basedir}/src/site-docs/adoc/resources-pdf/fonts</pdf-fontsdir>
612
613 <revnumber>${project.version}</revnumber>
614 <revdate>${maven.build.timestamp}</revdate>
615 <organization>${project.organization.name}</organization>
616
617 <release-version>${project.version}</release-version>
618
619 <adsite-main-dir>${project.basedir}/src</adsite-main-dir>
620 <adsite-tools-wsclients-dir>${project.basedir}/tools/simple-wsclient/src</adsite-tools-wsclients-dir>
621 <adsite-tools-common-dir>${project.basedir}/tools/tools-common/src</adsite-tools-common-dir>
liamfallona41c8772018-09-05 15:46:31 +0100622
ramvermaaf74a622018-07-31 18:25:39 +0100623 <adsite-examples-myfirstpolicy-dir>${project.basedir}/examples/examples-myfirstpolicy/src</adsite-examples-myfirstpolicy-dir>
624 <adsite-examples-decisionmaker-dir>${project.basedir}/examples/examples-decisionmaker/src</adsite-examples-decisionmaker-dir>
625 <adsite-examples-pcvs-dir>${project.basedir}/examples/examples-pcvs/src</adsite-examples-pcvs-dir>
626 <adsite-examples-periodic-dir>${project.basedir}/examples/examples-periodic/src</adsite-examples-periodic-dir>
627 <adsite-examples-onap-vcpe-dir>${project.basedir}/examples/examples-onap-vcpe/src</adsite-examples-onap-vcpe-dir>
s003703465262c352019-04-11 00:14:39 +0530628 <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 +0100629 <adsite-examples-servlet-dir>${project.basedir}/examples/examples-servlet/src</adsite-examples-servlet-dir>
ramvermaaf74a622018-07-31 18:25:39 +0100630
liamfallona41c8772018-09-05 15:46:31 +0100631 <adsite-packages-docker-dir>${project.basedir}/packages/apex-pdp-docker/src</adsite-packages-docker-dir>
632
ramvermaaf74a622018-07-31 18:25:39 +0100633 <adsite-plugins-event-protocol-dir>${project.basedir}/plugins/plugins-event/plugins-event-protocol/src</adsite-plugins-event-protocol-dir>
634 <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>
635 <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>
636 <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>
637 <adsite-plugins-event-carrier-dir>${project.basedir}/plugins/plugins-event/plugins-event-carrier/src</adsite-plugins-event-carrier-dir>
638 <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>
639 <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>
640 <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>
641 <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>
642 <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>
643 <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>
644 <adsite-plugins-context-dir>${project.basedir}/plugins/plugins-context/src</adsite-plugins-context-dir>
Dinh Danh Lea5a44272018-08-22 12:41:50 +0100645 <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 +0100646 <adsite-plugins-executor-dir>${project.basedir}/plugins/plugins-executor/src</adsite-plugins-executor-dir>
647 <adsite-plugins-executor-java-dir>${project.basedir}/plugins/plugins-executor/plugins-executor-java/src</adsite-plugins-executor-java-dir>
648 <adsite-plugins-executor-javascript-dir>${project.basedir}/plugins/plugins-executor/plugins-executor-javascript/src</adsite-plugins-executor-javascript-dir>
649 <adsite-plugins-executor-jruby-dir>${project.basedir}/plugins/plugins-executor/plugins-executor-jruby/src</adsite-plugins-executor-jruby-dir>
650 <adsite-plugins-executor-jython-dir>${project.basedir}/plugins/plugins-executor/plugins-executor-jython/src</adsite-plugins-executor-jython-dir>
651 <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 +0100652
ramvermaaf74a622018-07-31 18:25:39 +0100653 <adsite-services-engine-dir>${project.basedir}/services/services-engine/src</adsite-services-engine-dir>
654 </attributes>
655 </configuration>
656 <executions>
657 <execution>
658 <id>asciidoc-html-doc</id>
659 <phase>generate-resources</phase>
660 <configuration>
661 <backend>html</backend>
662 <outputDirectory>${project.build.directory}/generated-docs/html</outputDirectory>
663 <resources>
664 <resource>
665 <directory>src/site-docs/adoc/resources</directory>
666 </resource>
667 <resource>
Dinh Danh Lea5a44272018-08-22 12:41:50 +0100668 <directory>${project.basedir}/examples/examples-myfirstpolicy/src/site-docs/adoc/resources</directory>
ramvermaaf74a622018-07-31 18:25:39 +0100669 </resource>
670 </resources>
671 </configuration>
672 <goals>
673 <goal>process-asciidoc</goal>
674 </goals>
675 </execution>
676 <execution>
677 <id>asciidoc-pdf-doc</id>
678 <phase>generate-resources</phase>
679 <configuration>
680 <backend>pdf</backend>
681 <outputDirectory>${project.build.directory}/generated-docs/pdf</outputDirectory>
682 <imagesDir>${project.basedir}/target/generated-docs/html/images</imagesDir>
683 </configuration>
684 <goals>
685 <goal>process-asciidoc</goal>
686 </goals>
687 </execution>
688 </executions>
689 </plugin>
Dinh Danh Lea5a44272018-08-22 12:41:50 +0100690
691 <plugin>
692 <groupId>org.apache.maven.plugins</groupId>
693 <artifactId>maven-resources-plugin</artifactId>
694 <version>3.0.2</version>
695 <executions>
696 <execution>
697 <id>copy-site-css</id>
698 <phase>generate-sources</phase>
699 <goals>
700 <goal>copy-resources</goal>
701 </goals>
702 <configuration>
703 <resources>
704 <resource>
705 <directory>${project.basedir}/src/site-docs/adoc/guides</directory>
706 <includes>
707 <include>**/*.css</include>
708 </includes>
709 </resource>
710 </resources>
711 <outputDirectory>${project.basedir}/target/generated-docs/pdf/styles</outputDirectory>
712 <overwrite>true</overwrite>
713 </configuration>
714 </execution>
715 </executions>
716 </plugin>
717
ramvermaaf74a622018-07-31 18:25:39 +0100718 </plugins>
719 </build>
720 </profile>
eikrwaqa94302f2018-05-23 14:08:29 +0100721 </profiles>
722
ramvermab59d62f2018-09-09 15:07:34 +0100723 <build>
724 <plugins>
725 <plugin>
726 <groupId>org.jacoco</groupId>
727 <artifactId>jacoco-maven-plugin</artifactId>
728 <executions>
729 <execution>
730 <id>pre-unit-test</id>
731 <goals>
732 <goal>prepare-agent</goal>
733 </goals>
734 <configuration>
735 <destFile>${sonar.jacoco.reportPath}</destFile>
736 <append>true</append>
737 </configuration>
738 </execution>
739 <execution>
740 <id>post-unit-test</id>
741 <phase>test</phase>
742 <goals>
743 <goal>report</goal>
744 </goals>
745 <configuration>
746 <dataFile>${sonar.jacoco.reportPath}</dataFile>
747 </configuration>
748 </execution>
749 </executions>
750 </plugin>
751 </plugins>
752 <pluginManagement>
753 <plugins>
754 <plugin>
755 <groupId>org.jacoco</groupId>
756 <artifactId>jacoco-maven-plugin</artifactId>
757 <version>${jacoco.version}</version>
758 <configuration>
759 <!-- Note: This exclusion list should match <sonar.exclusions> property
760 above -->
761 <excludes>
762 <exclude>**/gen/**</exclude>
763 <exclude>**/generated-sources/**</exclude>
764 <exclude>**/yang-gen/**</exclude>
765 <exclude>**/pax/**</exclude>
766 </excludes>
767 </configuration>
768 <executions>
769 <!-- Prepares the property pointing to the JaCoCo runtime agent which
770 is passed as VM argument when Maven the Surefire plugin is executed. -->
771 <execution>
772 <id>pre-unit-test</id>
773 <goals>
774 <goal>prepare-agent</goal>
775 </goals>
776 <configuration>
777 <destFile>${sonar.jacoco.reportPath}</destFile>
778 </configuration>
779 </execution>
780 <!-- Ensures that the code coverage report for unit tests is created
781 after unit tests have been run. -->
782 <execution>
783 <id>post-unit-test</id>
784 <phase>test</phase>
785 <goals>
786 <goal>report</goal>
787 </goals>
788 <configuration>
789 <dataFile>${sonar.jacoco.reportPath}</dataFile>
790 </configuration>
791 </execution>
792 </executions>
793 </plugin>
794 </plugins>
795 </pluginManagement>
796 </build>
eikrwaqa94302f2018-05-23 14:08:29 +0100797
798 <modules>
799 <module>model</module>
ramverma10d58cd2018-05-29 15:25:49 +0100800 <module>context</module>
ramverma37d6fd92018-06-01 11:51:36 +0100801 <module>core</module>
waqas.ikram57224402018-06-01 14:23:01 +0100802 <module>auth</module>
waqas.ikram75ff76e2018-06-06 11:04:36 +0100803 <module>services</module>
waqas.ikramf94d7522018-06-05 16:18:01 +0100804 <module>plugins</module>
ramverma3d025432018-07-19 18:45:16 +0100805 <module>examples</module>
waqas.ikram2816ea62018-06-27 16:16:42 +0100806 <module>testsuites</module>
ramverma0ba66782018-07-06 16:29:16 +0100807 <module>client</module>
ramverma1eb51982018-07-16 15:23:45 +0100808 <module>tools</module>
liamfallon79ae3f72018-07-24 14:23:37 +0100809 <module>packages</module>
eikrwaqa94302f2018-05-23 14:08:29 +0100810 </modules>
liamfallon4d6fc382018-06-27 12:50:17 +0100811</project>