blob: 6d0bb01ed01fe02bc1e5fee565de30422f20f6bc [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>
jrh3949f47c2019-09-12 10:00:24 -040035 <version>2.2.3-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>
Pamela Dragoshd2534172019-09-09 19:58:04 -040048 <version.policy.common>1.5.2</version.policy.common>
49 <version.policy.models>2.1.3</version.policy.models>
ramvermab59d62f2018-09-09 15:07:34 +010050 <!-- sonar/jacoco overrides -->
51 <!-- Overriding oparent default sonar/jacoco settings Combine all our reports
52 into one file shared across sub-modules -->
53 <sonar.jacoco.reportPath>${project.basedir}/../target/code-coverage/jacoco-ut.exec</sonar.jacoco.reportPath>
54 <sonar.jacoco.itReportPath>${project.basedir}/../target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPath>
55 <sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis>
eikrwaqa94302f2018-05-23 14:08:29 +010056 </properties>
57
58 <distributionManagement>
59 <site>
60 <id>ecomp-site</id>
61 <url>dav:${onap.nexus.url}${sitePath}</url>
62 </site>
63 </distributionManagement>
64
65 <dependencies>
66 <dependency>
67 <groupId>junit</groupId>
68 <artifactId>junit</artifactId>
69 <scope>test</scope>
70 </dependency>
71 <dependency>
72 <groupId>org.slf4j</groupId>
73 <artifactId>slf4j-ext</artifactId>
liamfallonf86117b2018-06-19 11:31:44 +080074 <version>1.8.0-beta2</version>
eikrwaqa94302f2018-05-23 14:08:29 +010075 </dependency>
76 <dependency>
77 <groupId>org.slf4j</groupId>
78 <artifactId>slf4j-api</artifactId>
79 </dependency>
80 <dependency>
81 <groupId>ch.qos.logback</groupId>
82 <artifactId>logback-core</artifactId>
83 </dependency>
84 <dependency>
85 <groupId>ch.qos.logback</groupId>
86 <artifactId>logback-classic</artifactId>
87 </dependency>
a.sreekumara86ba142019-07-24 09:35:31 +000088 <dependency>
89 <groupId>org.projectlombok</groupId>
90 <artifactId>lombok</artifactId>
91 </dependency>
eikrwaqa94302f2018-05-23 14:08:29 +010092 </dependencies>
93
liamfallonefdaa0d2018-08-03 16:12:01 +010094 <dependencyManagement>
95 <dependencies>
96 <dependency>
97 <groupId>org.onap.policy.common</groupId>
98 <artifactId>utils</artifactId>
99 <version>${version.policy.common}</version>
100 </dependency>
liamfallonf3250832018-08-30 09:37:29 +0100101 <dependency>
102 <groupId>org.onap.policy.common</groupId>
103 <artifactId>common-parameters</artifactId>
ramverma79e5ede2018-10-24 20:14:02 +0100104 <version>${version.policy.common}</version>
liamfallonf3250832018-08-30 09:37:29 +0100105 </dependency>
liamfallonefdaa0d2018-08-03 16:12:01 +0100106 </dependencies>
107 </dependencyManagement>
eikrwaqa94302f2018-05-23 14:08:29 +0100108
109 <profiles>
110 <profile>
111 <!--This profile is used to store Eclipse m2e settings only. It has no
112 influence on the Maven build itself. -->
113 <id>only-eclipse</id>
114 <activation>
115 <property>
116 <name>m2e.version</name>
117 </property>
118 </activation>
119 <build>
120 <pluginManagement>
121 <plugins>
122 <plugin>
123 <groupId>org.eclipse.m2e</groupId>
124 <artifactId>lifecycle-mapping</artifactId>
125 <version>1.0.0</version>
126 <configuration>
127 <lifecycleMappingMetadata>
128 <pluginExecutions>
129 <pluginExecution>
130 <pluginExecutionFilter>
waqas.ikram34bdfe12018-05-31 11:09:58 +0100131 <groupId>org.codehaus.mojo</groupId>
132 <artifactId>exec-maven-plugin</artifactId>
waqas.ikram48229522018-05-31 14:49:38 +0100133 <versionRange>[1.6.0,)</versionRange>
waqas.ikram34bdfe12018-05-31 11:09:58 +0100134 <goals>
135 <goal>java</goal>
ramverma28ea3362018-07-18 16:28:07 +0100136 <goal>exec</goal>
waqas.ikram34bdfe12018-05-31 11:09:58 +0100137 </goals>
138 </pluginExecutionFilter>
139 <action>
140 <execute />
141 </action>
142 </pluginExecution>
143 <pluginExecution>
144 <pluginExecutionFilter>
eikrwaqa94302f2018-05-23 14:08:29 +0100145 <groupId>org.commonjava.maven.plugins</groupId>
146 <artifactId>directory-maven-plugin</artifactId>
147 <versionRange>0.2</versionRange>
148 <goals>
149 <goal>directory-of</goal>
150 </goals>
151 </pluginExecutionFilter>
152 <action>
153 <execute />
154 </action>
155 </pluginExecution>
ramvermaaf74a622018-07-31 18:25:39 +0100156 <pluginExecution>
ramvermac6d74e62018-07-11 14:21:13 +0100157 <pluginExecutionFilter>
158 <groupId>org.apache.maven.plugins</groupId>
159 <artifactId>maven-dependency-plugin</artifactId>
liamfallon32497612018-11-10 00:39:12 +0000160 <versionRange>[2.0,)</versionRange>
ramvermac6d74e62018-07-11 14:21:13 +0100161 <goals>
liamfallon32497612018-11-10 00:39:12 +0000162 <goal>unpack</goal>
ramvermac6d74e62018-07-11 14:21:13 +0100163 <goal>unpack-dependencies</goal>
164 </goals>
165 </pluginExecutionFilter>
166 <action>
167 <execute />
168 </action>
169 </pluginExecution>
liamfallon32497612018-11-10 00:39:12 +0000170 <pluginExecution>
171 <pluginExecutionFilter>
172 <groupId>org.apache.maven.plugins</groupId>
173 <artifactId>maven-antrun-plugin</artifactId>
174 <versionRange>[1.0,)</versionRange>
175 <goals>
176 <goal>run</goal>
177 </goals>
178 </pluginExecutionFilter>
179 <action>
180 <ignore />
181 </action>
182 </pluginExecution>
eikrwaqa94302f2018-05-23 14:08:29 +0100183 </pluginExecutions>
184 </lifecycleMappingMetadata>
185 </configuration>
186 </plugin>
187 </plugins>
188 </pluginManagement>
189 </build>
190 </profile>
ramvermaaf74a622018-07-31 18:25:39 +0100191
192 <profile>
193 <!--This profile is used to create local APEX documentation and a Maven site -->
194 <id>apexSite</id>
195 <activation>
196 <property>
197 <name>apexSite</name>
198 </property>
199 </activation>
200 <properties>
201 <!-- 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
202 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/ -->
203 <dependency.locations.enabled>false</dependency.locations.enabled>
204
205 <!-- Site and ADOC properties -->
206 <apex.adsite.prefix>https://www.onap.org/policy/apex-pdp/site</apex.adsite.prefix>
207 <release-version>${project.version}</release-version>
208
209 <adsite-main-dir>${project.basedir}/src</adsite-main-dir>
210 <adsite-tools-wsclients-dir>${project.basedir}/tools/simple-wsclient/src</adsite-tools-wsclients-dir>
211 <adsite-tools-common-dir>${project.basedir}/tools/tools-common/src</adsite-tools-common-dir>
liamfallona41c8772018-09-05 15:46:31 +0100212
ramvermaaf74a622018-07-31 18:25:39 +0100213 <adsite-examples-myfirstpolicy-dir>${project.basedir}/examples/examples-myfirstpolicy/src</adsite-examples-myfirstpolicy-dir>
214 <adsite-examples-decisionmaker-dir>${project.basedir}/examples/examples-decisionmaker/src</adsite-examples-decisionmaker-dir>
215 <adsite-examples-pcvs-dir>${project.basedir}/examples/examples-pcvs/src</adsite-examples-pcvs-dir>
216 <adsite-examples-periodic-dir>${project.basedir}/examples/examples-periodic/src</adsite-examples-periodic-dir>
217 <adsite-examples-onap-vcpe-dir>${project.basedir}/examples/examples-onap-vcpe/src</adsite-examples-onap-vcpe-dir>
s003703465262c352019-04-11 00:14:39 +0530218 <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 +0100219 <adsite-examples-servlet-dir>${project.basedir}/examples/examples-servlet/src</adsite-examples-servlet-dir>
ramvermaaf74a622018-07-31 18:25:39 +0100220
liamfallona41c8772018-09-05 15:46:31 +0100221 <adsite-packages-docker-dir>${project.basedir}/packages/apex-pdp-docker/src</adsite-packages-docker-dir>
222
ramvermaaf74a622018-07-31 18:25:39 +0100223 <adsite-plugins-event-protocol-dir>${project.basedir}/plugins/plugins-event/plugins-event-protocol/src</adsite-plugins-event-protocol-dir>
224 <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>
225 <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>
226 <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>
227
228 <adsite-plugins-event-carrier-dir>${project.basedir}/plugins/plugins-event/plugins-event-carrier/src</adsite-plugins-event-carrier-dir>
229 <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>
230 <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>
231 <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>
232 <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>
233 <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>
234 <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>
235 <adsite-plugins-context-dir>${project.basedir}/plugins/plugins-context/src</adsite-plugins-context-dir>
Dinh Danh Lea5a44272018-08-22 12:41:50 +0100236 <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 +0100237 <adsite-plugins-executor-dir>${project.basedir}/plugins/plugins-executor/src</adsite-plugins-executor-dir>
238 <adsite-plugins-executor-java-dir>${project.basedir}/plugins/plugins-executor/plugins-executor-java/src</adsite-plugins-executor-java-dir>
239 <adsite-plugins-executor-javascript-dir>${project.basedir}/plugins/plugins-executor/plugins-executor-javascript/src</adsite-plugins-executor-javascript-dir>
240 <adsite-plugins-executor-jruby-dir>${project.basedir}/plugins/plugins-executor/plugins-executor-jruby/src</adsite-plugins-executor-jruby-dir>
241 <adsite-plugins-executor-jython-dir>${project.basedir}/plugins/plugins-executor/plugins-executor-jython/src</adsite-plugins-executor-jython-dir>
242 <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 +0100243
ramvermaaf74a622018-07-31 18:25:39 +0100244 <adsite-services-engine-dir>${project.basedir}/services/services-engine/src</adsite-services-engine-dir>
245 </properties>
246 <distributionManagement>
247 <site>
248 <id>${project.artifactId}-site</id>
249 <url>${apex.adsite.prefix}/</url>
250 </site>
251 </distributionManagement>
252 <build>
253 <plugins>
254 <plugin>
255 <groupId>org.commonjava.maven.plugins</groupId>
256 <artifactId>directory-maven-plugin</artifactId>
257 <version>0.2</version>
258 <executions>
259 <execution>
260 <id>directories</id>
261 <goals>
262 <goal>directory-of</goal>
263 </goals>
264 <phase>initialize</phase>
265 <configuration>
266 <property>apex.basedir</property>
267 <project>
268 <groupId>org.onap.policy.apex-pdp</groupId>
269 <artifactId>apex-pdp</artifactId>
270 </project>
271 </configuration>
272 </execution>
273 </executions>
274 </plugin>
275
276 <plugin>
277 <groupId>org.apache.maven.plugins</groupId>
278 <artifactId>maven-site-plugin</artifactId>
279 <version>3.7.1</version>
280 <configuration>
281 <stagingDirectory>${apex.basedir}/target/ad-site</stagingDirectory>
282 <asciidoc>
283 <embedAssets>true</embedAssets>
284 <attributes>
285 <source-highlighter>coderay</source-highlighter>
286 <coderay-css>style</coderay-css>
287 <imagesdir>images</imagesdir>
288 </attributes>
289 </asciidoc>
290 <moduleExcludes>
291 <asciidoc>**/_*.adoc</asciidoc>
292 </moduleExcludes>
293 </configuration>
294 <dependencies>
295 <dependency>
296 <groupId>org.apache.maven.doxia</groupId>
297 <artifactId>doxia-site-renderer</artifactId>
298 <version>1.8</version>
299 </dependency>
300 <dependency>
301 <groupId>org.asciidoctor</groupId>
302 <artifactId>asciidoctor-maven-plugin</artifactId>
303 <version>1.5.6</version>
304 </dependency>
305 </dependencies>
306 </plugin>
307
308 <plugin>
309 <groupId>org.apache.maven.plugins</groupId>
310 <artifactId>maven-resources-plugin</artifactId>
311 <version>3.0.2</version>
312 <executions>
313 <execution>
314 <id>copy-site-css</id>
315 <phase>process-resources</phase>
316 <goals>
317 <goal>copy-resources</goal>
318 </goals>
319 <configuration>
320 <resources>
321 <resource>
322 <directory>src/site/css</directory>
323 <includes>
324 <include>**/*.css</include>
325 </includes>
326 </resource>
327 </resources>
328 <outputDirectory>${project.build.directory}/site/css</outputDirectory>
329 <overwrite>true</overwrite>
330 </configuration>
331 </execution>
332
333 <execution>
334 <id>copy-site-logos</id>
335 <phase>process-resources</phase>
336 <goals>
337 <goal>copy-resources</goal>
338 </goals>
339 <configuration>
340 <resources>
341 <resource>
342 <directory>src/site/images</directory>
343 <includes>
344 <include>**/*.png</include>
345 </includes>
346 </resource>
347 </resources>
348 <outputDirectory>${project.build.directory}/site/images</outputDirectory>
349 <overwrite>true</overwrite>
350 </configuration>
351 </execution>
352
353 <execution>
354 <id>copy-um-install-images</id>
355 <phase>process-resources</phase>
356 <goals>
357 <goal>copy-resources</goal>
358 </goals>
359 <configuration>
360 <resources>
361 <resource>
362 <directory>src/site-docs/adoc/resources/images/install-guide</directory>
363 <includes>
364 <include>**/*.jpg</include>
365 <include>**/*.png</include>
366 </includes>
367 </resource>
368 </resources>
369 <outputDirectory>${project.build.directory}/site/user-manual/install/images/install-guide</outputDirectory>
370 </configuration>
371 </execution>
372
373 <execution>
374 <id>copy-howto-config-images</id>
375 <phase>process-resources</phase>
376 <goals>
377 <goal>copy-resources</goal>
378 </goals>
379 <configuration>
380 <resources>
381 <resource>
382 <directory>src/site-docs/adoc/resources/images/apex-intro</directory>
383 <includes>
384 <include>ApexEngineConfig.jpg</include>
385 <include>ApexEngineConfig.png</include>
386 </includes>
387 </resource>
388 </resources>
389 <outputDirectory>${project.build.directory}/site/user-manual/configuration/images/apex-intro</outputDirectory>
390 </configuration>
391 </execution>
392
393 <execution>
394 <id>copy-tech-intro-apex-images</id>
395 <phase>process-resources</phase>
396 <goals>
397 <goal>copy-resources</goal>
398 </goals>
399 <configuration>
400 <resources>
401 <resource>
402 <directory>src/site-docs/adoc/resources/images/apex-intro</directory>
403 <includes>
404 <include>**/*.jpg</include>
405 <include>**/*.png</include>
406 </includes>
407 </resource>
408 </resources>
409 <outputDirectory>${project.build.directory}/site/apex-intro/images/apex-intro</outputDirectory>
410 </configuration>
411 </execution>
412
413 <execution>
414 <id>copy-tech-pm-apex-images</id>
415 <phase>process-resources</phase>
416 <goals>
417 <goal>copy-resources</goal>
418 </goals>
419 <configuration>
420 <resources>
421 <resource>
422 <directory>src/site-docs/adoc/resources/images/apex-policy-model</directory>
423 <includes>
424 <include>**/*.jpg</include>
425 <include>**/*.png</include>
426 </includes>
427 </resource>
428 </resources>
429 <outputDirectory>${project.build.directory}/site/policy-guide/policy-model/images/apex-policy-model</outputDirectory>
430 </configuration>
431 </execution>
432
433 <execution>
434 <id>copy-tech-pm-apex-intro-images</id>
435 <phase>process-resources</phase>
436 <goals>
437 <goal>copy-resources</goal>
438 </goals>
439 <configuration>
440 <resources>
441 <resource>
442 <directory>src/site-docs/adoc/resources/images/apex-intro</directory>
443 <includes>
444 <include>ApexPolicyMatrix.png</include>
445 </includes>
446 </resource>
447 </resources>
448 <outputDirectory>${project.build.directory}/site/policy-guide/images/apex-intro</outputDirectory>
449 </configuration>
450 </execution>
451
452 <execution>
453 <id>copy-domain-mfp-images</id>
454 <phase>process-resources</phase>
455 <goals>
456 <goal>copy-resources</goal>
457 </goals>
458 <configuration>
459 <resources>
460 <resource>
Dinh Danh Lea5a44272018-08-22 12:41:50 +0100461 <directory>${project.basedir}/examples/examples-myfirstpolicy/src/site-docs/adoc/resources/images</directory>
ramvermaaf74a622018-07-31 18:25:39 +0100462 <includes>
463 <include>**/*.jpg</include>
464 <include>**/*.png</include>
465 </includes>
466 </resource>
467 </resources>
468 <outputDirectory>${project.build.directory}/site/user-manual/my-first-policy/images</outputDirectory>
469 </configuration>
470 </execution>
471
472 <execution>
473 <id>copy-asciidoc-generated</id>
474 <phase>process-resources</phase>
475 <goals>
476 <goal>copy-resources</goal>
477 </goals>
478 <configuration>
479 <resources>
480 <resource>
481 <directory>target/generated-docs</directory>
482 </resource>
483 </resources>
484 <outputDirectory>${project.build.directory}/site/docs-apex</outputDirectory>
485 </configuration>
486 </execution>
487 </executions>
488 </plugin>
a.sreekumar0fbf0392019-06-20 09:39:59 +0000489
490 <plugin>
491 <artifactId>maven-checkstyle-plugin</artifactId>
492 <executions>
493 <execution>
494 <id>onap-java-style</id>
495 <goals>
496 <goal>check</goal>
497 </goals>
498 <phase>process-sources</phase>
499 <configuration>
500 <!-- Use Google Java Style Guide: https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml
501 with minor changes -->
502 <configLocation>onap-checkstyle/onap-java-style.xml</configLocation>
503 <!-- <sourceDirectory> is needed so that checkstyle ignores the generated sources directory -->
504 <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
505 <includeResources>true</includeResources>
506 <includeTestSourceDirectory>true</includeTestSourceDirectory>
507 <includeTestResources>true</includeTestResources>
508 <excludes>
509 </excludes>
510 <consoleOutput>true</consoleOutput>
511 <failOnViolation>true</failOnViolation>
512 <violationSeverity>warning</violationSeverity>
513 </configuration>
514 </execution>
515 </executions>
516 <dependencies>
517 <dependency>
518 <groupId>org.onap.oparent</groupId>
519 <artifactId>checkstyle</artifactId>
520 <version>${oparent.version}</version>
521 <scope>compile</scope>
522 </dependency>
523 </dependencies>
524 </plugin>
ramvermaaf74a622018-07-31 18:25:39 +0100525 </plugins>
526 </build>
527
528 <reporting>
529 <plugins>
530 <plugin>
531 <groupId>org.apache.maven.plugins</groupId>
532 <artifactId>maven-project-info-reports-plugin</artifactId>
533 <version>2.9</version>
534 </plugin>
535 <plugin>
536 <groupId>org.apache.maven.plugins</groupId>
537 <artifactId>maven-javadoc-plugin</artifactId>
538 <version>3.0.0-M1</version>
539 <reportSets>
540 <reportSet>
541 <id>default</id>
542 <reports>
543 <report>javadoc</report>
544 </reports>
545 </reportSet>
546 <reportSet>
547 <id>aggregate</id>
548 <inherited>false</inherited>
549 <reports>
550 <report>aggregate</report>
551 </reports>
552 </reportSet>
553 </reportSets>
554 <configuration>
555 <destDir>javadocs</destDir>
556 <source>${maven.compiler.target}</source>
557 <encoding>${project.resources.sourceEncoding}</encoding>
558 <docencoding>${project.resources.sourceEncoding}</docencoding>
559 <charset>${project.resources.sourceEncoding}</charset>
560 <!--<aggregate>false</aggregate>-->
561 <nohelp>true</nohelp>
562 <header>APEX - ${project.artifactId} ${project.version}</header>
563 <footer>APEX - ${project.artifactId} ${project.version}</footer>
564 <doctitle>APEX - ${project.artifactId} ${project.version}</doctitle>
565 <noqualifier>all</noqualifier>
566 <detectLinks>false</detectLinks>
567 <detectJavaApiLink>true</detectJavaApiLink>
568 <javadocDirectory>${project.basedir}/src/main/javadoc</javadocDirectory>
569 <docfilessubdirs>true</docfilessubdirs>
570 <overview>overview.html</overview>
571 <show>public</show>
572 <!-- Exclude JAXB generated packages -->
573 <excludePackageNames>org.onap.policy.apex.plugins.event.protocol.xml.jaxb</excludePackageNames>
574 </configuration>
575 </plugin>
576 </plugins>
577 </reporting>
578 </profile>
579
580 <profile>
581 <id>apexDocs</id>
582 <activation>
583 <property>
584 <name>apexDocs</name>
585 </property>
586 </activation>
liamfallon3aa7cbe2018-10-31 16:35:54 +0000587 <modules />
ramvermaaf74a622018-07-31 18:25:39 +0100588 <build>
589 <plugins>
590 <plugin>
591 <groupId>org.asciidoctor</groupId>
592 <artifactId>asciidoctor-maven-plugin</artifactId>
593 <version>1.5.6</version>
594 <dependencies>
595 <dependency>
596 <groupId>org.asciidoctor</groupId>
597 <artifactId>asciidoctorj-pdf</artifactId>
598 <version>1.5.0-alpha.16</version>
599 </dependency>
600 </dependencies>
601 <configuration>
602 <sourceHighlighter>coderay</sourceHighlighter>
603 <sourceDirectory>src/site-docs/adoc/guides</sourceDirectory>
604 <preserveDirectories>true</preserveDirectories>
605 <attributes>
606 <toc />
607 <pagenums />
608 <sectnums />
609 <linkcss>true</linkcss>
610 <stylesdir>styles</stylesdir>
611
612 <!-- Change this to get another style -->
613 <stylesheet>compass/rocket-panda.css</stylesheet>
614 <pdf-stylesdir>${project.basedir}/src/site-docs/adoc/resources-pdf/themes</pdf-stylesdir>
615 <pdf-style>apex-pdf.yml</pdf-style>
616 <pdf-fontsdir>${project.basedir}/src/site-docs/adoc/resources-pdf/fonts</pdf-fontsdir>
617
618 <revnumber>${project.version}</revnumber>
619 <revdate>${maven.build.timestamp}</revdate>
620 <organization>${project.organization.name}</organization>
621
622 <release-version>${project.version}</release-version>
623
624 <adsite-main-dir>${project.basedir}/src</adsite-main-dir>
625 <adsite-tools-wsclients-dir>${project.basedir}/tools/simple-wsclient/src</adsite-tools-wsclients-dir>
626 <adsite-tools-common-dir>${project.basedir}/tools/tools-common/src</adsite-tools-common-dir>
liamfallona41c8772018-09-05 15:46:31 +0100627
ramvermaaf74a622018-07-31 18:25:39 +0100628 <adsite-examples-myfirstpolicy-dir>${project.basedir}/examples/examples-myfirstpolicy/src</adsite-examples-myfirstpolicy-dir>
629 <adsite-examples-decisionmaker-dir>${project.basedir}/examples/examples-decisionmaker/src</adsite-examples-decisionmaker-dir>
630 <adsite-examples-pcvs-dir>${project.basedir}/examples/examples-pcvs/src</adsite-examples-pcvs-dir>
631 <adsite-examples-periodic-dir>${project.basedir}/examples/examples-periodic/src</adsite-examples-periodic-dir>
632 <adsite-examples-onap-vcpe-dir>${project.basedir}/examples/examples-onap-vcpe/src</adsite-examples-onap-vcpe-dir>
s003703465262c352019-04-11 00:14:39 +0530633 <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 +0100634 <adsite-examples-servlet-dir>${project.basedir}/examples/examples-servlet/src</adsite-examples-servlet-dir>
ramvermaaf74a622018-07-31 18:25:39 +0100635
liamfallona41c8772018-09-05 15:46:31 +0100636 <adsite-packages-docker-dir>${project.basedir}/packages/apex-pdp-docker/src</adsite-packages-docker-dir>
637
ramvermaaf74a622018-07-31 18:25:39 +0100638 <adsite-plugins-event-protocol-dir>${project.basedir}/plugins/plugins-event/plugins-event-protocol/src</adsite-plugins-event-protocol-dir>
639 <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>
640 <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>
641 <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>
642 <adsite-plugins-event-carrier-dir>${project.basedir}/plugins/plugins-event/plugins-event-carrier/src</adsite-plugins-event-carrier-dir>
643 <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>
644 <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>
645 <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>
646 <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>
647 <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>
648 <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>
649 <adsite-plugins-context-dir>${project.basedir}/plugins/plugins-context/src</adsite-plugins-context-dir>
Dinh Danh Lea5a44272018-08-22 12:41:50 +0100650 <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 +0100651 <adsite-plugins-executor-dir>${project.basedir}/plugins/plugins-executor/src</adsite-plugins-executor-dir>
652 <adsite-plugins-executor-java-dir>${project.basedir}/plugins/plugins-executor/plugins-executor-java/src</adsite-plugins-executor-java-dir>
653 <adsite-plugins-executor-javascript-dir>${project.basedir}/plugins/plugins-executor/plugins-executor-javascript/src</adsite-plugins-executor-javascript-dir>
654 <adsite-plugins-executor-jruby-dir>${project.basedir}/plugins/plugins-executor/plugins-executor-jruby/src</adsite-plugins-executor-jruby-dir>
655 <adsite-plugins-executor-jython-dir>${project.basedir}/plugins/plugins-executor/plugins-executor-jython/src</adsite-plugins-executor-jython-dir>
656 <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 +0100657
ramvermaaf74a622018-07-31 18:25:39 +0100658 <adsite-services-engine-dir>${project.basedir}/services/services-engine/src</adsite-services-engine-dir>
659 </attributes>
660 </configuration>
661 <executions>
662 <execution>
663 <id>asciidoc-html-doc</id>
664 <phase>generate-resources</phase>
665 <configuration>
666 <backend>html</backend>
667 <outputDirectory>${project.build.directory}/generated-docs/html</outputDirectory>
668 <resources>
669 <resource>
670 <directory>src/site-docs/adoc/resources</directory>
671 </resource>
672 <resource>
Dinh Danh Lea5a44272018-08-22 12:41:50 +0100673 <directory>${project.basedir}/examples/examples-myfirstpolicy/src/site-docs/adoc/resources</directory>
ramvermaaf74a622018-07-31 18:25:39 +0100674 </resource>
675 </resources>
676 </configuration>
677 <goals>
678 <goal>process-asciidoc</goal>
679 </goals>
680 </execution>
681 <execution>
682 <id>asciidoc-pdf-doc</id>
683 <phase>generate-resources</phase>
684 <configuration>
685 <backend>pdf</backend>
686 <outputDirectory>${project.build.directory}/generated-docs/pdf</outputDirectory>
687 <imagesDir>${project.basedir}/target/generated-docs/html/images</imagesDir>
688 </configuration>
689 <goals>
690 <goal>process-asciidoc</goal>
691 </goals>
692 </execution>
693 </executions>
694 </plugin>
Dinh Danh Lea5a44272018-08-22 12:41:50 +0100695
696 <plugin>
697 <groupId>org.apache.maven.plugins</groupId>
698 <artifactId>maven-resources-plugin</artifactId>
699 <version>3.0.2</version>
700 <executions>
701 <execution>
702 <id>copy-site-css</id>
703 <phase>generate-sources</phase>
704 <goals>
705 <goal>copy-resources</goal>
706 </goals>
707 <configuration>
708 <resources>
709 <resource>
710 <directory>${project.basedir}/src/site-docs/adoc/guides</directory>
711 <includes>
712 <include>**/*.css</include>
713 </includes>
714 </resource>
715 </resources>
716 <outputDirectory>${project.basedir}/target/generated-docs/pdf/styles</outputDirectory>
717 <overwrite>true</overwrite>
718 </configuration>
719 </execution>
720 </executions>
721 </plugin>
722
ramvermaaf74a622018-07-31 18:25:39 +0100723 </plugins>
724 </build>
725 </profile>
eikrwaqa94302f2018-05-23 14:08:29 +0100726 </profiles>
727
ramvermab59d62f2018-09-09 15:07:34 +0100728 <build>
729 <plugins>
730 <plugin>
731 <groupId>org.jacoco</groupId>
732 <artifactId>jacoco-maven-plugin</artifactId>
733 <executions>
734 <execution>
735 <id>pre-unit-test</id>
736 <goals>
737 <goal>prepare-agent</goal>
738 </goals>
739 <configuration>
740 <destFile>${sonar.jacoco.reportPath}</destFile>
741 <append>true</append>
742 </configuration>
743 </execution>
744 <execution>
745 <id>post-unit-test</id>
746 <phase>test</phase>
747 <goals>
748 <goal>report</goal>
749 </goals>
750 <configuration>
751 <dataFile>${sonar.jacoco.reportPath}</dataFile>
752 </configuration>
753 </execution>
754 </executions>
755 </plugin>
756 </plugins>
757 <pluginManagement>
758 <plugins>
759 <plugin>
760 <groupId>org.jacoco</groupId>
761 <artifactId>jacoco-maven-plugin</artifactId>
762 <version>${jacoco.version}</version>
763 <configuration>
764 <!-- Note: This exclusion list should match <sonar.exclusions> property
765 above -->
766 <excludes>
767 <exclude>**/gen/**</exclude>
768 <exclude>**/generated-sources/**</exclude>
769 <exclude>**/yang-gen/**</exclude>
770 <exclude>**/pax/**</exclude>
771 </excludes>
772 </configuration>
773 <executions>
774 <!-- Prepares the property pointing to the JaCoCo runtime agent which
775 is passed as VM argument when Maven the Surefire plugin is executed. -->
776 <execution>
777 <id>pre-unit-test</id>
778 <goals>
779 <goal>prepare-agent</goal>
780 </goals>
781 <configuration>
782 <destFile>${sonar.jacoco.reportPath}</destFile>
783 </configuration>
784 </execution>
785 <!-- Ensures that the code coverage report for unit tests is created
786 after unit tests have been run. -->
787 <execution>
788 <id>post-unit-test</id>
789 <phase>test</phase>
790 <goals>
791 <goal>report</goal>
792 </goals>
793 <configuration>
794 <dataFile>${sonar.jacoco.reportPath}</dataFile>
795 </configuration>
796 </execution>
797 </executions>
798 </plugin>
799 </plugins>
800 </pluginManagement>
801 </build>
eikrwaqa94302f2018-05-23 14:08:29 +0100802
803 <modules>
804 <module>model</module>
ramverma10d58cd2018-05-29 15:25:49 +0100805 <module>context</module>
ramverma37d6fd92018-06-01 11:51:36 +0100806 <module>core</module>
waqas.ikram57224402018-06-01 14:23:01 +0100807 <module>auth</module>
waqas.ikram75ff76e2018-06-06 11:04:36 +0100808 <module>services</module>
waqas.ikramf94d7522018-06-05 16:18:01 +0100809 <module>plugins</module>
ramverma3d025432018-07-19 18:45:16 +0100810 <module>examples</module>
waqas.ikram2816ea62018-06-27 16:16:42 +0100811 <module>testsuites</module>
ramverma0ba66782018-07-06 16:29:16 +0100812 <module>client</module>
ramverma1eb51982018-07-16 15:23:45 +0100813 <module>tools</module>
liamfallon79ae3f72018-07-24 14:23:37 +0100814 <module>packages</module>
eikrwaqa94302f2018-05-23 14:08:29 +0100815 </modules>
liamfallon4d6fc382018-06-27 12:50:17 +0100816</project>