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>true</skip.docker.build>
90 <skip.docker.tag>true</skip.docker.tag>
91 <skip.docker.push>true</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>
108 <artifactId>maven-checkstyle-plugin</artifactId>
111 <id>onap-java-style</id>
113 <consoleOutput>false</consoleOutput>
119 <groupId>org.apache.maven.plugins</groupId>
120 <artifactId>maven-site-plugin</artifactId>
121 <version>3.6</version>
124 <groupId>org.apache.maven.wagon</groupId>
125 <artifactId>wagon-webdav-jackrabbit</artifactId>
126 <version>2.10</version>
132 <groupId>org.apache.maven.plugins</groupId>
133 <artifactId>maven-jar-plugin</artifactId>
134 <version>3.0.2</version>
137 <groupId>org.apache.maven.plugins</groupId>
138 <artifactId>maven-source-plugin</artifactId>
139 <version>3.0.0</version>
142 <id>attach-sources</id>
144 <goal>jar-no-fork</goal>
150 <groupId>org.apache.maven.plugins</groupId>
151 <artifactId>maven-release-plugin</artifactId>
152 <version>2.5.3</version>
154 <autoVersionSubmodules>true</autoVersionSubmodules>
155 <checkModificationExcludes>
156 </checkModificationExcludes>
160 <groupId>org.apache.maven.scm</groupId>
161 <artifactId>maven-scm-provider-gitexe</artifactId>
162 <version>1.9.4</version>
169 <groupId>com.blackducksoftware.integration</groupId>
170 <artifactId>hub-maven-plugin</artifactId>
171 <version>1.0.4</version>
172 <inherited>false</inherited>
174 <target>${project.basedir}</target>
178 <id>create-bdio-file</id>
179 <phase>package</phase>
181 <goal>createHubOutput</goal>
187 <groupId>org.codehaus.groovy</groupId>
188 <artifactId>groovy-eclipse-compiler</artifactId>
189 <version>2.8.0-01</version>
190 <extensions>true</extensions>
196 <!-- Distribution management -->
197 <distributionManagement>
200 <url>dav:${nexusproxy}${sitePath}</url>
202 </distributionManagement>
204 <!-- End Distribution management -->
206 <!-- The standard build tasks for this project are inherited from the parent.
207 Please do not override the build tasks. However tasks and/or profiles can
208 be included here as well as additional dependencies for your service. Any
209 runtime or compile scope dependencies will be copied to the INSTALLATION_PATH/extJars
210 folder and will be made available on the AJSC classpath for your service.
211 Please, NOTE: DME2 and CSM related dependencies are EXTERNALIZED within the
212 CSI environment. Therefore, they are provided within this project as "provided"
213 dependencies. In order for the AJSC to run properly, locally, the CSM and
214 DME2 dependencies will be copied into the target/commonLibs folder and will
215 be made available to the classpath of the AJSC through the use of the system
216 property, "AJSC_EXTERNAL_LIB_FOLDERS". This system property needs to be set
217 in the "runAjsc" maven profile within the pom.xml (and, is defaulted to do
218 so). If you have a startup failure related to a missing dme2 class not found
219 exception, please contact the AJSC team for assistance. You can email support
220 at ajsc-Support <DL-ajsc-Support@att.com>. For more information regarding
221 the usage of the AJSC service pom.xml and management of dependencies, -->
224 <!-- cmn-CommonDataModel dependency added to resolve build issue not finding
227 <!-- <dependency> <groupId>csi-schemas-source</groupId> <artifactId>cmn-CommonDataModel</artifactId>
228 <version>112.0.50</version> </dependency> -->
229 <!-- TODO: add open source version here -->
231 <groupId>org.springframework.boot</groupId>
232 <artifactId>spring-boot-starter-actuator</artifactId>
233 <version>2.4.0</version>
235 <!-- Micormeter core dependecy -->
237 <groupId>io.micrometer</groupId>
238 <artifactId>micrometer-core</artifactId>
239 <version>1.7.1</version>
241 <!-- Micrometer Prometheus registry -->
243 <groupId>io.micrometer</groupId>
244 <artifactId>micrometer-registry-prometheus</artifactId>
245 <version>1.6.1</version>
248 <groupId>com.sun.mail</groupId>
249 <artifactId>javax.mail</artifactId>
250 <version>1.6.0</version>
252 <!-- javax activation is part of the JDK now -->
254 <groupId>javax.activation</groupId>
255 <artifactId>activation</artifactId>
260 <groupId>com.sun.xml.bind</groupId>
261 <artifactId>jaxb-core</artifactId>
262 <version>2.3.0.1</version>
263 <scope>compile</scope>
266 <groupId>com.sun.xml.bind</groupId>
267 <artifactId>jaxb-impl</artifactId>
268 <version>2.3.0.1</version>
269 <scope>compile</scope>
272 <artifactId>jsr181-api</artifactId>
273 <groupId>javax.jws</groupId>
279 <groupId>org.apache.cxf</groupId>
280 <artifactId>cxf-rt-transports-http</artifactId>
281 <version>3.2.5</version>
284 <groupId>com.att.aft</groupId>
285 <artifactId>dme2</artifactId>
286 <version>3.1.200-oss</version>
289 <groupId>javax.jms</groupId>
290 <artifactId>jms</artifactId>
295 <groupId>org.springframework</groupId>
296 <artifactId>spring-test</artifactId>
297 <version>3.2.12.RELEASE</version>
301 <groupId>org.springframework</groupId>
302 <artifactId>spring-expression</artifactId>
303 <version>4.3.18.RELEASE</version>
306 <groupId>org.springframework</groupId>
307 <artifactId>spring-messaging</artifactId>
308 <version>4.1.9.RELEASE</version>
311 <groupId>org.apache.zookeeper</groupId>
312 <artifactId>zookeeper</artifactId>
313 <version>3.4.14</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.11</artifactId>
351 <version>0.11.0.3</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>4.3.18.RELEASE</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>
454 <groupId>org.apache.commons</groupId>
455 <artifactId>commons-io</artifactId>
456 <version>1.3.2</version>
459 <groupId>com.att.eelf</groupId>
460 <artifactId>eelf-core</artifactId>
461 <version>1.0.0</version>
464 <groupId>org.mockito</groupId>
465 <artifactId>mockito-core</artifactId>
468 <groupId>org.powermock</groupId>
469 <artifactId>powermock-module-junit4</artifactId>
472 <groupId>org.powermock</groupId>
473 <artifactId>powermock-api-mockito</artifactId>
478 <!-- our NSA server library -->
480 <groupId>com.att.nsa</groupId>
481 <artifactId>nsaServerLibrary</artifactId>
482 <version>1.0.10</version>
485 <groupId>org.apache.tomcat</groupId>
486 <artifactId>tomcat-catalina</artifactId>
489 <groupId>org.apache.tomcat.embed</groupId>
490 <artifactId>tomcat-embed-core</artifactId>
493 <groupId>org.apache.tomcat</groupId>
494 <artifactId>tomcat-util</artifactId>
497 <groupId>javax.mail</groupId>
498 <artifactId>mail</artifactId>
503 <groupId>com.att.nsa</groupId>
504 <artifactId>saToolkit</artifactId>
505 <version>0.0.1</version>
508 <groupId>org.apache.curator</groupId>
509 <artifactId>curator-recipes</artifactId>
510 <version>4.0.1</version>
514 <groupId>org.apache.curator</groupId>
515 <artifactId>curator-test</artifactId>
516 <version>4.0.1</version>
519 <groupId>javax.inject</groupId>
520 <artifactId>javax.inject</artifactId>
524 <groupId>org.mockito</groupId>
525 <artifactId>mockito-core</artifactId>
526 <version>3.9.0</version>
530 <groupId>org.powermock</groupId>
531 <artifactId>powermock-core</artifactId>
532 <version>2.0.7</version>
536 <groupId>org.powermock</groupId>
537 <artifactId>powermock-module-junit4</artifactId>
538 <version>2.0.7</version>
542 <groupId>org.powermock</groupId>
543 <artifactId>powermock-module-junit4-rule</artifactId>
544 <version>2.0.7</version>
548 <groupId>org.powermock</groupId>
549 <artifactId>powermock-api-support</artifactId>
550 <version>2.0.7</version>
554 <groupId>org.powermock</groupId>
555 <artifactId>powermock-api-mockito2</artifactId>
556 <version>2.0.7</version>
559 <groupId>com.fasterxml.jackson.jaxrs</groupId>
560 <artifactId>jackson-jaxrs-json-provider</artifactId>
561 <version>2.2.3</version>
565 <groupId>com.fasterxml.jackson.core</groupId>
566 <artifactId>jackson-core</artifactId>
567 <version>2.11.2</version>
571 <groupId>com.fasterxml.jackson.core</groupId>
572 <artifactId>jackson-databind</artifactId>
573 <version>2.11.2</version>
576 <groupId>org.grails</groupId>
577 <artifactId>grails-web</artifactId>
578 <version>2.5.4</version>
581 <groupId>org.grails</groupId>
582 <artifactId>grails-web-jsp</artifactId>
587 <groupId>org.codehaus.groovy</groupId>
588 <artifactId>groovy-all</artifactId>
589 <version>2.4.8</version>
590 <scope>compile</scope>
593 <artifactId>jline</artifactId>
594 <groupId>jline</groupId>
600 <groupId>junit</groupId>
601 <artifactId>junit</artifactId>
602 <version>4.11</version>
607 <groupId>org.json</groupId>
608 <artifactId>json</artifactId>
609 <version>20131018</version>
612 <!-- CXF JAX-RS extension -->
614 <groupId>org.apache.cxf</groupId>
615 <artifactId>cxf-rt-rs-extension-providers</artifactId>
616 <version>3.2.2</version>
619 <groupId>org.apache.cxf</groupId>
620 <artifactId>cxf-core</artifactId>
625 <groupId>org.codehaus.jettison</groupId>
626 <artifactId>jettison</artifactId>
627 <version>1.3.7</version>
630 <groupId>com.att.ajsc</groupId>
631 <artifactId>ajsc-archetype-parent</artifactId>
632 <version>3.0.11-oss</version>
637 <groupId>org.onap.aaf.authz</groupId>
638 <artifactId>aaf-cadi-aaf</artifactId>
639 <version>2.7.4</version>
642 <groupId>backport-util-concurrent</groupId>
643 <artifactId>backport-util-concurrent</artifactId>
644 <version>3.1</version>
647 <groupId>org.apache.camel</groupId>
648 <artifactId>camel-core</artifactId>
649 <version>3.4.0</version>
652 <groupId>org.apache.camel</groupId>
653 <artifactId>camel-quartz</artifactId>
654 <version>${camel.version}</version>
657 <groupId>org.apache.camel</groupId>
658 <artifactId>camel-spring</artifactId>
659 <version>${camel.version.latest}</version>
662 <groupId>org.apache.camel</groupId>
663 <artifactId>camel-restlet</artifactId>
664 <version>${camel.version}</version>
667 <artifactId>org.restlet</artifactId>
668 <groupId>org.restlet.jse</groupId>
673 <groupId>org.apache.camel</groupId>
674 <artifactId>camel-servlet</artifactId>
675 <version>${camel.version}</version>
678 <groupId>org.apache.httpcomponents</groupId>
679 <artifactId>httpcore</artifactId>
680 <version>4.4.1</version>
683 <groupId>org.apache.camel</groupId>
684 <artifactId>camel-http4</artifactId>
685 <version>${camel.version}</version>
688 <groupId>org.apache.geronimo.specs</groupId>
689 <artifactId>geronimo-servlet_2.5_spec</artifactId>
694 <groupId>org.apache.camel</groupId>
695 <artifactId>camel-groovy</artifactId>
696 <version>${camel.version.latest}</version>
699 <groupId>org.apache.camel</groupId>
700 <artifactId>camel-twitter</artifactId>
701 <version>${camel.version}</version>
704 <groupId>org.apache.camel</groupId>
705 <artifactId>camel-mail</artifactId>
706 <version>${camel.version}</version>
709 <groupId>org.apache.camel</groupId>
710 <artifactId>camel-smpp</artifactId>
711 <version>${camel.version}</version>
714 <groupId>org.apache.camel</groupId>
715 <artifactId>camel-jms</artifactId>
716 <version>${camel.version}</version>
719 <groupId>org.apache.camel</groupId>
720 <artifactId>camel-script</artifactId>
721 <version>${camel.version}</version>
724 <groupId>org.apache.camel</groupId>
725 <artifactId>camel-xmpp</artifactId>
726 <version>${camel.version}</version>
729 <groupId>org.igniterealtime.smack</groupId>
730 <artifactId>smack-tcp</artifactId>
731 <version>4.1.0-rc1</version>
734 <groupId>org.apache.camel</groupId>
735 <artifactId>camel-velocity</artifactId>
736 <version>${camel.version.latest}</version>
739 <groupId>com.att.ajsc</groupId>
740 <artifactId>ajsc-runner</artifactId>
741 <version>3.0.11-oss</version>
742 <scope>runtime</scope>
745 <groupId>com.att.ajsc</groupId>
746 <artifactId>ajsc-core</artifactId>
747 <version>3.0.11-oss</version>
748 <scope>provided</scope>
753 <!-- Use this profile to run the AJSC locally. This profile can be successfully
754 shutdown WITHIN eclipse even in a Windows environment. Debugging is also
755 available with this profile. -->
759 <skip.docker.build>false</skip.docker.build>
760 <skip.docker.tag>false</skip.docker.tag>
761 <skip.docker.push>false</skip.docker.push>
766 <groupId>org.codehaus.groovy.maven</groupId>
767 <artifactId>gmaven-plugin</artifactId>
770 <phase>validate</phase>
776 <ver>${project.version}</ver>
777 <timestamp>${maven.build.timestamp}</timestamp>
780 println project.properties['ver'];
781 if ( project.properties['ver'].endsWith("-SNAPSHOT") ) {
782 project.properties['dockertag1']=project.properties['ver'] + "-latest";
783 project.properties['dockertag2']=project.properties['ver'] + "-" + project.properties['timestamp'];
785 project.properties['dockertag1']=project.properties['ver'] + "-STAGING-latest";
786 project.properties['dockertag2']=project.properties['ver'] + "-STAGING-" + project.properties['timestamp'];
788 println 'docker tag 1: ' + project.properties['dockertag1'];
789 println 'docker tag 2: ' + project.properties['dockertag2'];
796 <groupId>io.fabric8</groupId>
797 <artifactId>docker-maven-plugin</artifactId>
798 <version>0.28.0</version>
800 <verbose>${docker.verbose}</verbose>
801 <apiVersion>${docker.apiVersion}</apiVersion>
802 <pullRegistry>${docker.pull.registry}</pullRegistry>
803 <pushRegistry>${docker.push.registry}</pushRegistry>
806 <name>onap/dmaap/dmaap-mr</name>
808 <cleanup>try</cleanup>
809 <dockerFileDir>${dockerLocation}</dockerFileDir>
810 <dockerFile>Dockerfile</dockerFile>
812 <tag>${dockertag1}</tag>
813 <tag>${dockertag2}</tag>
821 <id>generate-images</id>
822 <phase>install</phase>
829 <phase>deploy</phase>
843 <defaultGoal>initialize</defaultGoal>
846 <groupId>org.apache.maven.plugins</groupId>
847 <artifactId>maven-antrun-plugin</artifactId>
850 <phase>initialize</phase>
852 <target name="runLocal">
853 <ant antfile="${basedir}/antBuild/build.xml" target="runLocal" />
869 <defaultGoal>initialize</defaultGoal>
872 <groupId>org.codehaus.mojo</groupId>
873 <artifactId>exec-maven-plugin</artifactId>
874 <version>1.3.2</version>
877 <phase>initialize</phase>
882 <!-- In order to better mimic a SOA cloud installation of AJSC (and
883 to help eliminate Maven/Eclipse/AJSC classpath issues that may be difficult
884 to diagnose), within this profile used to run locally, we are NOT including
885 project dependencies. These will be loaded by AJSC from $AJSC_HOME/extJars.
886 The only jar needed to run AJSC is the ajsc-runner.jar, and therefore is
887 the only dependency required by this profile to run locally. -->
888 <includeProjectDependencies>false</includeProjectDependencies>
889 <includePluginDependencies>true</includePluginDependencies>
890 <executable>java</executable>
891 <mainClass>com.att.ajsc.runner.Runner</mainClass>
892 <executableDependency>
893 <groupId>com.att.ajsc</groupId>
894 <artifactId>ajsc-runner</artifactId>
895 </executableDependency>
896 <additionalClasspathElements>
897 <additionalClasspathElement>${basedir}/ajsc-shared-config/etc</additionalClasspathElement>
898 </additionalClasspathElements>
900 <environmentVariables>
901 <AJSC_HOME>${runAjscHome}</AJSC_HOME>
902 </environmentVariables>
904 <!-- Main AJSC System Properties below (necessary for proper startup) -->
908 <value>${runAjscHome}</value>
912 <value>${runAjscHome}</value>
915 <key>AJSC_CONF_HOME</key>
916 <value>${basedir}/bundleconfig-local</value>
919 <key>logback.configurationFile</key>
920 <value>${basedir}/ajsc-shared-config/etc/logback.xml</value>
923 <key>com.att.eelf.logging.file</key>
924 <value>logback.xml</value>
927 <key>com.att.eelf.logging.path</key>
928 <value>${basedir}/ajsc-shared-config/etc</value>
931 <key>logging.config</key>
932 <value>${basedir}/ajsc-shared-config/etc/logback.xml</value>
935 <key>AJSC_SHARED_CONFIG</key>
936 <value>${basedir}/ajsc-shared-config</value>
939 <!-- Please, NOTE: The following 2 system properties will normally
940 be set within the sys-props.properties file once deployed to a node. We are
941 setting them HERE to run locally to make more efficient use of maven variable
942 replacement for ${basedir} -->
943 <!-- AJSC_EXTERNAL_LIB_FOLDERS represents the particular jars that
944 will be externalized on a CSI node. This includes dme2 and csm related artifact. -->
946 <key>AJSC_EXTERNAL_LIB_FOLDERS</key>
947 <value>${basedir}/target/commonLibs</value>
949 <!-- AJSC_EXTERNAL_PROPERTIES_FOLDERS represents the particular
950 files that may need to be added to the classpath. These files will be externalized
951 on a CSI node. This includes dme2 and csm related artifact (such as csm-config-app.properties).
952 Failure to have these files on the classpath may result in errors thrown
953 by csm framework. -->
955 <key>AJSC_EXTERNAL_PROPERTIES_FOLDERS</key>
956 <value>${basedir}/ajsc-shared-config/etc</value>
960 <key>AJSC_SERVICE_NAMESPACE</key>
961 <value>${module.ajsc.namespace.name}</value>
964 <key>AJSC_SERVICE_VERSION</key>
965 <value>${module.ajsc.namespace.version}</value>
968 <key>SOACLOUD_SERVICE_VERSION</key>
969 <value>${project.version}</value>
972 <key>server.port</key>
973 <value>${serverPort}</value>
977 <!-- Command Line Arguments to add to the java command. Here, you
978 can specify the port as well as the Context you want your service to run
979 in. Use context=/ to run in an unnamed Context (Root Context). The default
980 configuration of the AJSC is to run under the / Context. Setting the port
981 here can aid during the development phase of your service. However, you can
982 leave this argument out entirely, and the AJSC will default to using an Ephemeral
985 <argument>context=/</argument>
986 <argument>port=${serverPort}</argument>
987 <argument>sslport=${sslport}</argument>
993 <executable>java</executable>
997 <groupId>com.att.ajsc</groupId>
998 <artifactId>ajsc-runner</artifactId>
999 <version>${ajscRuntimeVersion}</version>
1008 <id>standardbuild</id>
1011 <exists>src</exists>
1017 <directory>src/main/resources</directory>
1019 <exclude>extApps/*.*</exclude>
1020 <exclude>${module.ajsc.namespace.name}/**</exclude>
1024 <directory>src/main/ajsc/\${namespace}_${namespaceVersion}/\${namespace}/\${namespaceVersion}</directory>
1026 <exclude>**/*.route</exclude>
1027 <exclude>**/*.props</exclude>
1028 <exclude>**/*.xslt</exclude>
1029 <exclude>**/*.vm</exclude>
1030 <exclude>**/*.jar</exclude>
1031 <exclude>**/*.xml</exclude>
1037 <groupId>org.apache.maven.plugins</groupId>
1038 <artifactId>maven-compiler-plugin</artifactId>
1039 <version>3.1</version>
1042 <groupId>org.codehaus.groovy</groupId>
1043 <artifactId>groovy-eclipse-compiler</artifactId>
1044 <version>2.8.0-01</version>
1045 <extensions>true</extensions>
1049 <groupId>org.codehaus.mojo</groupId>
1050 <artifactId>exec-maven-plugin</artifactId>
1051 <version>1.2.1</version>
1060 <executable>bash</executable>
1062 <argument>runServer.sh</argument>
1067 <groupId>org.codehaus.mojo</groupId>
1068 <artifactId>build-helper-maven-plugin</artifactId>
1069 <version>1.9</version>
1072 <id>add-source-groovy-ajsc-arch-parent</id>
1073 <phase>generate-sources</phase>
1075 <goal>add-source</goal>
1079 <source>src/main/groovy</source>
1084 <id>add-test-source-groovy-ajsc-arch-parent</id>
1085 <phase>generate-test-sources</phase>
1087 <goal>add-test-source</goal>
1091 <source>src/test/groovy</source>
1096 <id>regex-properties-ajsc-arch-parent</id>
1097 <phase>initialize</phase>
1099 <goal>regex-properties</goal>
1102 <regexPropertySettings>
1103 <regexPropertySetting>
1104 <name>replaceWinFilePath</name>
1105 <value>${runAjscHome}</value>
1107 <replacement>/</replacement>
1108 <failIfNoMatch>false</failIfNoMatch>
1109 </regexPropertySetting>
1110 <regexPropertySetting>
1111 <name>replaceWinBasedirPath</name>
1112 <value>${basedir}</value>
1114 <replacement>/</replacement>
1115 <failIfNoMatch>false</failIfNoMatch>
1116 </regexPropertySetting>
1117 </regexPropertySettings>
1123 <groupId>org.codehaus.mojo</groupId>
1124 <artifactId>properties-maven-plugin</artifactId>
1125 <version>1.0-alpha-2</version>
1128 <id>write-project-properties-ajsc-arch-parent</id>
1129 <phase>generate-resources</phase>
1131 <goal>write-project-properties</goal>
1135 ${project.build.outputDirectory}/build.properties
1142 <groupId>org.apache.maven.plugins</groupId>
1143 <artifactId>maven-assembly-plugin</artifactId>
1144 <version>2.4</version>
1147 <id>make-assembly-ajsc-arch-parent</id>
1148 <phase>package</phase>
1155 <finalName>${project.artifactId}</finalName>
1157 <descriptor>src/main/assemble/ajsc_runtime_assembly.xml</descriptor>
1162 <groupId>org.codehaus.groovy.maven</groupId>
1163 <artifactId>gmaven-plugin</artifactId>
1164 <version>1.0</version>
1167 <id>gmaven-ajsc-arch-parent</id>
1168 <phase>package</phase>
1170 <goal>execute</goal>
1173 <sourcepath>src/main/groovy</sourcepath>
1175 import ajsc.AssemblyService;
1176 ajsc.AssemblyService.getBasedir(project.basedir.getAbsolutePath(),"${distFilesRoot}")
1183 <groupId>org.apache.maven.plugins</groupId>
1184 <artifactId>maven-antrun-plugin</artifactId>
1185 <version>1.7</version>
1188 <id>prep_service_runtime-ajsc-arch-parent</id>
1189 <phase>generate-resources</phase>
1191 <target name="prep_service_runtime">
1192 <echo message="ENTERING 'copy_services_template' ant tasks" />
1193 <!-- <filter token="basedir" value="${basedir}" /> -->
1194 <!-- delete any prior stating stuff before package phase -->
1195 <delete dir="target/versioned-ajsc" includes="**/*" />
1196 <delete dir="target/versioned-runtime" includes="**/*" />
1197 <delete dir="target/CDP" includes="**/*" />
1199 <!-- This is where replacer plugin replaces tokens (Example: __module_ajsc_namespace_name__
1200 is replaced by module.ajsc.namespace.name) -->
1201 <copy todir="target/versioned-ajsc">
1202 <fileset dir="src/main/ajsc" includes="**/*" />
1205 <!-- Copying the CDP, bundleconfig, and StaticContent to the target
1206 directory for future use by replacer plugin -->
1207 <copy todir="target/CDP" failonerror="false">
1208 <fileset dir="CDP" includes="**/*.sh" />
1210 <copy flatten="true" file="CDP/SampleBlueprint.xml"
1212 tofile="target/CDP/${module.ajsc.namespace.name}Blueprint.xml" />
1213 <copy todir="target/staticContent" failonerror="false">
1214 <fileset dir="staticContent" includes="**/*" />
1216 <copy todir="target/bundleconfig" failonerror="false">
1217 <!-- filtering="true"> -->
1218 <fileset dir="bundleconfig" />
1221 <echo message="EXITING 'copy_services_template' ant tasks" />
1222 <echo message="ENTERING 'copy_runtime_template' ant tasks" />
1223 <copy todir="target/versioned-runtime">
1224 <fileset dir="src/main/runtime" includes="**/*" />
1227 file="target/versioned-runtime/context/__module.ajsc.namespace.name__#__module.ajsc.namespace.version__.context" />
1228 <copy flatten="true"
1229 file="src/main/runtime/context/__module.ajsc.namespace.name__#__module.ajsc.namespace.version__.context"
1230 tofile="target/versioned-runtime/context/${module.ajsc.namespace.name}#${module.ajsc.namespace.version}.context" />
1232 file="target/versioned-runtime/deploymentPackage/__module.ajsc.namespace.name__#__module.ajsc.namespace.version__.json" />
1233 <copy flatten="true"
1234 file="src/main/runtime/deploymentPackage/__module.ajsc.namespace.name__#__module.ajsc.namespace.version__.json"
1235 tofile="target/versioned-runtime/deploymentPackage/${module.ajsc.namespace.name}#${module.ajsc.namespace.version}.json" />
1237 file="target/versioned-runtime/shiroRole/contextadmin#__module.ajsc.namespace.name__.json" />
1238 <copy flatten="true"
1239 file="src/main/runtime/shiroRole/contextadmin#__module.ajsc.namespace.name__.json"
1240 tofile="target/versioned-runtime/shiroRole/contextadmin#${module.ajsc.namespace.name}.json" />
1242 file="target/versioned-runtime/shiroUserRole/ajsc#contextAdmin#__module.ajsc.namespace.name__.json" />
1243 <copy flatten="true"
1244 file="src/main/runtime/shiroUserRole/ajsc#contextadmin#__module.ajsc.namespace.name__.json"
1245 tofile="target/versioned-runtime/shiroUserRole/ajsc#contextadmin#${module.ajsc.namespace.name}.json" />
1246 <echo message="EXITING 'copy_runtime_template' ant tasks" />
1255 <phase>package</phase>
1259 srcdir="${basedir}/target/swm/package/nix/dist_files${distFilesRoot}"
1260 includes="**/*.sh,**/*.xml,**/*.properties,**/*.xsd" />
1268 <id>prep_home_directory_for_swm_pkgcreate-ajsc-arch-parent</id>
1269 <phase>package</phase>
1271 <target name="prep_home_directory_for_swm_pkgcreate">
1272 <ant antfile="${basedir}/antBuild/build.xml" target="prep_home_directory_for_swm_pkgcreate" />
1282 <groupId>org.apache.maven.plugins</groupId>
1283 <artifactId>maven-dependency-plugin</artifactId>
1284 <version>2.8</version>
1287 <id>copy-dependencies-ajsc-arch-parent</id>
1288 <phase>prepare-package</phase>
1290 <goal>copy-dependencies</goal>
1293 <includeScope>runtime</includeScope>
1294 <excludeArtifactIds>ajsc-bom,ajsc-core,ajsc-runner,ajsc-war</excludeArtifactIds>
1295 <outputDirectory>${project.build.directory}/userjars</outputDirectory>
1296 <silent>true</silent>
1300 <id>copy-dependencies-ajsc-arch-parent-commonLibs</id>
1301 <phase>prepare-package</phase>
1303 <goal>copy-dependencies</goal>
1306 <includeScope>provided</includeScope>
1307 <includeGroupIds>net.cingular.enterprise,com.att.aft,dom4j</includeGroupIds>
1308 <outputDirectory>${project.build.directory}/commonLibs</outputDirectory>
1309 <silent>true</silent>
1314 <phase>prepare-package</phase>
1316 <goal>copy-dependencies</goal>
1319 <includeArtifactIds>ajsc-runner</includeArtifactIds>
1320 <outputDirectory>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}/lib</outputDirectory>
1326 <artifactId>maven-resources-plugin</artifactId>
1327 <version>2.7</version>
1331 <phase>package</phase>
1333 <goal>copy-resources</goal>
1336 <outputDirectory>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}/etc</outputDirectory>
1339 <directory>src/main/config</directory>
1346 <phase>package</phase>
1348 <goal>copy-resources</goal>
1351 <outputDirectory>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}/bin</outputDirectory>
1354 <directory>src/main/scripts</directory>
1360 <id>copy-docker-file</id>
1361 <phase>prepare-package</phase>
1363 <goal>copy-resources</goal>
1366 <outputDirectory>${dockerLocation}</outputDirectory>
1367 <overwrite>true</overwrite>
1370 <directory>${basedir}/src/main/resources/docker</directory>
1371 <filtering>true</filtering>
1373 <include>**/*</include>
1384 <groupId>com.google.code.maven-replacer-plugin</groupId>
1385 <artifactId>replacer</artifactId>
1386 <version>1.5.2</version>
1389 <id>google-replacer-ajsc-arch-parent</id>
1390 <phase>prepare-package</phase>
1392 <goal>replace</goal>
1395 <basedir>${project.build.directory}</basedir>
1397 <include>staticContent/**/*.html</include>
1398 <include>CDP/**</include>
1399 <include>bundleconfig/**</include>
1400 <include>versioned-runtime/**/*.context</include>
1401 <include>versioned-runtime/**/*.json</include>
1402 <include>versioned-ajsc/**/*.route</include>
1403 <include>versioned-ajsc/**/*.groovy</include>
1404 <include>versioned-ajsc/**/*.xml</include>
1405 <include>classes/*.properties</include>
1406 <include>swm/package/nix/dist_files${distFilesRoot}/etc/*.properties</include>
1408 <escape>true</escape>
1411 <token>__module_ajsc_namespace_name__</token>
1412 <value>${module.ajsc.namespace.name}</value>
1415 <token>__module_ajsc_namespace_version__</token>
1416 <value>${module.ajsc.namespace.version}</value>
1419 <token>__ajscHome__</token>
1420 <value>${replaceWinFilePath}</value>
1423 <token>__projectGroupId__</token>
1424 <value>${project.groupId}</value>
1427 <token>__projectArtifactId__</token>
1428 <value>${project.artifactId}</value>
1431 <token>__projectVersion__</token>
1432 <value>${project.version}</value>
1435 <token>__basedir__</token>
1436 <value>${replaceWinBasedirPath}</value>
1447 <groupId>org.apache.maven.plugins</groupId>
1448 <artifactId>maven-surefire-plugin</artifactId>
1449 <version>2.14.1</version>
1452 <exclude>**/AbstractTest.java</exclude>