blob: 5f974434b93de3960dc17487723a97c7cd1e9488 [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 Dragosh3b7b2002019-06-20 16:23:14 -040029 <version>3.0.0</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>
Pamela Dragoshf4125802019-06-28 13:51:45 -040035 <version>2.2.1-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>
liamfallona46382d2018-09-18 16:20:26 +010045 <version.kafka>1.1.1</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>
a.sreekumar037e4212019-06-28 11:36:58 +000048 <version.policy.common>1.5.1-SNAPSHOT</version.policy.common>
jrh3a94cf1e2019-07-08 13:16:46 -040049 <version.policy.models>2.1.1-SNAPSHOT</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>
88 </dependencies>
89
liamfallonefdaa0d2018-08-03 16:12:01 +010090 <dependencyManagement>
91 <dependencies>
92 <dependency>
93 <groupId>org.onap.policy.common</groupId>
94 <artifactId>utils</artifactId>
95 <version>${version.policy.common}</version>
96 </dependency>
liamfallonf3250832018-08-30 09:37:29 +010097 <dependency>
98 <groupId>org.onap.policy.common</groupId>
99 <artifactId>common-parameters</artifactId>
ramverma79e5ede2018-10-24 20:14:02 +0100100 <version>${version.policy.common}</version>
liamfallonf3250832018-08-30 09:37:29 +0100101 </dependency>
liamfallonefdaa0d2018-08-03 16:12:01 +0100102 </dependencies>
103 </dependencyManagement>
eikrwaqa94302f2018-05-23 14:08:29 +0100104
105 <profiles>
106 <profile>
107 <!--This profile is used to store Eclipse m2e settings only. It has no
108 influence on the Maven build itself. -->
109 <id>only-eclipse</id>
110 <activation>
111 <property>
112 <name>m2e.version</name>
113 </property>
114 </activation>
115 <build>
116 <pluginManagement>
117 <plugins>
118 <plugin>
119 <groupId>org.eclipse.m2e</groupId>
120 <artifactId>lifecycle-mapping</artifactId>
121 <version>1.0.0</version>
122 <configuration>
123 <lifecycleMappingMetadata>
124 <pluginExecutions>
125 <pluginExecution>
126 <pluginExecutionFilter>
waqas.ikram34bdfe12018-05-31 11:09:58 +0100127 <groupId>org.codehaus.mojo</groupId>
128 <artifactId>exec-maven-plugin</artifactId>
waqas.ikram48229522018-05-31 14:49:38 +0100129 <versionRange>[1.6.0,)</versionRange>
waqas.ikram34bdfe12018-05-31 11:09:58 +0100130 <goals>
131 <goal>java</goal>
ramverma28ea3362018-07-18 16:28:07 +0100132 <goal>exec</goal>
waqas.ikram34bdfe12018-05-31 11:09:58 +0100133 </goals>
134 </pluginExecutionFilter>
135 <action>
136 <execute />
137 </action>
138 </pluginExecution>
139 <pluginExecution>
140 <pluginExecutionFilter>
eikrwaqa94302f2018-05-23 14:08:29 +0100141 <groupId>org.commonjava.maven.plugins</groupId>
142 <artifactId>directory-maven-plugin</artifactId>
143 <versionRange>0.2</versionRange>
144 <goals>
145 <goal>directory-of</goal>
146 </goals>
147 </pluginExecutionFilter>
148 <action>
149 <execute />
150 </action>
151 </pluginExecution>
ramvermaaf74a622018-07-31 18:25:39 +0100152 <pluginExecution>
ramvermac6d74e62018-07-11 14:21:13 +0100153 <pluginExecutionFilter>
154 <groupId>org.apache.maven.plugins</groupId>
155 <artifactId>maven-dependency-plugin</artifactId>
liamfallon32497612018-11-10 00:39:12 +0000156 <versionRange>[2.0,)</versionRange>
ramvermac6d74e62018-07-11 14:21:13 +0100157 <goals>
liamfallon32497612018-11-10 00:39:12 +0000158 <goal>unpack</goal>
ramvermac6d74e62018-07-11 14:21:13 +0100159 <goal>unpack-dependencies</goal>
160 </goals>
161 </pluginExecutionFilter>
162 <action>
163 <execute />
164 </action>
165 </pluginExecution>
liamfallon32497612018-11-10 00:39:12 +0000166 <pluginExecution>
167 <pluginExecutionFilter>
168 <groupId>org.apache.maven.plugins</groupId>
169 <artifactId>maven-antrun-plugin</artifactId>
170 <versionRange>[1.0,)</versionRange>
171 <goals>
172 <goal>run</goal>
173 </goals>
174 </pluginExecutionFilter>
175 <action>
176 <ignore />
177 </action>
178 </pluginExecution>
eikrwaqa94302f2018-05-23 14:08:29 +0100179 </pluginExecutions>
180 </lifecycleMappingMetadata>
181 </configuration>
182 </plugin>
183 </plugins>
184 </pluginManagement>
185 </build>
186 </profile>
ramvermaaf74a622018-07-31 18:25:39 +0100187
188 <profile>
189 <!--This profile is used to create local APEX documentation and a Maven site -->
190 <id>apexSite</id>
191 <activation>
192 <property>
193 <name>apexSite</name>
194 </property>
195 </activation>
196 <properties>
197 <!-- 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
198 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/ -->
199 <dependency.locations.enabled>false</dependency.locations.enabled>
200
201 <!-- Site and ADOC properties -->
202 <apex.adsite.prefix>https://www.onap.org/policy/apex-pdp/site</apex.adsite.prefix>
203 <release-version>${project.version}</release-version>
204
205 <adsite-main-dir>${project.basedir}/src</adsite-main-dir>
206 <adsite-tools-wsclients-dir>${project.basedir}/tools/simple-wsclient/src</adsite-tools-wsclients-dir>
207 <adsite-tools-common-dir>${project.basedir}/tools/tools-common/src</adsite-tools-common-dir>
liamfallona41c8772018-09-05 15:46:31 +0100208
ramvermaaf74a622018-07-31 18:25:39 +0100209 <adsite-examples-myfirstpolicy-dir>${project.basedir}/examples/examples-myfirstpolicy/src</adsite-examples-myfirstpolicy-dir>
210 <adsite-examples-decisionmaker-dir>${project.basedir}/examples/examples-decisionmaker/src</adsite-examples-decisionmaker-dir>
211 <adsite-examples-pcvs-dir>${project.basedir}/examples/examples-pcvs/src</adsite-examples-pcvs-dir>
212 <adsite-examples-periodic-dir>${project.basedir}/examples/examples-periodic/src</adsite-examples-periodic-dir>
213 <adsite-examples-onap-vcpe-dir>${project.basedir}/examples/examples-onap-vcpe/src</adsite-examples-onap-vcpe-dir>
s003703465262c352019-04-11 00:14:39 +0530214 <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 +0100215 <adsite-examples-servlet-dir>${project.basedir}/examples/examples-servlet/src</adsite-examples-servlet-dir>
ramvermaaf74a622018-07-31 18:25:39 +0100216
liamfallona41c8772018-09-05 15:46:31 +0100217 <adsite-packages-docker-dir>${project.basedir}/packages/apex-pdp-docker/src</adsite-packages-docker-dir>
218
ramvermaaf74a622018-07-31 18:25:39 +0100219 <adsite-plugins-event-protocol-dir>${project.basedir}/plugins/plugins-event/plugins-event-protocol/src</adsite-plugins-event-protocol-dir>
220 <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>
221 <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>
222 <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>
223
224 <adsite-plugins-event-carrier-dir>${project.basedir}/plugins/plugins-event/plugins-event-carrier/src</adsite-plugins-event-carrier-dir>
225 <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>
226 <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>
227 <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>
228 <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>
229 <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>
230 <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>
231 <adsite-plugins-context-dir>${project.basedir}/plugins/plugins-context/src</adsite-plugins-context-dir>
Dinh Danh Lea5a44272018-08-22 12:41:50 +0100232 <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 +0100233 <adsite-plugins-executor-dir>${project.basedir}/plugins/plugins-executor/src</adsite-plugins-executor-dir>
234 <adsite-plugins-executor-java-dir>${project.basedir}/plugins/plugins-executor/plugins-executor-java/src</adsite-plugins-executor-java-dir>
235 <adsite-plugins-executor-javascript-dir>${project.basedir}/plugins/plugins-executor/plugins-executor-javascript/src</adsite-plugins-executor-javascript-dir>
236 <adsite-plugins-executor-jruby-dir>${project.basedir}/plugins/plugins-executor/plugins-executor-jruby/src</adsite-plugins-executor-jruby-dir>
237 <adsite-plugins-executor-jython-dir>${project.basedir}/plugins/plugins-executor/plugins-executor-jython/src</adsite-plugins-executor-jython-dir>
238 <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 +0100239
ramvermaaf74a622018-07-31 18:25:39 +0100240 <adsite-services-engine-dir>${project.basedir}/services/services-engine/src</adsite-services-engine-dir>
241 </properties>
242 <distributionManagement>
243 <site>
244 <id>${project.artifactId}-site</id>
245 <url>${apex.adsite.prefix}/</url>
246 </site>
247 </distributionManagement>
248 <build>
249 <plugins>
250 <plugin>
251 <groupId>org.commonjava.maven.plugins</groupId>
252 <artifactId>directory-maven-plugin</artifactId>
253 <version>0.2</version>
254 <executions>
255 <execution>
256 <id>directories</id>
257 <goals>
258 <goal>directory-of</goal>
259 </goals>
260 <phase>initialize</phase>
261 <configuration>
262 <property>apex.basedir</property>
263 <project>
264 <groupId>org.onap.policy.apex-pdp</groupId>
265 <artifactId>apex-pdp</artifactId>
266 </project>
267 </configuration>
268 </execution>
269 </executions>
270 </plugin>
271
272 <plugin>
273 <groupId>org.apache.maven.plugins</groupId>
274 <artifactId>maven-site-plugin</artifactId>
275 <version>3.7.1</version>
276 <configuration>
277 <stagingDirectory>${apex.basedir}/target/ad-site</stagingDirectory>
278 <asciidoc>
279 <embedAssets>true</embedAssets>
280 <attributes>
281 <source-highlighter>coderay</source-highlighter>
282 <coderay-css>style</coderay-css>
283 <imagesdir>images</imagesdir>
284 </attributes>
285 </asciidoc>
286 <moduleExcludes>
287 <asciidoc>**/_*.adoc</asciidoc>
288 </moduleExcludes>
289 </configuration>
290 <dependencies>
291 <dependency>
292 <groupId>org.apache.maven.doxia</groupId>
293 <artifactId>doxia-site-renderer</artifactId>
294 <version>1.8</version>
295 </dependency>
296 <dependency>
297 <groupId>org.asciidoctor</groupId>
298 <artifactId>asciidoctor-maven-plugin</artifactId>
299 <version>1.5.6</version>
300 </dependency>
301 </dependencies>
302 </plugin>
303
304 <plugin>
305 <groupId>org.apache.maven.plugins</groupId>
306 <artifactId>maven-resources-plugin</artifactId>
307 <version>3.0.2</version>
308 <executions>
309 <execution>
310 <id>copy-site-css</id>
311 <phase>process-resources</phase>
312 <goals>
313 <goal>copy-resources</goal>
314 </goals>
315 <configuration>
316 <resources>
317 <resource>
318 <directory>src/site/css</directory>
319 <includes>
320 <include>**/*.css</include>
321 </includes>
322 </resource>
323 </resources>
324 <outputDirectory>${project.build.directory}/site/css</outputDirectory>
325 <overwrite>true</overwrite>
326 </configuration>
327 </execution>
328
329 <execution>
330 <id>copy-site-logos</id>
331 <phase>process-resources</phase>
332 <goals>
333 <goal>copy-resources</goal>
334 </goals>
335 <configuration>
336 <resources>
337 <resource>
338 <directory>src/site/images</directory>
339 <includes>
340 <include>**/*.png</include>
341 </includes>
342 </resource>
343 </resources>
344 <outputDirectory>${project.build.directory}/site/images</outputDirectory>
345 <overwrite>true</overwrite>
346 </configuration>
347 </execution>
348
349 <execution>
350 <id>copy-um-install-images</id>
351 <phase>process-resources</phase>
352 <goals>
353 <goal>copy-resources</goal>
354 </goals>
355 <configuration>
356 <resources>
357 <resource>
358 <directory>src/site-docs/adoc/resources/images/install-guide</directory>
359 <includes>
360 <include>**/*.jpg</include>
361 <include>**/*.png</include>
362 </includes>
363 </resource>
364 </resources>
365 <outputDirectory>${project.build.directory}/site/user-manual/install/images/install-guide</outputDirectory>
366 </configuration>
367 </execution>
368
369 <execution>
370 <id>copy-howto-config-images</id>
371 <phase>process-resources</phase>
372 <goals>
373 <goal>copy-resources</goal>
374 </goals>
375 <configuration>
376 <resources>
377 <resource>
378 <directory>src/site-docs/adoc/resources/images/apex-intro</directory>
379 <includes>
380 <include>ApexEngineConfig.jpg</include>
381 <include>ApexEngineConfig.png</include>
382 </includes>
383 </resource>
384 </resources>
385 <outputDirectory>${project.build.directory}/site/user-manual/configuration/images/apex-intro</outputDirectory>
386 </configuration>
387 </execution>
388
389 <execution>
390 <id>copy-tech-intro-apex-images</id>
391 <phase>process-resources</phase>
392 <goals>
393 <goal>copy-resources</goal>
394 </goals>
395 <configuration>
396 <resources>
397 <resource>
398 <directory>src/site-docs/adoc/resources/images/apex-intro</directory>
399 <includes>
400 <include>**/*.jpg</include>
401 <include>**/*.png</include>
402 </includes>
403 </resource>
404 </resources>
405 <outputDirectory>${project.build.directory}/site/apex-intro/images/apex-intro</outputDirectory>
406 </configuration>
407 </execution>
408
409 <execution>
410 <id>copy-tech-pm-apex-images</id>
411 <phase>process-resources</phase>
412 <goals>
413 <goal>copy-resources</goal>
414 </goals>
415 <configuration>
416 <resources>
417 <resource>
418 <directory>src/site-docs/adoc/resources/images/apex-policy-model</directory>
419 <includes>
420 <include>**/*.jpg</include>
421 <include>**/*.png</include>
422 </includes>
423 </resource>
424 </resources>
425 <outputDirectory>${project.build.directory}/site/policy-guide/policy-model/images/apex-policy-model</outputDirectory>
426 </configuration>
427 </execution>
428
429 <execution>
430 <id>copy-tech-pm-apex-intro-images</id>
431 <phase>process-resources</phase>
432 <goals>
433 <goal>copy-resources</goal>
434 </goals>
435 <configuration>
436 <resources>
437 <resource>
438 <directory>src/site-docs/adoc/resources/images/apex-intro</directory>
439 <includes>
440 <include>ApexPolicyMatrix.png</include>
441 </includes>
442 </resource>
443 </resources>
444 <outputDirectory>${project.build.directory}/site/policy-guide/images/apex-intro</outputDirectory>
445 </configuration>
446 </execution>
447
448 <execution>
449 <id>copy-domain-mfp-images</id>
450 <phase>process-resources</phase>
451 <goals>
452 <goal>copy-resources</goal>
453 </goals>
454 <configuration>
455 <resources>
456 <resource>
Dinh Danh Lea5a44272018-08-22 12:41:50 +0100457 <directory>${project.basedir}/examples/examples-myfirstpolicy/src/site-docs/adoc/resources/images</directory>
ramvermaaf74a622018-07-31 18:25:39 +0100458 <includes>
459 <include>**/*.jpg</include>
460 <include>**/*.png</include>
461 </includes>
462 </resource>
463 </resources>
464 <outputDirectory>${project.build.directory}/site/user-manual/my-first-policy/images</outputDirectory>
465 </configuration>
466 </execution>
467
468 <execution>
469 <id>copy-asciidoc-generated</id>
470 <phase>process-resources</phase>
471 <goals>
472 <goal>copy-resources</goal>
473 </goals>
474 <configuration>
475 <resources>
476 <resource>
477 <directory>target/generated-docs</directory>
478 </resource>
479 </resources>
480 <outputDirectory>${project.build.directory}/site/docs-apex</outputDirectory>
481 </configuration>
482 </execution>
483 </executions>
484 </plugin>
a.sreekumar0fbf0392019-06-20 09:39:59 +0000485
486 <plugin>
487 <artifactId>maven-checkstyle-plugin</artifactId>
488 <executions>
489 <execution>
490 <id>onap-java-style</id>
491 <goals>
492 <goal>check</goal>
493 </goals>
494 <phase>process-sources</phase>
495 <configuration>
496 <!-- Use Google Java Style Guide: https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml
497 with minor changes -->
498 <configLocation>onap-checkstyle/onap-java-style.xml</configLocation>
499 <!-- <sourceDirectory> is needed so that checkstyle ignores the generated sources directory -->
500 <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
501 <includeResources>true</includeResources>
502 <includeTestSourceDirectory>true</includeTestSourceDirectory>
503 <includeTestResources>true</includeTestResources>
504 <excludes>
505 </excludes>
506 <consoleOutput>true</consoleOutput>
507 <failOnViolation>true</failOnViolation>
508 <violationSeverity>warning</violationSeverity>
509 </configuration>
510 </execution>
511 </executions>
512 <dependencies>
513 <dependency>
514 <groupId>org.onap.oparent</groupId>
515 <artifactId>checkstyle</artifactId>
516 <version>${oparent.version}</version>
517 <scope>compile</scope>
518 </dependency>
519 </dependencies>
520 </plugin>
ramvermaaf74a622018-07-31 18:25:39 +0100521 </plugins>
522 </build>
523
524 <reporting>
525 <plugins>
526 <plugin>
527 <groupId>org.apache.maven.plugins</groupId>
528 <artifactId>maven-project-info-reports-plugin</artifactId>
529 <version>2.9</version>
530 </plugin>
531 <plugin>
532 <groupId>org.apache.maven.plugins</groupId>
533 <artifactId>maven-javadoc-plugin</artifactId>
534 <version>3.0.0-M1</version>
535 <reportSets>
536 <reportSet>
537 <id>default</id>
538 <reports>
539 <report>javadoc</report>
540 </reports>
541 </reportSet>
542 <reportSet>
543 <id>aggregate</id>
544 <inherited>false</inherited>
545 <reports>
546 <report>aggregate</report>
547 </reports>
548 </reportSet>
549 </reportSets>
550 <configuration>
551 <destDir>javadocs</destDir>
552 <source>${maven.compiler.target}</source>
553 <encoding>${project.resources.sourceEncoding}</encoding>
554 <docencoding>${project.resources.sourceEncoding}</docencoding>
555 <charset>${project.resources.sourceEncoding}</charset>
556 <!--<aggregate>false</aggregate>-->
557 <nohelp>true</nohelp>
558 <header>APEX - ${project.artifactId} ${project.version}</header>
559 <footer>APEX - ${project.artifactId} ${project.version}</footer>
560 <doctitle>APEX - ${project.artifactId} ${project.version}</doctitle>
561 <noqualifier>all</noqualifier>
562 <detectLinks>false</detectLinks>
563 <detectJavaApiLink>true</detectJavaApiLink>
564 <javadocDirectory>${project.basedir}/src/main/javadoc</javadocDirectory>
565 <docfilessubdirs>true</docfilessubdirs>
566 <overview>overview.html</overview>
567 <show>public</show>
568 <!-- Exclude JAXB generated packages -->
569 <excludePackageNames>org.onap.policy.apex.plugins.event.protocol.xml.jaxb</excludePackageNames>
570 </configuration>
571 </plugin>
572 </plugins>
573 </reporting>
574 </profile>
575
576 <profile>
577 <id>apexDocs</id>
578 <activation>
579 <property>
580 <name>apexDocs</name>
581 </property>
582 </activation>
liamfallon3aa7cbe2018-10-31 16:35:54 +0000583 <modules />
ramvermaaf74a622018-07-31 18:25:39 +0100584 <build>
585 <plugins>
586 <plugin>
587 <groupId>org.asciidoctor</groupId>
588 <artifactId>asciidoctor-maven-plugin</artifactId>
589 <version>1.5.6</version>
590 <dependencies>
591 <dependency>
592 <groupId>org.asciidoctor</groupId>
593 <artifactId>asciidoctorj-pdf</artifactId>
594 <version>1.5.0-alpha.16</version>
595 </dependency>
596 </dependencies>
597 <configuration>
598 <sourceHighlighter>coderay</sourceHighlighter>
599 <sourceDirectory>src/site-docs/adoc/guides</sourceDirectory>
600 <preserveDirectories>true</preserveDirectories>
601 <attributes>
602 <toc />
603 <pagenums />
604 <sectnums />
605 <linkcss>true</linkcss>
606 <stylesdir>styles</stylesdir>
607
608 <!-- Change this to get another style -->
609 <stylesheet>compass/rocket-panda.css</stylesheet>
610 <pdf-stylesdir>${project.basedir}/src/site-docs/adoc/resources-pdf/themes</pdf-stylesdir>
611 <pdf-style>apex-pdf.yml</pdf-style>
612 <pdf-fontsdir>${project.basedir}/src/site-docs/adoc/resources-pdf/fonts</pdf-fontsdir>
613
614 <revnumber>${project.version}</revnumber>
615 <revdate>${maven.build.timestamp}</revdate>
616 <organization>${project.organization.name}</organization>
617
618 <release-version>${project.version}</release-version>
619
620 <adsite-main-dir>${project.basedir}/src</adsite-main-dir>
621 <adsite-tools-wsclients-dir>${project.basedir}/tools/simple-wsclient/src</adsite-tools-wsclients-dir>
622 <adsite-tools-common-dir>${project.basedir}/tools/tools-common/src</adsite-tools-common-dir>
liamfallona41c8772018-09-05 15:46:31 +0100623
ramvermaaf74a622018-07-31 18:25:39 +0100624 <adsite-examples-myfirstpolicy-dir>${project.basedir}/examples/examples-myfirstpolicy/src</adsite-examples-myfirstpolicy-dir>
625 <adsite-examples-decisionmaker-dir>${project.basedir}/examples/examples-decisionmaker/src</adsite-examples-decisionmaker-dir>
626 <adsite-examples-pcvs-dir>${project.basedir}/examples/examples-pcvs/src</adsite-examples-pcvs-dir>
627 <adsite-examples-periodic-dir>${project.basedir}/examples/examples-periodic/src</adsite-examples-periodic-dir>
628 <adsite-examples-onap-vcpe-dir>${project.basedir}/examples/examples-onap-vcpe/src</adsite-examples-onap-vcpe-dir>
s003703465262c352019-04-11 00:14:39 +0530629 <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 +0100630 <adsite-examples-servlet-dir>${project.basedir}/examples/examples-servlet/src</adsite-examples-servlet-dir>
ramvermaaf74a622018-07-31 18:25:39 +0100631
liamfallona41c8772018-09-05 15:46:31 +0100632 <adsite-packages-docker-dir>${project.basedir}/packages/apex-pdp-docker/src</adsite-packages-docker-dir>
633
ramvermaaf74a622018-07-31 18:25:39 +0100634 <adsite-plugins-event-protocol-dir>${project.basedir}/plugins/plugins-event/plugins-event-protocol/src</adsite-plugins-event-protocol-dir>
635 <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>
636 <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>
637 <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>
638 <adsite-plugins-event-carrier-dir>${project.basedir}/plugins/plugins-event/plugins-event-carrier/src</adsite-plugins-event-carrier-dir>
639 <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>
640 <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>
641 <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>
642 <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>
643 <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>
644 <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>
645 <adsite-plugins-context-dir>${project.basedir}/plugins/plugins-context/src</adsite-plugins-context-dir>
Dinh Danh Lea5a44272018-08-22 12:41:50 +0100646 <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 +0100647 <adsite-plugins-executor-dir>${project.basedir}/plugins/plugins-executor/src</adsite-plugins-executor-dir>
648 <adsite-plugins-executor-java-dir>${project.basedir}/plugins/plugins-executor/plugins-executor-java/src</adsite-plugins-executor-java-dir>
649 <adsite-plugins-executor-javascript-dir>${project.basedir}/plugins/plugins-executor/plugins-executor-javascript/src</adsite-plugins-executor-javascript-dir>
650 <adsite-plugins-executor-jruby-dir>${project.basedir}/plugins/plugins-executor/plugins-executor-jruby/src</adsite-plugins-executor-jruby-dir>
651 <adsite-plugins-executor-jython-dir>${project.basedir}/plugins/plugins-executor/plugins-executor-jython/src</adsite-plugins-executor-jython-dir>
652 <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 +0100653
ramvermaaf74a622018-07-31 18:25:39 +0100654 <adsite-services-engine-dir>${project.basedir}/services/services-engine/src</adsite-services-engine-dir>
655 </attributes>
656 </configuration>
657 <executions>
658 <execution>
659 <id>asciidoc-html-doc</id>
660 <phase>generate-resources</phase>
661 <configuration>
662 <backend>html</backend>
663 <outputDirectory>${project.build.directory}/generated-docs/html</outputDirectory>
664 <resources>
665 <resource>
666 <directory>src/site-docs/adoc/resources</directory>
667 </resource>
668 <resource>
Dinh Danh Lea5a44272018-08-22 12:41:50 +0100669 <directory>${project.basedir}/examples/examples-myfirstpolicy/src/site-docs/adoc/resources</directory>
ramvermaaf74a622018-07-31 18:25:39 +0100670 </resource>
671 </resources>
672 </configuration>
673 <goals>
674 <goal>process-asciidoc</goal>
675 </goals>
676 </execution>
677 <execution>
678 <id>asciidoc-pdf-doc</id>
679 <phase>generate-resources</phase>
680 <configuration>
681 <backend>pdf</backend>
682 <outputDirectory>${project.build.directory}/generated-docs/pdf</outputDirectory>
683 <imagesDir>${project.basedir}/target/generated-docs/html/images</imagesDir>
684 </configuration>
685 <goals>
686 <goal>process-asciidoc</goal>
687 </goals>
688 </execution>
689 </executions>
690 </plugin>
Dinh Danh Lea5a44272018-08-22 12:41:50 +0100691
692 <plugin>
693 <groupId>org.apache.maven.plugins</groupId>
694 <artifactId>maven-resources-plugin</artifactId>
695 <version>3.0.2</version>
696 <executions>
697 <execution>
698 <id>copy-site-css</id>
699 <phase>generate-sources</phase>
700 <goals>
701 <goal>copy-resources</goal>
702 </goals>
703 <configuration>
704 <resources>
705 <resource>
706 <directory>${project.basedir}/src/site-docs/adoc/guides</directory>
707 <includes>
708 <include>**/*.css</include>
709 </includes>
710 </resource>
711 </resources>
712 <outputDirectory>${project.basedir}/target/generated-docs/pdf/styles</outputDirectory>
713 <overwrite>true</overwrite>
714 </configuration>
715 </execution>
716 </executions>
717 </plugin>
718
ramvermaaf74a622018-07-31 18:25:39 +0100719 </plugins>
720 </build>
721 </profile>
eikrwaqa94302f2018-05-23 14:08:29 +0100722 </profiles>
723
ramvermab59d62f2018-09-09 15:07:34 +0100724 <build>
725 <plugins>
726 <plugin>
727 <groupId>org.jacoco</groupId>
728 <artifactId>jacoco-maven-plugin</artifactId>
729 <executions>
730 <execution>
731 <id>pre-unit-test</id>
732 <goals>
733 <goal>prepare-agent</goal>
734 </goals>
735 <configuration>
736 <destFile>${sonar.jacoco.reportPath}</destFile>
737 <append>true</append>
738 </configuration>
739 </execution>
740 <execution>
741 <id>post-unit-test</id>
742 <phase>test</phase>
743 <goals>
744 <goal>report</goal>
745 </goals>
746 <configuration>
747 <dataFile>${sonar.jacoco.reportPath}</dataFile>
748 </configuration>
749 </execution>
750 </executions>
751 </plugin>
752 </plugins>
753 <pluginManagement>
754 <plugins>
755 <plugin>
756 <groupId>org.jacoco</groupId>
757 <artifactId>jacoco-maven-plugin</artifactId>
758 <version>${jacoco.version}</version>
759 <configuration>
760 <!-- Note: This exclusion list should match <sonar.exclusions> property
761 above -->
762 <excludes>
763 <exclude>**/gen/**</exclude>
764 <exclude>**/generated-sources/**</exclude>
765 <exclude>**/yang-gen/**</exclude>
766 <exclude>**/pax/**</exclude>
767 </excludes>
768 </configuration>
769 <executions>
770 <!-- Prepares the property pointing to the JaCoCo runtime agent which
771 is passed as VM argument when Maven the Surefire plugin is executed. -->
772 <execution>
773 <id>pre-unit-test</id>
774 <goals>
775 <goal>prepare-agent</goal>
776 </goals>
777 <configuration>
778 <destFile>${sonar.jacoco.reportPath}</destFile>
779 </configuration>
780 </execution>
781 <!-- Ensures that the code coverage report for unit tests is created
782 after unit tests have been run. -->
783 <execution>
784 <id>post-unit-test</id>
785 <phase>test</phase>
786 <goals>
787 <goal>report</goal>
788 </goals>
789 <configuration>
790 <dataFile>${sonar.jacoco.reportPath}</dataFile>
791 </configuration>
792 </execution>
793 </executions>
794 </plugin>
795 </plugins>
796 </pluginManagement>
797 </build>
eikrwaqa94302f2018-05-23 14:08:29 +0100798
799 <modules>
800 <module>model</module>
ramverma10d58cd2018-05-29 15:25:49 +0100801 <module>context</module>
ramverma37d6fd92018-06-01 11:51:36 +0100802 <module>core</module>
waqas.ikram57224402018-06-01 14:23:01 +0100803 <module>auth</module>
waqas.ikram75ff76e2018-06-06 11:04:36 +0100804 <module>services</module>
waqas.ikramf94d7522018-06-05 16:18:01 +0100805 <module>plugins</module>
ramverma3d025432018-07-19 18:45:16 +0100806 <module>examples</module>
waqas.ikram2816ea62018-06-27 16:16:42 +0100807 <module>testsuites</module>
ramverma0ba66782018-07-06 16:29:16 +0100808 <module>client</module>
ramverma1eb51982018-07-16 15:23:45 +0100809 <module>tools</module>
liamfallon79ae3f72018-07-24 14:23:37 +0100810 <module>packages</module>
eikrwaqa94302f2018-05-23 14:08:29 +0100811 </modules>
liamfallon4d6fc382018-06-27 12:50:17 +0100812</project>