1 <!-- ============LICENSE_START=======================================================
2 org.onap.dmaap ================================================================================
3 Copyright © 2017 AT&T Intellectual Property. All rights reserved. ================================================================================
4 Licensed under the Apache License, Version 2.0 (the "License"); you may not
5 use this file except in compliance with the License. You may obtain a copy
6 of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required
7 by applicable law or agreed to in writing, software distributed under the
8 License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS
9 OF ANY KIND, either express or implied. See the License for the specific
10 language governing permissions and limitations under the License. ============LICENSE_END=========================================================
11 ECOMP is a trademark and service mark of AT&T Intellectual Property. -->
12 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
13 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
14 <modelVersion>4.0.0</modelVersion>
17 <groupId>org.onap.oparent</groupId>
18 <artifactId>oparent</artifactId>
19 <version>3.2.0</version>
22 <groupId>org.onap.dmaap.messagerouter.messageservice</groupId>
23 <artifactId>dmaapMR1</artifactId>
24 <version>1.3.0-SNAPSHOT</version>
25 <name>dmaap-messagerouter-messageservice</name>
26 <description>Message Router - Restful interface built for kafka</description>
29 <name>Apache License Version 2.0</name>
35 <name>Rajashree</name>
37 <organization>ATT</organization>
38 <organizationUrl>www.att.com</organizationUrl>
43 <organization>ATT</organization>
44 <organizationUrl>www.att.com</organizationUrl>
49 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
50 <dockerLocation>${basedir}/target/swm/package/nix/dist_files/</dockerLocation>
51 <docker.image.prefix>simpledemo</docker.image.prefix>
52 <!-- <javax-mail-version>1.5.0</javax-mail-version> -->
53 <module.ajsc.namespace.name>dmaap</module.ajsc.namespace.name>
54 <module.ajsc.namespace.version>v1</module.ajsc.namespace.version>
55 <ajscRuntimeVersion>3.0.11-oss</ajscRuntimeVersion>
57 <!-- This will be the Absolute Root of the Project and should contain NO
59 <absoluteDistFilesRoot>/appl/${project.artifactId}</absoluteDistFilesRoot>
60 <!-- <absoluteDistFilesRoot>/opt/app/dmaap/${project.artifactId}</absoluteDistFilesRoot> -->
61 <!-- For Versioning upon installation, add /${project.version} to distFilesRoot.
62 For NO Versioning, leave as is -->
63 <!-- example: /appl/${project.artifactId}/${project.version}. Also, add
64 ${project.version} to ${runAjscHome} for running locally. -->
65 <distFilesRoot>/appl/${project.artifactId}</distFilesRoot>
66 <!-- <distFilesRoot>/opt/app/dmaap/${project.artifactId}</distFilesRoot> -->
67 <runAjscHome>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}</runAjscHome>
69 <!-- For SOA Cloud Installation <installOwnerUser>aft</installOwnerUser>
70 <installOwnerGroup>aft</installOwnerGroup> <ownerManagementGroup>com.att.acsi.saat.dt.dmaap.dev</ownerManagementGroup> -->
71 <!-- For SOA Cloud Installation -->
72 <installOwnerUser>msgrtr</installOwnerUser>
73 <installOwnerGroup>dmaap</installOwnerGroup>
74 <ownerManagementGroup>com.att.acsi.saat.dt.dmaap.dev</ownerManagementGroup>
75 <!-- Port Selection. A value of 0 will allow for dynamic port selection.
76 For local testing, you may choose to hardcode this value to something like
78 <serverPort>3904</serverPort>
79 <sslport>3905</sslport>
80 <onap.nexus.url>https://nexus.onap.org</onap.nexus.url>
81 <testRouteOffer>workstation</testRouteOffer>
82 <testEnv>DEV</testEnv>
83 <!-- <dmaapImg>${project.version}</dmaapImg> -->
84 <timestamp>${maven.build.timestamp}</timestamp>
85 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
86 <camel.version>2.21.5</camel.version>
87 <camel.version.latest>3.5.0</camel.version.latest>
88 <sitePath>/content/sites/site/org/onap/dmaap/messagerouter/messageservice/${project.artifactId}/${project.version}</sitePath>
89 <skip.docker.build>false</skip.docker.build>
90 <skip.docker.tag>false</skip.docker.tag>
91 <skip.docker.push>false</skip.docker.push>
92 <nexusproxy>https://nexus.onap.org</nexusproxy>
93 <docker.push.registry>nexus3.onap.org:10003</docker.push.registry>
94 <spring.version>3.2.18.RELEASE</spring.version>
95 <sonar.language>java</sonar.language>
96 <sonar.skip>false</sonar.skip>
97 <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
98 <sonar.coverage.jacoco.xmlReportPaths>${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths>
99 <sonar.projectVersion>${project.version}</sonar.projectVersion>
100 <log4j.version>2.13.3</log4j.version>
101 <maven.compiler.target>8</maven.compiler.target>
102 <maven.compiler.source>8</maven.compiler.source>
103 <skip.deploy>false</skip.deploy>
109 <artifactId>maven-checkstyle-plugin</artifactId>
112 <id>onap-java-style</id>
114 <consoleOutput>false</consoleOutput>
120 <groupId>org.apache.maven.plugins</groupId>
121 <artifactId>maven-site-plugin</artifactId>
124 <groupId>org.apache.maven.plugins</groupId>
125 <artifactId>maven-jar-plugin</artifactId>
126 <version>3.0.2</version>
129 <groupId>org.apache.maven.plugins</groupId>
130 <artifactId>maven-source-plugin</artifactId>
131 <version>3.0.0</version>
134 <id>attach-sources</id>
136 <goal>jar-no-fork</goal>
142 <groupId>org.apache.maven.plugins</groupId>
143 <artifactId>maven-release-plugin</artifactId>
144 <version>2.5.3</version>
146 <autoVersionSubmodules>true</autoVersionSubmodules>
147 <checkModificationExcludes>
148 </checkModificationExcludes>
152 <groupId>org.apache.maven.scm</groupId>
153 <artifactId>maven-scm-provider-gitexe</artifactId>
154 <version>1.9.4</version>
159 <groupId>com.blackducksoftware.integration</groupId>
160 <artifactId>hub-maven-plugin</artifactId>
161 <version>1.0.4</version>
162 <inherited>false</inherited>
164 <target>${project.basedir}</target>
168 <id>create-bdio-file</id>
169 <phase>package</phase>
171 <goal>createHubOutput</goal>
177 <groupId>org.codehaus.groovy</groupId>
178 <artifactId>groovy-eclipse-compiler</artifactId>
179 <version>2.8.0-01</version>
180 <extensions>true</extensions>
183 <artifactId>maven-deploy-plugin</artifactId>
184 <version>3.0.0-M1</version>
186 <skip>${skip.deploy}</skip>
192 <!-- Distribution management -->
193 <distributionManagement>
196 <url>dav:${nexusproxy}${sitePath}</url>
198 </distributionManagement>
200 <!-- End Distribution management -->
202 <!-- The standard build tasks for this project are inherited from the parent.
203 Please do not override the build tasks. However tasks and/or profiles can
204 be included here as well as additional dependencies for your service. Any
205 runtime or compile scope dependencies will be copied to the INSTALLATION_PATH/extJars
206 folder and will be made available on the AJSC classpath for your service.
207 Please, NOTE: DME2 and CSM related dependencies are EXTERNALIZED within the
208 CSI environment. Therefore, they are provided within this project as "provided"
209 dependencies. In order for the AJSC to run properly, locally, the CSM and
210 DME2 dependencies will be copied into the target/commonLibs folder and will
211 be made available to the classpath of the AJSC through the use of the system
212 property, "AJSC_EXTERNAL_LIB_FOLDERS". This system property needs to be set
213 in the "runAjsc" maven profile within the pom.xml (and, is defaulted to do
214 so). If you have a startup failure related to a missing dme2 class not found
215 exception, please contact the AJSC team for assistance. You can email support
216 at ajsc-Support <DL-ajsc-Support@att.com>. For more information regarding
217 the usage of the AJSC service pom.xml and management of dependencies, -->
220 <!-- cmn-CommonDataModel dependency added to resolve build issue not finding
223 <!-- <dependency> <groupId>csi-schemas-source</groupId> <artifactId>cmn-CommonDataModel</artifactId>
224 <version>112.0.50</version> </dependency> -->
225 <!-- TODO: add open source version here -->
227 <groupId>org.springframework.boot</groupId>
228 <artifactId>spring-boot-starter-actuator</artifactId>
229 <version>2.4.0</version>
231 <!-- Micormeter core dependecy -->
233 <groupId>io.micrometer</groupId>
234 <artifactId>micrometer-core</artifactId>
235 <version>1.7.1</version>
237 <!-- Micrometer Prometheus registry -->
239 <groupId>io.micrometer</groupId>
240 <artifactId>micrometer-registry-prometheus</artifactId>
241 <version>1.6.1</version>
244 <groupId>com.sun.mail</groupId>
245 <artifactId>javax.mail</artifactId>
246 <version>1.6.0</version>
248 <!-- javax activation is part of the JDK now -->
250 <groupId>javax.activation</groupId>
251 <artifactId>activation</artifactId>
256 <groupId>com.sun.xml.bind</groupId>
257 <artifactId>jaxb-core</artifactId>
258 <version>2.3.0.1</version>
259 <scope>compile</scope>
262 <groupId>com.sun.xml.bind</groupId>
263 <artifactId>jaxb-impl</artifactId>
264 <version>2.3.0.1</version>
265 <scope>compile</scope>
268 <artifactId>jsr181-api</artifactId>
269 <groupId>javax.jws</groupId>
274 <groupId>org.apache.cxf</groupId>
275 <artifactId>cxf-rt-transports-http</artifactId>
276 <version>3.2.5</version>
279 <groupId>com.att.aft</groupId>
280 <artifactId>dme2</artifactId>
281 <version>3.1.200-oss</version>
284 <groupId>javax.jms</groupId>
285 <artifactId>jms</artifactId>
290 <groupId>org.springframework</groupId>
291 <artifactId>spring-test</artifactId>
292 <version>3.2.12.RELEASE</version>
296 <groupId>org.springframework</groupId>
297 <artifactId>spring-expression</artifactId>
298 <version>4.3.18.RELEASE</version>
301 <groupId>org.springframework</groupId>
302 <artifactId>spring-messaging</artifactId>
303 <version>4.1.9.RELEASE</version>
306 <groupId>org.apache.zookeeper</groupId>
307 <artifactId>zookeeper</artifactId>
308 <version>3.7.0</version>
311 <groupId>com.101tec</groupId>
312 <artifactId>zkclient</artifactId>
313 <version>0.2</version>
316 <groupId>org.slf4j</groupId>
317 <artifactId>slf4j-api</artifactId>
318 <version>1.6.1</version>
320 <!-- Log4j2 logger -->
322 <groupId>org.apache.logging.log4j</groupId>
323 <artifactId>log4j-api</artifactId>
324 <version>${log4j.version}</version>
327 <groupId>org.apache.logging.log4j</groupId>
328 <artifactId>log4j-core</artifactId>
329 <version>${log4j.version}</version>
332 <groupId>org.slf4j</groupId>
333 <artifactId>slf4j-log4j12</artifactId>
334 <version>1.6.1</version>
338 <artifactId>*</artifactId>
343 <groupId>org.hamcrest</groupId>
344 <artifactId>hamcrest-library</artifactId>
345 <version>1.3</version>
349 <groupId>org.apache.kafka</groupId>
350 <artifactId>kafka_2.13</artifactId>
351 <version>2.8.0</version>
354 <groupId>commons-codec</groupId>
355 <artifactId>commons-codec</artifactId>
356 <version>1.14</version>
359 <groupId>jline</groupId>
360 <artifactId>jline</artifactId>
361 <version>2.12.1</version>
364 <groupId>commons-io</groupId>
365 <artifactId>commons-io</artifactId>
366 <version>2.7</version>
369 <groupId>org.quartz-scheduler</groupId>
370 <artifactId>quartz</artifactId>
371 <version>2.3.2</version>
374 <groupId>com.fasterxml.woodstox</groupId>
375 <artifactId>woodstox-core</artifactId>
376 <version>5.3.0</version>
379 <groupId>org.grails</groupId>
380 <artifactId>grails-bootstrap</artifactId>
381 <version>4.0.1</version>
382 <scope>compile</scope>
385 <artifactId>ant</artifactId>
386 <groupId>org.apache.ant</groupId>
389 <artifactId>jna</artifactId>
390 <groupId>net.java.dev.jna</groupId>
393 <artifactId>ant-trax</artifactId>
394 <groupId>org.apache.ant</groupId>
397 <artifactId>gant_groovy1.8</artifactId>
398 <groupId>org.codehaus.gant</groupId>
401 <artifactId>ant-launcher</artifactId>
402 <groupId>org.apache.ant</groupId>
405 <artifactId>jline</artifactId>
406 <groupId>jline</groupId>
409 <artifactId>ivy</artifactId>
410 <groupId>org.apache.ivy</groupId>
413 <artifactId>jansi</artifactId>
414 <groupId>org.fusesource.jansi</groupId>
417 <artifactId>commons-logging</artifactId>
418 <groupId>commons-logging</groupId>
421 <artifactId>ant-junit</artifactId>
422 <groupId>org.apache.ant</groupId>
427 <groupId>commons-fileupload</groupId>
428 <artifactId>commons-fileupload</artifactId>
429 <version>1.4</version>
432 <groupId>org.springframework</groupId>
433 <artifactId>spring-context</artifactId>
434 <version>4.3.18.RELEASE</version>
437 <groupId>org.springframework</groupId>
438 <artifactId>spring-webmvc</artifactId>
439 <version>5.3.3</version>
442 <groupId>org.springframework</groupId>
443 <artifactId>spring-core</artifactId>
444 <version>4.3.18.RELEASE</version>
447 <groupId>org.springframework</groupId>
448 <artifactId>spring-beans</artifactId>
449 <version>4.3.18.RELEASE</version>
452 <groupId>commons-io</groupId>
453 <artifactId>commons-io</artifactId>
454 <version>2.11.0</version>
457 <groupId>com.att.eelf</groupId>
458 <artifactId>eelf-core</artifactId>
459 <version>1.0.0</version>
462 <groupId>org.mockito</groupId>
463 <artifactId>mockito-core</artifactId>
466 <groupId>org.powermock</groupId>
467 <artifactId>powermock-module-junit4</artifactId>
470 <groupId>org.powermock</groupId>
471 <artifactId>powermock-api-mockito</artifactId>
475 <!-- our NSA server library -->
477 <groupId>com.att.nsa</groupId>
478 <artifactId>nsaServerLibrary</artifactId>
479 <version>1.0.10</version>
482 <groupId>org.apache.tomcat</groupId>
483 <artifactId>tomcat-catalina</artifactId>
486 <groupId>org.apache.tomcat.embed</groupId>
487 <artifactId>tomcat-embed-core</artifactId>
490 <groupId>org.apache.tomcat</groupId>
491 <artifactId>tomcat-util</artifactId>
494 <groupId>javax.mail</groupId>
495 <artifactId>mail</artifactId>
500 <groupId>com.att.nsa</groupId>
501 <artifactId>saToolkit</artifactId>
502 <version>0.0.1</version>
505 <groupId>org.apache.curator</groupId>
506 <artifactId>curator-recipes</artifactId>
507 <version>4.0.1</version>
510 <groupId>org.apache.curator</groupId>
511 <artifactId>curator-test</artifactId>
512 <version>4.0.1</version>
515 <groupId>javax.inject</groupId>
516 <artifactId>javax.inject</artifactId>
520 <groupId>org.mockito</groupId>
521 <artifactId>mockito-core</artifactId>
522 <version>3.9.0</version>
526 <groupId>org.powermock</groupId>
527 <artifactId>powermock-core</artifactId>
528 <version>2.0.7</version>
532 <groupId>org.powermock</groupId>
533 <artifactId>powermock-module-junit4</artifactId>
534 <version>2.0.7</version>
538 <groupId>org.powermock</groupId>
539 <artifactId>powermock-module-junit4-rule</artifactId>
540 <version>2.0.7</version>
544 <groupId>org.powermock</groupId>
545 <artifactId>powermock-api-support</artifactId>
546 <version>2.0.7</version>
550 <groupId>org.powermock</groupId>
551 <artifactId>powermock-api-mockito2</artifactId>
552 <version>2.0.7</version>
555 <groupId>com.fasterxml.jackson.jaxrs</groupId>
556 <artifactId>jackson-jaxrs-json-provider</artifactId>
557 <version>2.2.3</version>
560 <groupId>com.fasterxml.jackson.core</groupId>
561 <artifactId>jackson-core</artifactId>
564 <groupId>com.fasterxml.jackson.core</groupId>
565 <artifactId>jackson-databind</artifactId>
568 <groupId>org.grails</groupId>
569 <artifactId>grails-web</artifactId>
570 <version>2.5.4</version>
573 <groupId>org.grails</groupId>
574 <artifactId>grails-web-jsp</artifactId>
579 <groupId>org.codehaus.groovy</groupId>
580 <artifactId>groovy-all</artifactId>
581 <version>3.0.8</version>
585 <artifactId>jline</artifactId>
586 <groupId>jline</groupId>
591 <groupId>junit</groupId>
592 <artifactId>junit</artifactId>
593 <version>4.13.2</version>
597 <groupId>org.json</groupId>
598 <artifactId>json</artifactId>
599 <version>20131018</version>
601 <!-- CXF JAX-RS extension -->
603 <groupId>org.apache.cxf</groupId>
604 <artifactId>cxf-rt-rs-extension-providers</artifactId>
605 <version>3.2.2</version>
608 <groupId>org.apache.cxf</groupId>
609 <artifactId>cxf-core</artifactId>
614 <groupId>org.codehaus.jettison</groupId>
615 <artifactId>jettison</artifactId>
616 <version>1.3.7</version>
619 <groupId>com.att.ajsc</groupId>
620 <artifactId>ajsc-archetype-parent</artifactId>
621 <version>3.0.11-oss</version>
625 <groupId>org.onap.aaf.authz</groupId>
626 <artifactId>aaf-cadi-aaf</artifactId>
627 <version>2.7.4</version>
630 <artifactId>log4j</artifactId>
631 <groupId>log4j</groupId>
636 <groupId>backport-util-concurrent</groupId>
637 <artifactId>backport-util-concurrent</artifactId>
638 <version>3.1</version>
641 <groupId>org.apache.camel</groupId>
642 <artifactId>camel-core</artifactId>
643 <version>3.4.0</version>
646 <groupId>org.apache.camel</groupId>
647 <artifactId>camel-quartz</artifactId>
648 <version>${camel.version}</version>
651 <groupId>org.apache.camel</groupId>
652 <artifactId>camel-spring</artifactId>
653 <version>${camel.version.latest}</version>
656 <groupId>org.apache.camel</groupId>
657 <artifactId>camel-restlet</artifactId>
658 <version>${camel.version}</version>
661 <artifactId>org.restlet</artifactId>
662 <groupId>org.restlet.jse</groupId>
667 <groupId>org.apache.camel</groupId>
668 <artifactId>camel-servlet</artifactId>
669 <version>${camel.version}</version>
672 <groupId>org.apache.httpcomponents</groupId>
673 <artifactId>httpcore</artifactId>
674 <version>4.4.1</version>
677 <groupId>org.apache.camel</groupId>
678 <artifactId>camel-http4</artifactId>
679 <version>${camel.version}</version>
682 <groupId>org.apache.geronimo.specs</groupId>
683 <artifactId>geronimo-servlet_2.5_spec</artifactId>
688 <groupId>org.apache.camel</groupId>
689 <artifactId>camel-groovy</artifactId>
690 <version>${camel.version.latest}</version>
693 <groupId>org.apache.camel</groupId>
694 <artifactId>camel-twitter</artifactId>
695 <version>${camel.version}</version>
698 <groupId>org.apache.camel</groupId>
699 <artifactId>camel-mail</artifactId>
700 <version>${camel.version}</version>
703 <groupId>org.apache.camel</groupId>
704 <artifactId>camel-smpp</artifactId>
705 <version>${camel.version}</version>
708 <groupId>org.apache.camel</groupId>
709 <artifactId>camel-jms</artifactId>
710 <version>${camel.version}</version>
713 <groupId>org.apache.camel</groupId>
714 <artifactId>camel-script</artifactId>
715 <version>${camel.version}</version>
718 <groupId>org.apache.camel</groupId>
719 <artifactId>camel-xmpp</artifactId>
720 <version>${camel.version}</version>
723 <groupId>org.igniterealtime.smack</groupId>
724 <artifactId>smack-tcp</artifactId>
725 <version>4.4.2</version>
728 <groupId>org.apache.camel</groupId>
729 <artifactId>camel-velocity</artifactId>
730 <version>${camel.version.latest}</version>
733 <groupId>com.att.ajsc</groupId>
734 <artifactId>ajsc-runner</artifactId>
735 <version>3.0.11-oss</version>
736 <scope>runtime</scope>
739 <groupId>com.att.ajsc</groupId>
740 <artifactId>ajsc-core</artifactId>
741 <version>3.0.11-oss</version>
742 <scope>provided</scope>
745 <groupId>org.apache.kafka</groupId>
746 <artifactId>kafka_2.12</artifactId>
747 <version>2.7.0</version>
752 <!-- Use this profile to run the AJSC locally. This profile can be successfully
753 shutdown WITHIN eclipse even in a Windows environment. Debugging is also
754 available with this profile. -->
763 <groupId>org.codehaus.groovy.maven</groupId>
764 <artifactId>gmaven-plugin</artifactId>
767 <phase>validate</phase>
773 <ver>${project.version}</ver>
774 <timestamp>${maven.build.timestamp}</timestamp>
777 println project.properties['ver'];
778 if ( project.properties['ver'].endsWith("-SNAPSHOT") ) {
779 project.properties['dockertag1']=project.properties['ver'] + "-latest";
780 project.properties['dockertag2']=project.properties['ver'] + "-" + project.properties['timestamp'];
782 project.properties['dockertag1']=project.properties['ver'] + "-STAGING-latest";
783 project.properties['dockertag2']=project.properties['ver'] + "-STAGING-" + project.properties['timestamp'];
785 println 'docker tag 1: ' + project.properties['dockertag1'];
786 println 'docker tag 2: ' + project.properties['dockertag2'];
793 <groupId>io.fabric8</groupId>
794 <artifactId>docker-maven-plugin</artifactId>
795 <version>0.28.0</version>
797 <skipBuild>${skip.docker.build}</skipBuild>
798 <skipPush>${skip.docker.push}</skipPush>
799 <pullRegistry>${docker.pull.registry}</pullRegistry>
800 <pushRegistry>${docker.push.registry}</pushRegistry>
803 <name>onap/dmaap/dmaap-mr</name>
805 <cleanup>try</cleanup>
806 <dockerFileDir>${dockerLocation}</dockerFileDir>
807 <dockerFile>Dockerfile</dockerFile>
809 <tag>${dockertag1}</tag>
810 <tag>${dockertag2}</tag>
818 <id>generate-images</id>
819 <phase>install</phase>
826 <phase>deploy</phase>
840 <defaultGoal>initialize</defaultGoal>
843 <groupId>org.apache.maven.plugins</groupId>
844 <artifactId>maven-antrun-plugin</artifactId>
847 <phase>initialize</phase>
849 <target name="runLocal">
850 <ant antfile="${basedir}/antBuild/build.xml" target="runLocal" />
866 <defaultGoal>initialize</defaultGoal>
869 <groupId>org.codehaus.mojo</groupId>
870 <artifactId>exec-maven-plugin</artifactId>
871 <version>1.3.2</version>
874 <phase>initialize</phase>
879 <!-- In order to better mimic a SOA cloud installation of AJSC (and
880 to help eliminate Maven/Eclipse/AJSC classpath issues that may be difficult
881 to diagnose), within this profile used to run locally, we are NOT including
882 project dependencies. These will be loaded by AJSC from $AJSC_HOME/extJars.
883 The only jar needed to run AJSC is the ajsc-runner.jar, and therefore is
884 the only dependency required by this profile to run locally. -->
885 <includeProjectDependencies>false</includeProjectDependencies>
886 <includePluginDependencies>true</includePluginDependencies>
887 <executable>java</executable>
888 <mainClass>com.att.ajsc.runner.Runner</mainClass>
889 <executableDependency>
890 <groupId>com.att.ajsc</groupId>
891 <artifactId>ajsc-runner</artifactId>
892 </executableDependency>
893 <additionalClasspathElements>
894 <additionalClasspathElement>${basedir}/ajsc-shared-config/etc</additionalClasspathElement>
895 </additionalClasspathElements>
897 <environmentVariables>
898 <AJSC_HOME>${runAjscHome}</AJSC_HOME>
899 </environmentVariables>
901 <!-- Main AJSC System Properties below (necessary for proper startup) -->
905 <value>${runAjscHome}</value>
909 <value>${runAjscHome}</value>
912 <key>AJSC_CONF_HOME</key>
913 <value>${basedir}/bundleconfig-local</value>
916 <key>logback.configurationFile</key>
917 <value>${basedir}/ajsc-shared-config/etc/logback.xml</value>
920 <key>com.att.eelf.logging.file</key>
921 <value>logback.xml</value>
924 <key>com.att.eelf.logging.path</key>
925 <value>${basedir}/ajsc-shared-config/etc</value>
928 <key>logging.config</key>
929 <value>${basedir}/ajsc-shared-config/etc/logback.xml</value>
932 <key>AJSC_SHARED_CONFIG</key>
933 <value>${basedir}/ajsc-shared-config</value>
936 <!-- Please, NOTE: The following 2 system properties will normally
937 be set within the sys-props.properties file once deployed to a node. We are
938 setting them HERE to run locally to make more efficient use of maven variable
939 replacement for ${basedir} -->
940 <!-- AJSC_EXTERNAL_LIB_FOLDERS represents the particular jars that
941 will be externalized on a CSI node. This includes dme2 and csm related artifact. -->
943 <key>AJSC_EXTERNAL_LIB_FOLDERS</key>
944 <value>${basedir}/target/commonLibs</value>
946 <!-- AJSC_EXTERNAL_PROPERTIES_FOLDERS represents the particular
947 files that may need to be added to the classpath. These files will be externalized
948 on a CSI node. This includes dme2 and csm related artifact (such as csm-config-app.properties).
949 Failure to have these files on the classpath may result in errors thrown
950 by csm framework. -->
952 <key>AJSC_EXTERNAL_PROPERTIES_FOLDERS</key>
953 <value>${basedir}/ajsc-shared-config/etc</value>
957 <key>AJSC_SERVICE_NAMESPACE</key>
958 <value>${module.ajsc.namespace.name}</value>
961 <key>AJSC_SERVICE_VERSION</key>
962 <value>${module.ajsc.namespace.version}</value>
965 <key>SOACLOUD_SERVICE_VERSION</key>
966 <value>${project.version}</value>
969 <key>server.port</key>
970 <value>${serverPort}</value>
974 <!-- Command Line Arguments to add to the java command. Here, you
975 can specify the port as well as the Context you want your service to run
976 in. Use context=/ to run in an unnamed Context (Root Context). The default
977 configuration of the AJSC is to run under the / Context. Setting the port
978 here can aid during the development phase of your service. However, you can
979 leave this argument out entirely, and the AJSC will default to using an Ephemeral
982 <argument>context=/</argument>
983 <argument>port=${serverPort}</argument>
984 <argument>sslport=${sslport}</argument>
990 <executable>java</executable>
994 <groupId>com.att.ajsc</groupId>
995 <artifactId>ajsc-runner</artifactId>
996 <version>${ajscRuntimeVersion}</version>
1004 <id>standardbuild</id>
1007 <exists>src</exists>
1013 <directory>src/main/resources</directory>
1015 <exclude>extApps/*.*</exclude>
1016 <exclude>${module.ajsc.namespace.name}/**</exclude>
1020 <directory>src/main/ajsc/\${namespace}_${namespaceVersion}/\${namespace}/\${namespaceVersion}</directory>
1022 <exclude>**/*.route</exclude>
1023 <exclude>**/*.props</exclude>
1024 <exclude>**/*.xslt</exclude>
1025 <exclude>**/*.vm</exclude>
1026 <exclude>**/*.jar</exclude>
1027 <exclude>**/*.xml</exclude>
1033 <groupId>org.apache.maven.plugins</groupId>
1034 <artifactId>maven-compiler-plugin</artifactId>
1035 <version>3.1</version>
1038 <groupId>org.codehaus.groovy</groupId>
1039 <artifactId>groovy-eclipse-compiler</artifactId>
1040 <version>2.8.0-01</version>
1041 <extensions>true</extensions>
1044 <groupId>org.codehaus.mojo</groupId>
1045 <artifactId>exec-maven-plugin</artifactId>
1046 <version>1.2.1</version>
1055 <executable>bash</executable>
1057 <argument>runServer.sh</argument>
1062 <groupId>org.codehaus.mojo</groupId>
1063 <artifactId>build-helper-maven-plugin</artifactId>
1064 <version>1.9</version>
1067 <id>add-source-groovy-ajsc-arch-parent</id>
1068 <phase>generate-sources</phase>
1070 <goal>add-source</goal>
1074 <source>src/main/groovy</source>
1079 <id>add-test-source-groovy-ajsc-arch-parent</id>
1080 <phase>generate-test-sources</phase>
1082 <goal>add-test-source</goal>
1086 <source>src/test/groovy</source>
1091 <id>regex-properties-ajsc-arch-parent</id>
1092 <phase>initialize</phase>
1094 <goal>regex-properties</goal>
1097 <regexPropertySettings>
1098 <regexPropertySetting>
1099 <name>replaceWinFilePath</name>
1100 <value>${runAjscHome}</value>
1102 <replacement>/</replacement>
1103 <failIfNoMatch>false</failIfNoMatch>
1104 </regexPropertySetting>
1105 <regexPropertySetting>
1106 <name>replaceWinBasedirPath</name>
1107 <value>${basedir}</value>
1109 <replacement>/</replacement>
1110 <failIfNoMatch>false</failIfNoMatch>
1111 </regexPropertySetting>
1112 </regexPropertySettings>
1118 <groupId>org.codehaus.mojo</groupId>
1119 <artifactId>properties-maven-plugin</artifactId>
1120 <version>1.0-alpha-2</version>
1123 <id>write-project-properties-ajsc-arch-parent</id>
1124 <phase>generate-resources</phase>
1126 <goal>write-project-properties</goal>
1130 ${project.build.outputDirectory}/build.properties
1137 <groupId>org.apache.maven.plugins</groupId>
1138 <artifactId>maven-assembly-plugin</artifactId>
1139 <version>2.4</version>
1142 <id>make-assembly-ajsc-arch-parent</id>
1143 <phase>package</phase>
1150 <finalName>${project.artifactId}</finalName>
1152 <descriptor>src/main/assemble/ajsc_runtime_assembly.xml</descriptor>
1157 <groupId>org.codehaus.groovy.maven</groupId>
1158 <artifactId>gmaven-plugin</artifactId>
1159 <version>1.0</version>
1162 <id>gmaven-ajsc-arch-parent</id>
1163 <phase>package</phase>
1165 <goal>execute</goal>
1168 <sourcepath>src/main/groovy</sourcepath>
1170 import ajsc.AssemblyService;
1171 ajsc.AssemblyService.getBasedir(project.basedir.getAbsolutePath(),"${distFilesRoot}")
1178 <groupId>org.apache.maven.plugins</groupId>
1179 <artifactId>maven-antrun-plugin</artifactId>
1180 <version>1.7</version>
1183 <id>prep_service_runtime-ajsc-arch-parent</id>
1184 <phase>generate-resources</phase>
1186 <target name="prep_service_runtime">
1187 <echo message="ENTERING 'copy_services_template' ant tasks" />
1188 <!-- <filter token="basedir" value="${basedir}" /> -->
1189 <!-- delete any prior stating stuff before package phase -->
1190 <delete dir="target/versioned-ajsc" includes="**/*" />
1191 <delete dir="target/versioned-runtime" includes="**/*" />
1192 <delete dir="target/CDP" includes="**/*" />
1194 <!-- This is where replacer plugin replaces tokens (Example: __module_ajsc_namespace_name__
1195 is replaced by module.ajsc.namespace.name) -->
1196 <copy todir="target/versioned-ajsc">
1197 <fileset dir="src/main/ajsc" includes="**/*" />
1200 <!-- Copying the CDP, bundleconfig, and StaticContent to the target
1201 directory for future use by replacer plugin -->
1202 <copy todir="target/CDP" failonerror="false">
1203 <fileset dir="CDP" includes="**/*.sh" />
1205 <copy flatten="true" file="CDP/SampleBlueprint.xml"
1207 tofile="target/CDP/${module.ajsc.namespace.name}Blueprint.xml" />
1208 <copy todir="target/staticContent" failonerror="false">
1209 <fileset dir="staticContent" includes="**/*" />
1211 <copy todir="target/bundleconfig" failonerror="false">
1212 <!-- filtering="true"> -->
1213 <fileset dir="bundleconfig" />
1216 <echo message="EXITING 'copy_services_template' ant tasks" />
1217 <echo message="ENTERING 'copy_runtime_template' ant tasks" />
1218 <copy todir="target/versioned-runtime">
1219 <fileset dir="src/main/runtime" includes="**/*" />
1222 file="target/versioned-runtime/context/__module.ajsc.namespace.name__#__module.ajsc.namespace.version__.context" />
1223 <copy flatten="true"
1224 file="src/main/runtime/context/__module.ajsc.namespace.name__#__module.ajsc.namespace.version__.context"
1225 tofile="target/versioned-runtime/context/${module.ajsc.namespace.name}#${module.ajsc.namespace.version}.context" />
1227 file="target/versioned-runtime/deploymentPackage/__module.ajsc.namespace.name__#__module.ajsc.namespace.version__.json" />
1228 <copy flatten="true"
1229 file="src/main/runtime/deploymentPackage/__module.ajsc.namespace.name__#__module.ajsc.namespace.version__.json"
1230 tofile="target/versioned-runtime/deploymentPackage/${module.ajsc.namespace.name}#${module.ajsc.namespace.version}.json" />
1232 file="target/versioned-runtime/shiroRole/contextadmin#__module.ajsc.namespace.name__.json" />
1233 <copy flatten="true"
1234 file="src/main/runtime/shiroRole/contextadmin#__module.ajsc.namespace.name__.json"
1235 tofile="target/versioned-runtime/shiroRole/contextadmin#${module.ajsc.namespace.name}.json" />
1237 file="target/versioned-runtime/shiroUserRole/ajsc#contextAdmin#__module.ajsc.namespace.name__.json" />
1238 <copy flatten="true"
1239 file="src/main/runtime/shiroUserRole/ajsc#contextadmin#__module.ajsc.namespace.name__.json"
1240 tofile="target/versioned-runtime/shiroUserRole/ajsc#contextadmin#${module.ajsc.namespace.name}.json" />
1241 <echo message="EXITING 'copy_runtime_template' ant tasks" />
1250 <phase>package</phase>
1254 srcdir="${basedir}/target/swm/package/nix/dist_files${distFilesRoot}"
1255 includes="**/*.sh,**/*.xml,**/*.properties,**/*.xsd" />
1263 <id>prep_home_directory_for_swm_pkgcreate-ajsc-arch-parent</id>
1264 <phase>package</phase>
1266 <target name="prep_home_directory_for_swm_pkgcreate">
1267 <ant antfile="${basedir}/antBuild/build.xml" target="prep_home_directory_for_swm_pkgcreate" />
1277 <groupId>org.apache.maven.plugins</groupId>
1278 <artifactId>maven-dependency-plugin</artifactId>
1279 <version>2.8</version>
1282 <id>copy-dependencies-ajsc-arch-parent</id>
1283 <phase>prepare-package</phase>
1285 <goal>copy-dependencies</goal>
1288 <includeScope>runtime</includeScope>
1289 <excludeArtifactIds>ajsc-bom,ajsc-core,ajsc-runner,ajsc-war</excludeArtifactIds>
1290 <outputDirectory>${project.build.directory}/userjars</outputDirectory>
1291 <silent>true</silent>
1295 <id>copy-dependencies-ajsc-arch-parent-commonLibs</id>
1296 <phase>prepare-package</phase>
1298 <goal>copy-dependencies</goal>
1301 <includeScope>provided</includeScope>
1302 <includeGroupIds>net.cingular.enterprise,com.att.aft,dom4j</includeGroupIds>
1303 <outputDirectory>${project.build.directory}/commonLibs</outputDirectory>
1304 <silent>true</silent>
1309 <phase>prepare-package</phase>
1311 <goal>copy-dependencies</goal>
1314 <includeArtifactIds>ajsc-runner</includeArtifactIds>
1315 <outputDirectory>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}/lib</outputDirectory>
1321 <artifactId>maven-resources-plugin</artifactId>
1322 <version>2.7</version>
1326 <phase>package</phase>
1328 <goal>copy-resources</goal>
1331 <outputDirectory>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}/etc</outputDirectory>
1334 <directory>src/main/config</directory>
1341 <phase>package</phase>
1343 <goal>copy-resources</goal>
1346 <outputDirectory>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}/bin</outputDirectory>
1349 <directory>src/main/scripts</directory>
1355 <id>copy-docker-file</id>
1356 <phase>prepare-package</phase>
1358 <goal>copy-resources</goal>
1361 <outputDirectory>${dockerLocation}</outputDirectory>
1362 <overwrite>true</overwrite>
1365 <directory>${basedir}/src/main/resources/docker</directory>
1366 <filtering>true</filtering>
1368 <include>**/*</include>
1377 <groupId>com.google.code.maven-replacer-plugin</groupId>
1378 <artifactId>replacer</artifactId>
1379 <version>1.5.2</version>
1382 <id>google-replacer-ajsc-arch-parent</id>
1383 <phase>prepare-package</phase>
1385 <goal>replace</goal>
1388 <basedir>${project.build.directory}</basedir>
1390 <include>staticContent/**/*.html</include>
1391 <include>CDP/**</include>
1392 <include>bundleconfig/**</include>
1393 <include>versioned-runtime/**/*.context</include>
1394 <include>versioned-runtime/**/*.json</include>
1395 <include>versioned-ajsc/**/*.route</include>
1396 <include>versioned-ajsc/**/*.groovy</include>
1397 <include>versioned-ajsc/**/*.xml</include>
1398 <include>classes/*.properties</include>
1399 <include>swm/package/nix/dist_files${distFilesRoot}/etc/*.properties</include>
1401 <escape>true</escape>
1404 <token>__module_ajsc_namespace_name__</token>
1405 <value>${module.ajsc.namespace.name}</value>
1408 <token>__module_ajsc_namespace_version__</token>
1409 <value>${module.ajsc.namespace.version}</value>
1412 <token>__ajscHome__</token>
1413 <value>${replaceWinFilePath}</value>
1416 <token>__projectGroupId__</token>
1417 <value>${project.groupId}</value>
1420 <token>__projectArtifactId__</token>
1421 <value>${project.artifactId}</value>
1424 <token>__projectVersion__</token>
1425 <value>${project.version}</value>
1428 <token>__basedir__</token>
1429 <value>${replaceWinBasedirPath}</value>
1440 <groupId>org.apache.maven.plugins</groupId>
1441 <artifactId>maven-surefire-plugin</artifactId>
1442 <version>2.14.1</version>
1445 <exclude>**/AbstractTest.java</exclude>