blob: aea24620139e509ad9d403fe73a1da694dca51ae [file] [log] [blame]
eikrwaqa94302f2018-05-23 14:08:29 +01001<!--
2 ============LICENSE_START=======================================================
3 Copyright (C) 2018 Ericsson. All rights reserved.
liamfallon755eb9d2020-01-22 12:11:11 +00004 Modifications Copyright (C) 2019-2020 Nordix Foundation.
HOCKLAc759d772020-01-10 15:37:28 -06005 Modifications Copyright (C) 2019-2020 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 Dragoshf7746d72020-03-23 19:51:45 -040029 <version>3.1.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>
a.sreekumarf1f9a302020-03-25 23:01:06 +000035 <version>2.3.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>
liamfallon02bef1f2019-08-16 10:16:37 +000045 <version.kafka>2.3.0</version.kafka>
liamfallon1ba6a322019-02-22 17:30:59 +000046 <version.hibernate>5.3.7.Final</version.hibernate>
Pamela Dragosh1073b152020-03-27 12:58:48 -040047 <version.policy.common>1.6.3-SNAPSHOT</version.policy.common>
48 <version.policy.models>2.2.3-SNAPSHOT</version.policy.models>
liamfallon7d9e1c22019-09-18 15:23:06 +010049 <version.jackson>2.10.0.pr3</version.jackson>
50 <version.jgroups>4.1.5.Final</version.jgroups>
51 <version.commons-codec>20041127.091804</version.commons-codec>
52 <version.caffeine>2.8.0</version.caffeine>
eikrwaqa94302f2018-05-23 14:08:29 +010053 </properties>
54
55 <distributionManagement>
56 <site>
57 <id>ecomp-site</id>
58 <url>dav:${onap.nexus.url}${sitePath}</url>
59 </site>
60 </distributionManagement>
61
62 <dependencies>
63 <dependency>
64 <groupId>junit</groupId>
65 <artifactId>junit</artifactId>
66 <scope>test</scope>
67 </dependency>
68 <dependency>
Henry.Sun153ad002020-03-02 15:47:09 +080069 <groupId>org.awaitility</groupId>
70 <artifactId>awaitility</artifactId>
71 <scope>test</scope>
72 </dependency>
73 <dependency>
eikrwaqa94302f2018-05-23 14:08:29 +010074 <groupId>org.slf4j</groupId>
75 <artifactId>slf4j-ext</artifactId>
liamfallonf86117b2018-06-19 11:31:44 +080076 <version>1.8.0-beta2</version>
eikrwaqa94302f2018-05-23 14:08:29 +010077 </dependency>
78 <dependency>
79 <groupId>org.slf4j</groupId>
80 <artifactId>slf4j-api</artifactId>
81 </dependency>
82 <dependency>
83 <groupId>ch.qos.logback</groupId>
84 <artifactId>logback-core</artifactId>
85 </dependency>
86 <dependency>
87 <groupId>ch.qos.logback</groupId>
88 <artifactId>logback-classic</artifactId>
89 </dependency>
a.sreekumara86ba142019-07-24 09:35:31 +000090 <dependency>
91 <groupId>org.projectlombok</groupId>
92 <artifactId>lombok</artifactId>
93 </dependency>
eikrwaqa94302f2018-05-23 14:08:29 +010094 </dependencies>
95
liamfallonefdaa0d2018-08-03 16:12:01 +010096 <dependencyManagement>
97 <dependencies>
98 <dependency>
99 <groupId>org.onap.policy.common</groupId>
100 <artifactId>utils</artifactId>
101 <version>${version.policy.common}</version>
102 </dependency>
liamfallonf3250832018-08-30 09:37:29 +0100103 <dependency>
104 <groupId>org.onap.policy.common</groupId>
105 <artifactId>common-parameters</artifactId>
ramverma79e5ede2018-10-24 20:14:02 +0100106 <version>${version.policy.common}</version>
liamfallonf3250832018-08-30 09:37:29 +0100107 </dependency>
Henry.Sun318a9892019-10-09 18:02:56 +0800108 <dependency>
109 <groupId>org.onap.policy.common</groupId>
110 <artifactId>policy-endpoints</artifactId>
111 <version>${version.policy.common}</version>
112 </dependency>
liamfallon7d9e1c22019-09-18 15:23:06 +0100113 <dependency>
114 <groupId>com.fasterxml.jackson.core</groupId>
115 <artifactId>jackson-core</artifactId>
116 <version>${version.jackson}</version>
117 </dependency>
118 <dependency>
119 <groupId>com.fasterxml.jackson.core</groupId>
120 <artifactId>jackson-databind</artifactId>
121 <version>${version.jackson}</version>
122 </dependency>
123 <dependency>
liamfallonc30b75d2019-09-25 15:13:37 +0200124 <groupId>org.jgroups</groupId>
liamfallon7d9e1c22019-09-18 15:23:06 +0100125 <artifactId>jgroups</artifactId>
126 <version>${version.jgroups}</version>
127 </dependency>
128 <dependency>
129 <groupId>commons-codec</groupId>
liamfallonc30b75d2019-09-25 15:13:37 +0200130 <artifactId>commons-codec</artifactId>
liamfallon7d9e1c22019-09-18 15:23:06 +0100131 <version>${version.commons-codec}</version>
132 </dependency>
133 <dependency>
134 <groupId>com.github.ben-manes.caffeine</groupId>
135 <artifactId>caffeine</artifactId>
136 <version>${version.caffeine}</version>
137 </dependency>
liamfallonefdaa0d2018-08-03 16:12:01 +0100138 </dependencies>
139 </dependencyManagement>
eikrwaqa94302f2018-05-23 14:08:29 +0100140
141 <profiles>
142 <profile>
143 <!--This profile is used to store Eclipse m2e settings only. It has no
144 influence on the Maven build itself. -->
145 <id>only-eclipse</id>
146 <activation>
147 <property>
148 <name>m2e.version</name>
149 </property>
150 </activation>
151 <build>
152 <pluginManagement>
153 <plugins>
154 <plugin>
155 <groupId>org.eclipse.m2e</groupId>
156 <artifactId>lifecycle-mapping</artifactId>
157 <version>1.0.0</version>
158 <configuration>
159 <lifecycleMappingMetadata>
160 <pluginExecutions>
161 <pluginExecution>
162 <pluginExecutionFilter>
waqas.ikram34bdfe12018-05-31 11:09:58 +0100163 <groupId>org.codehaus.mojo</groupId>
164 <artifactId>exec-maven-plugin</artifactId>
waqas.ikram48229522018-05-31 14:49:38 +0100165 <versionRange>[1.6.0,)</versionRange>
waqas.ikram34bdfe12018-05-31 11:09:58 +0100166 <goals>
167 <goal>java</goal>
ramverma28ea3362018-07-18 16:28:07 +0100168 <goal>exec</goal>
waqas.ikram34bdfe12018-05-31 11:09:58 +0100169 </goals>
170 </pluginExecutionFilter>
171 <action>
172 <execute />
173 </action>
174 </pluginExecution>
175 <pluginExecution>
176 <pluginExecutionFilter>
eikrwaqa94302f2018-05-23 14:08:29 +0100177 <groupId>org.commonjava.maven.plugins</groupId>
178 <artifactId>directory-maven-plugin</artifactId>
179 <versionRange>0.2</versionRange>
180 <goals>
181 <goal>directory-of</goal>
182 </goals>
183 </pluginExecutionFilter>
184 <action>
185 <execute />
186 </action>
187 </pluginExecution>
ramvermaaf74a622018-07-31 18:25:39 +0100188 <pluginExecution>
ramvermac6d74e62018-07-11 14:21:13 +0100189 <pluginExecutionFilter>
190 <groupId>org.apache.maven.plugins</groupId>
191 <artifactId>maven-dependency-plugin</artifactId>
liamfallon32497612018-11-10 00:39:12 +0000192 <versionRange>[2.0,)</versionRange>
ramvermac6d74e62018-07-11 14:21:13 +0100193 <goals>
liamfallon32497612018-11-10 00:39:12 +0000194 <goal>unpack</goal>
ramvermac6d74e62018-07-11 14:21:13 +0100195 <goal>unpack-dependencies</goal>
196 </goals>
197 </pluginExecutionFilter>
198 <action>
199 <execute />
200 </action>
201 </pluginExecution>
liamfallon32497612018-11-10 00:39:12 +0000202 <pluginExecution>
203 <pluginExecutionFilter>
204 <groupId>org.apache.maven.plugins</groupId>
205 <artifactId>maven-antrun-plugin</artifactId>
206 <versionRange>[1.0,)</versionRange>
207 <goals>
208 <goal>run</goal>
209 </goals>
210 </pluginExecutionFilter>
211 <action>
212 <ignore />
213 </action>
214 </pluginExecution>
eikrwaqa94302f2018-05-23 14:08:29 +0100215 </pluginExecutions>
216 </lifecycleMappingMetadata>
217 </configuration>
218 </plugin>
219 </plugins>
220 </pluginManagement>
221 </build>
222 </profile>
ramvermaaf74a622018-07-31 18:25:39 +0100223
224 <profile>
225 <!--This profile is used to create local APEX documentation and a Maven site -->
226 <id>apexSite</id>
227 <activation>
228 <property>
229 <name>apexSite</name>
230 </property>
231 </activation>
232 <properties>
233 <!-- 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
234 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/ -->
235 <dependency.locations.enabled>false</dependency.locations.enabled>
236
237 <!-- Site and ADOC properties -->
238 <apex.adsite.prefix>https://www.onap.org/policy/apex-pdp/site</apex.adsite.prefix>
239 <release-version>${project.version}</release-version>
240
241 <adsite-main-dir>${project.basedir}/src</adsite-main-dir>
242 <adsite-tools-wsclients-dir>${project.basedir}/tools/simple-wsclient/src</adsite-tools-wsclients-dir>
243 <adsite-tools-common-dir>${project.basedir}/tools/tools-common/src</adsite-tools-common-dir>
liamfallona41c8772018-09-05 15:46:31 +0100244
ramvermaaf74a622018-07-31 18:25:39 +0100245 <adsite-examples-myfirstpolicy-dir>${project.basedir}/examples/examples-myfirstpolicy/src</adsite-examples-myfirstpolicy-dir>
246 <adsite-examples-decisionmaker-dir>${project.basedir}/examples/examples-decisionmaker/src</adsite-examples-decisionmaker-dir>
247 <adsite-examples-pcvs-dir>${project.basedir}/examples/examples-pcvs/src</adsite-examples-pcvs-dir>
248 <adsite-examples-periodic-dir>${project.basedir}/examples/examples-periodic/src</adsite-examples-periodic-dir>
249 <adsite-examples-onap-vcpe-dir>${project.basedir}/examples/examples-onap-vcpe/src</adsite-examples-onap-vcpe-dir>
s003703465262c352019-04-11 00:14:39 +0530250 <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 +0100251 <adsite-examples-servlet-dir>${project.basedir}/examples/examples-servlet/src</adsite-examples-servlet-dir>
ramvermaaf74a622018-07-31 18:25:39 +0100252
liamfallona41c8772018-09-05 15:46:31 +0100253 <adsite-packages-docker-dir>${project.basedir}/packages/apex-pdp-docker/src</adsite-packages-docker-dir>
254
ramvermaaf74a622018-07-31 18:25:39 +0100255 <adsite-plugins-event-protocol-dir>${project.basedir}/plugins/plugins-event/plugins-event-protocol/src</adsite-plugins-event-protocol-dir>
256 <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>
257 <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>
258 <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>
259
260 <adsite-plugins-event-carrier-dir>${project.basedir}/plugins/plugins-event/plugins-event-carrier/src</adsite-plugins-event-carrier-dir>
261 <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>
262 <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>
263 <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>
264 <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>
265 <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>
266 <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>
267 <adsite-plugins-context-dir>${project.basedir}/plugins/plugins-context/src</adsite-plugins-context-dir>
Dinh Danh Lea5a44272018-08-22 12:41:50 +0100268 <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 +0100269 <adsite-plugins-executor-dir>${project.basedir}/plugins/plugins-executor/src</adsite-plugins-executor-dir>
270 <adsite-plugins-executor-java-dir>${project.basedir}/plugins/plugins-executor/plugins-executor-java/src</adsite-plugins-executor-java-dir>
271 <adsite-plugins-executor-javascript-dir>${project.basedir}/plugins/plugins-executor/plugins-executor-javascript/src</adsite-plugins-executor-javascript-dir>
272 <adsite-plugins-executor-jruby-dir>${project.basedir}/plugins/plugins-executor/plugins-executor-jruby/src</adsite-plugins-executor-jruby-dir>
liamfallon88f17592019-09-14 12:39:25 +0100273 <!-- Jython support disabled due to security concerns -->
274 <!-- adsite-plugins-executor-jython-dir>${project.basedir}/plugins/plugins-executor/plugins-executor-jython/src</adsite-plugins-executor-jython-dir-->
ramvermaaf74a622018-07-31 18:25:39 +0100275 <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 +0100276
ramvermaaf74a622018-07-31 18:25:39 +0100277 <adsite-services-engine-dir>${project.basedir}/services/services-engine/src</adsite-services-engine-dir>
278 </properties>
279 <distributionManagement>
280 <site>
281 <id>${project.artifactId}-site</id>
282 <url>${apex.adsite.prefix}/</url>
283 </site>
284 </distributionManagement>
285 <build>
286 <plugins>
287 <plugin>
288 <groupId>org.commonjava.maven.plugins</groupId>
289 <artifactId>directory-maven-plugin</artifactId>
290 <version>0.2</version>
291 <executions>
292 <execution>
293 <id>directories</id>
294 <goals>
295 <goal>directory-of</goal>
296 </goals>
297 <phase>initialize</phase>
298 <configuration>
299 <property>apex.basedir</property>
300 <project>
301 <groupId>org.onap.policy.apex-pdp</groupId>
302 <artifactId>apex-pdp</artifactId>
303 </project>
304 </configuration>
305 </execution>
306 </executions>
307 </plugin>
308
309 <plugin>
310 <groupId>org.apache.maven.plugins</groupId>
311 <artifactId>maven-site-plugin</artifactId>
312 <version>3.7.1</version>
313 <configuration>
314 <stagingDirectory>${apex.basedir}/target/ad-site</stagingDirectory>
315 <asciidoc>
316 <embedAssets>true</embedAssets>
317 <attributes>
318 <source-highlighter>coderay</source-highlighter>
319 <coderay-css>style</coderay-css>
320 <imagesdir>images</imagesdir>
321 </attributes>
322 </asciidoc>
323 <moduleExcludes>
324 <asciidoc>**/_*.adoc</asciidoc>
325 </moduleExcludes>
326 </configuration>
327 <dependencies>
328 <dependency>
329 <groupId>org.apache.maven.doxia</groupId>
330 <artifactId>doxia-site-renderer</artifactId>
331 <version>1.8</version>
332 </dependency>
333 <dependency>
334 <groupId>org.asciidoctor</groupId>
335 <artifactId>asciidoctor-maven-plugin</artifactId>
336 <version>1.5.6</version>
337 </dependency>
338 </dependencies>
339 </plugin>
340
341 <plugin>
342 <groupId>org.apache.maven.plugins</groupId>
343 <artifactId>maven-resources-plugin</artifactId>
344 <version>3.0.2</version>
345 <executions>
346 <execution>
347 <id>copy-site-css</id>
348 <phase>process-resources</phase>
349 <goals>
350 <goal>copy-resources</goal>
351 </goals>
352 <configuration>
353 <resources>
354 <resource>
355 <directory>src/site/css</directory>
356 <includes>
357 <include>**/*.css</include>
358 </includes>
359 </resource>
360 </resources>
361 <outputDirectory>${project.build.directory}/site/css</outputDirectory>
362 <overwrite>true</overwrite>
363 </configuration>
364 </execution>
365
366 <execution>
367 <id>copy-site-logos</id>
368 <phase>process-resources</phase>
369 <goals>
370 <goal>copy-resources</goal>
371 </goals>
372 <configuration>
373 <resources>
374 <resource>
375 <directory>src/site/images</directory>
376 <includes>
377 <include>**/*.png</include>
378 </includes>
379 </resource>
380 </resources>
381 <outputDirectory>${project.build.directory}/site/images</outputDirectory>
382 <overwrite>true</overwrite>
383 </configuration>
384 </execution>
385
386 <execution>
387 <id>copy-um-install-images</id>
388 <phase>process-resources</phase>
389 <goals>
390 <goal>copy-resources</goal>
391 </goals>
392 <configuration>
393 <resources>
394 <resource>
395 <directory>src/site-docs/adoc/resources/images/install-guide</directory>
396 <includes>
397 <include>**/*.jpg</include>
398 <include>**/*.png</include>
399 </includes>
400 </resource>
401 </resources>
402 <outputDirectory>${project.build.directory}/site/user-manual/install/images/install-guide</outputDirectory>
403 </configuration>
404 </execution>
405
406 <execution>
407 <id>copy-howto-config-images</id>
408 <phase>process-resources</phase>
409 <goals>
410 <goal>copy-resources</goal>
411 </goals>
412 <configuration>
413 <resources>
414 <resource>
415 <directory>src/site-docs/adoc/resources/images/apex-intro</directory>
416 <includes>
417 <include>ApexEngineConfig.jpg</include>
418 <include>ApexEngineConfig.png</include>
419 </includes>
420 </resource>
421 </resources>
422 <outputDirectory>${project.build.directory}/site/user-manual/configuration/images/apex-intro</outputDirectory>
423 </configuration>
424 </execution>
425
426 <execution>
427 <id>copy-tech-intro-apex-images</id>
428 <phase>process-resources</phase>
429 <goals>
430 <goal>copy-resources</goal>
431 </goals>
432 <configuration>
433 <resources>
434 <resource>
435 <directory>src/site-docs/adoc/resources/images/apex-intro</directory>
436 <includes>
437 <include>**/*.jpg</include>
438 <include>**/*.png</include>
439 </includes>
440 </resource>
441 </resources>
442 <outputDirectory>${project.build.directory}/site/apex-intro/images/apex-intro</outputDirectory>
443 </configuration>
444 </execution>
445
446 <execution>
447 <id>copy-tech-pm-apex-images</id>
448 <phase>process-resources</phase>
449 <goals>
450 <goal>copy-resources</goal>
451 </goals>
452 <configuration>
453 <resources>
454 <resource>
455 <directory>src/site-docs/adoc/resources/images/apex-policy-model</directory>
456 <includes>
457 <include>**/*.jpg</include>
458 <include>**/*.png</include>
459 </includes>
460 </resource>
461 </resources>
462 <outputDirectory>${project.build.directory}/site/policy-guide/policy-model/images/apex-policy-model</outputDirectory>
463 </configuration>
464 </execution>
465
466 <execution>
467 <id>copy-tech-pm-apex-intro-images</id>
468 <phase>process-resources</phase>
469 <goals>
470 <goal>copy-resources</goal>
471 </goals>
472 <configuration>
473 <resources>
474 <resource>
475 <directory>src/site-docs/adoc/resources/images/apex-intro</directory>
476 <includes>
477 <include>ApexPolicyMatrix.png</include>
478 </includes>
479 </resource>
480 </resources>
481 <outputDirectory>${project.build.directory}/site/policy-guide/images/apex-intro</outputDirectory>
482 </configuration>
483 </execution>
484
485 <execution>
486 <id>copy-domain-mfp-images</id>
487 <phase>process-resources</phase>
488 <goals>
489 <goal>copy-resources</goal>
490 </goals>
491 <configuration>
492 <resources>
493 <resource>
Dinh Danh Lea5a44272018-08-22 12:41:50 +0100494 <directory>${project.basedir}/examples/examples-myfirstpolicy/src/site-docs/adoc/resources/images</directory>
ramvermaaf74a622018-07-31 18:25:39 +0100495 <includes>
496 <include>**/*.jpg</include>
497 <include>**/*.png</include>
498 </includes>
499 </resource>
500 </resources>
501 <outputDirectory>${project.build.directory}/site/user-manual/my-first-policy/images</outputDirectory>
502 </configuration>
503 </execution>
504
505 <execution>
506 <id>copy-asciidoc-generated</id>
507 <phase>process-resources</phase>
508 <goals>
509 <goal>copy-resources</goal>
510 </goals>
511 <configuration>
512 <resources>
513 <resource>
514 <directory>target/generated-docs</directory>
515 </resource>
516 </resources>
517 <outputDirectory>${project.build.directory}/site/docs-apex</outputDirectory>
518 </configuration>
519 </execution>
520 </executions>
521 </plugin>
a.sreekumar0fbf0392019-06-20 09:39:59 +0000522
523 <plugin>
524 <artifactId>maven-checkstyle-plugin</artifactId>
525 <executions>
526 <execution>
527 <id>onap-java-style</id>
528 <goals>
529 <goal>check</goal>
530 </goals>
531 <phase>process-sources</phase>
532 <configuration>
533 <!-- Use Google Java Style Guide: https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml
534 with minor changes -->
535 <configLocation>onap-checkstyle/onap-java-style.xml</configLocation>
536 <!-- <sourceDirectory> is needed so that checkstyle ignores the generated sources directory -->
537 <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
538 <includeResources>true</includeResources>
539 <includeTestSourceDirectory>true</includeTestSourceDirectory>
540 <includeTestResources>true</includeTestResources>
541 <excludes>
542 </excludes>
543 <consoleOutput>true</consoleOutput>
544 <failOnViolation>true</failOnViolation>
545 <violationSeverity>warning</violationSeverity>
546 </configuration>
547 </execution>
548 </executions>
549 <dependencies>
550 <dependency>
551 <groupId>org.onap.oparent</groupId>
552 <artifactId>checkstyle</artifactId>
553 <version>${oparent.version}</version>
554 <scope>compile</scope>
555 </dependency>
556 </dependencies>
557 </plugin>
ramvermaaf74a622018-07-31 18:25:39 +0100558 </plugins>
559 </build>
560
561 <reporting>
562 <plugins>
563 <plugin>
564 <groupId>org.apache.maven.plugins</groupId>
565 <artifactId>maven-project-info-reports-plugin</artifactId>
566 <version>2.9</version>
567 </plugin>
568 <plugin>
569 <groupId>org.apache.maven.plugins</groupId>
570 <artifactId>maven-javadoc-plugin</artifactId>
571 <version>3.0.0-M1</version>
572 <reportSets>
573 <reportSet>
574 <id>default</id>
575 <reports>
576 <report>javadoc</report>
577 </reports>
578 </reportSet>
579 <reportSet>
580 <id>aggregate</id>
581 <inherited>false</inherited>
582 <reports>
583 <report>aggregate</report>
584 </reports>
585 </reportSet>
586 </reportSets>
587 <configuration>
588 <destDir>javadocs</destDir>
589 <source>${maven.compiler.target}</source>
590 <encoding>${project.resources.sourceEncoding}</encoding>
591 <docencoding>${project.resources.sourceEncoding}</docencoding>
592 <charset>${project.resources.sourceEncoding}</charset>
593 <!--<aggregate>false</aggregate>-->
594 <nohelp>true</nohelp>
595 <header>APEX - ${project.artifactId} ${project.version}</header>
596 <footer>APEX - ${project.artifactId} ${project.version}</footer>
597 <doctitle>APEX - ${project.artifactId} ${project.version}</doctitle>
598 <noqualifier>all</noqualifier>
599 <detectLinks>false</detectLinks>
600 <detectJavaApiLink>true</detectJavaApiLink>
601 <javadocDirectory>${project.basedir}/src/main/javadoc</javadocDirectory>
602 <docfilessubdirs>true</docfilessubdirs>
603 <overview>overview.html</overview>
604 <show>public</show>
605 <!-- Exclude JAXB generated packages -->
606 <excludePackageNames>org.onap.policy.apex.plugins.event.protocol.xml.jaxb</excludePackageNames>
607 </configuration>
608 </plugin>
609 </plugins>
610 </reporting>
611 </profile>
612
613 <profile>
614 <id>apexDocs</id>
615 <activation>
616 <property>
617 <name>apexDocs</name>
618 </property>
619 </activation>
liamfallon3aa7cbe2018-10-31 16:35:54 +0000620 <modules />
ramvermaaf74a622018-07-31 18:25:39 +0100621 <build>
622 <plugins>
623 <plugin>
624 <groupId>org.asciidoctor</groupId>
625 <artifactId>asciidoctor-maven-plugin</artifactId>
626 <version>1.5.6</version>
627 <dependencies>
628 <dependency>
629 <groupId>org.asciidoctor</groupId>
630 <artifactId>asciidoctorj-pdf</artifactId>
631 <version>1.5.0-alpha.16</version>
632 </dependency>
633 </dependencies>
634 <configuration>
635 <sourceHighlighter>coderay</sourceHighlighter>
636 <sourceDirectory>src/site-docs/adoc/guides</sourceDirectory>
637 <preserveDirectories>true</preserveDirectories>
638 <attributes>
639 <toc />
640 <pagenums />
641 <sectnums />
642 <linkcss>true</linkcss>
643 <stylesdir>styles</stylesdir>
644
645 <!-- Change this to get another style -->
646 <stylesheet>compass/rocket-panda.css</stylesheet>
647 <pdf-stylesdir>${project.basedir}/src/site-docs/adoc/resources-pdf/themes</pdf-stylesdir>
648 <pdf-style>apex-pdf.yml</pdf-style>
649 <pdf-fontsdir>${project.basedir}/src/site-docs/adoc/resources-pdf/fonts</pdf-fontsdir>
650
651 <revnumber>${project.version}</revnumber>
652 <revdate>${maven.build.timestamp}</revdate>
653 <organization>${project.organization.name}</organization>
654
655 <release-version>${project.version}</release-version>
656
657 <adsite-main-dir>${project.basedir}/src</adsite-main-dir>
658 <adsite-tools-wsclients-dir>${project.basedir}/tools/simple-wsclient/src</adsite-tools-wsclients-dir>
659 <adsite-tools-common-dir>${project.basedir}/tools/tools-common/src</adsite-tools-common-dir>
liamfallona41c8772018-09-05 15:46:31 +0100660
ramvermaaf74a622018-07-31 18:25:39 +0100661 <adsite-examples-myfirstpolicy-dir>${project.basedir}/examples/examples-myfirstpolicy/src</adsite-examples-myfirstpolicy-dir>
662 <adsite-examples-decisionmaker-dir>${project.basedir}/examples/examples-decisionmaker/src</adsite-examples-decisionmaker-dir>
663 <adsite-examples-pcvs-dir>${project.basedir}/examples/examples-pcvs/src</adsite-examples-pcvs-dir>
664 <adsite-examples-periodic-dir>${project.basedir}/examples/examples-periodic/src</adsite-examples-periodic-dir>
665 <adsite-examples-onap-vcpe-dir>${project.basedir}/examples/examples-onap-vcpe/src</adsite-examples-onap-vcpe-dir>
s003703465262c352019-04-11 00:14:39 +0530666 <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 +0100667 <adsite-examples-servlet-dir>${project.basedir}/examples/examples-servlet/src</adsite-examples-servlet-dir>
ramvermaaf74a622018-07-31 18:25:39 +0100668
liamfallona41c8772018-09-05 15:46:31 +0100669 <adsite-packages-docker-dir>${project.basedir}/packages/apex-pdp-docker/src</adsite-packages-docker-dir>
670
ramvermaaf74a622018-07-31 18:25:39 +0100671 <adsite-plugins-event-protocol-dir>${project.basedir}/plugins/plugins-event/plugins-event-protocol/src</adsite-plugins-event-protocol-dir>
672 <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>
673 <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>
674 <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>
675 <adsite-plugins-event-carrier-dir>${project.basedir}/plugins/plugins-event/plugins-event-carrier/src</adsite-plugins-event-carrier-dir>
676 <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>
677 <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>
678 <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>
679 <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>
680 <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>
681 <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>
682 <adsite-plugins-context-dir>${project.basedir}/plugins/plugins-context/src</adsite-plugins-context-dir>
Dinh Danh Lea5a44272018-08-22 12:41:50 +0100683 <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 +0100684 <adsite-plugins-executor-dir>${project.basedir}/plugins/plugins-executor/src</adsite-plugins-executor-dir>
685 <adsite-plugins-executor-java-dir>${project.basedir}/plugins/plugins-executor/plugins-executor-java/src</adsite-plugins-executor-java-dir>
686 <adsite-plugins-executor-javascript-dir>${project.basedir}/plugins/plugins-executor/plugins-executor-javascript/src</adsite-plugins-executor-javascript-dir>
687 <adsite-plugins-executor-jruby-dir>${project.basedir}/plugins/plugins-executor/plugins-executor-jruby/src</adsite-plugins-executor-jruby-dir>
688 <adsite-plugins-executor-jython-dir>${project.basedir}/plugins/plugins-executor/plugins-executor-jython/src</adsite-plugins-executor-jython-dir>
689 <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 +0100690
ramvermaaf74a622018-07-31 18:25:39 +0100691 <adsite-services-engine-dir>${project.basedir}/services/services-engine/src</adsite-services-engine-dir>
692 </attributes>
693 </configuration>
694 <executions>
695 <execution>
696 <id>asciidoc-html-doc</id>
697 <phase>generate-resources</phase>
698 <configuration>
699 <backend>html</backend>
700 <outputDirectory>${project.build.directory}/generated-docs/html</outputDirectory>
701 <resources>
702 <resource>
703 <directory>src/site-docs/adoc/resources</directory>
704 </resource>
705 <resource>
Dinh Danh Lea5a44272018-08-22 12:41:50 +0100706 <directory>${project.basedir}/examples/examples-myfirstpolicy/src/site-docs/adoc/resources</directory>
ramvermaaf74a622018-07-31 18:25:39 +0100707 </resource>
708 </resources>
709 </configuration>
710 <goals>
711 <goal>process-asciidoc</goal>
712 </goals>
713 </execution>
714 <execution>
715 <id>asciidoc-pdf-doc</id>
716 <phase>generate-resources</phase>
717 <configuration>
718 <backend>pdf</backend>
719 <outputDirectory>${project.build.directory}/generated-docs/pdf</outputDirectory>
720 <imagesDir>${project.basedir}/target/generated-docs/html/images</imagesDir>
721 </configuration>
722 <goals>
723 <goal>process-asciidoc</goal>
724 </goals>
725 </execution>
726 </executions>
727 </plugin>
Dinh Danh Lea5a44272018-08-22 12:41:50 +0100728
729 <plugin>
730 <groupId>org.apache.maven.plugins</groupId>
731 <artifactId>maven-resources-plugin</artifactId>
732 <version>3.0.2</version>
733 <executions>
734 <execution>
735 <id>copy-site-css</id>
736 <phase>generate-sources</phase>
737 <goals>
738 <goal>copy-resources</goal>
739 </goals>
740 <configuration>
741 <resources>
742 <resource>
743 <directory>${project.basedir}/src/site-docs/adoc/guides</directory>
744 <includes>
745 <include>**/*.css</include>
746 </includes>
747 </resource>
748 </resources>
749 <outputDirectory>${project.basedir}/target/generated-docs/pdf/styles</outputDirectory>
750 <overwrite>true</overwrite>
751 </configuration>
752 </execution>
753 </executions>
754 </plugin>
755
ramvermaaf74a622018-07-31 18:25:39 +0100756 </plugins>
757 </build>
758 </profile>
eikrwaqa94302f2018-05-23 14:08:29 +0100759 </profiles>
760
eikrwaqa94302f2018-05-23 14:08:29 +0100761 <modules>
762 <module>model</module>
ramverma10d58cd2018-05-29 15:25:49 +0100763 <module>context</module>
ramverma37d6fd92018-06-01 11:51:36 +0100764 <module>core</module>
waqas.ikram57224402018-06-01 14:23:01 +0100765 <module>auth</module>
waqas.ikram75ff76e2018-06-06 11:04:36 +0100766 <module>services</module>
waqas.ikramf94d7522018-06-05 16:18:01 +0100767 <module>plugins</module>
ramverma3d025432018-07-19 18:45:16 +0100768 <module>examples</module>
waqas.ikram2816ea62018-06-27 16:16:42 +0100769 <module>testsuites</module>
ramverma0ba66782018-07-06 16:29:16 +0100770 <module>client</module>
ramverma1eb51982018-07-16 15:23:45 +0100771 <module>tools</module>
liamfallon79ae3f72018-07-24 14:23:37 +0100772 <module>packages</module>
eikrwaqa94302f2018-05-23 14:08:29 +0100773 </modules>
liamfallon4d6fc382018-06-27 12:50:17 +0100774</project>