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>1.1.0</version>
22 <groupId>org.onap.dmaap.messagerouter.messageservice</groupId>
23 <artifactId>dmaapMR1</artifactId>
24 <version>1.1.4-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>
51 <groupId>org.apache.maven.plugins</groupId>
52 <artifactId>maven-site-plugin</artifactId>
53 <version>3.6</version>
56 <groupId>org.apache.maven.wagon</groupId>
57 <artifactId>wagon-webdav-jackrabbit</artifactId>
58 <version>2.10</version>
64 <groupId>org.apache.maven.plugins</groupId>
65 <artifactId>maven-jar-plugin</artifactId>
66 <version>3.0.2</version>
69 <!-- <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-javadoc-plugin</artifactId>
70 <version>2.10.4</version> <configuration> <additionalparam>-Xdoclint:none</additionalparam>
71 </configuration> <executions> <execution> <id>attach-javadocs</id> <goals>
72 <goal>jar</goal> </goals> </execution> </executions> </plugin> -->
74 <groupId>org.apache.maven.plugins</groupId>
75 <artifactId>maven-source-plugin</artifactId>
76 <version>3.0.0</version>
79 <id>attach-sources</id>
81 <goal>jar-no-fork</goal>
87 <groupId>org.apache.maven.plugins</groupId>
88 <artifactId>maven-release-plugin</artifactId>
89 <version>2.5.3</version>
91 <autoVersionSubmodules>true</autoVersionSubmodules>
92 <checkModificationExcludes>
93 </checkModificationExcludes>
97 <groupId>org.apache.maven.scm</groupId>
98 <artifactId>maven-scm-provider-gitexe</artifactId>
99 <version>1.9.4</version>
105 <groupId>com.spotify</groupId>
106 <artifactId>docker-maven-plugin</artifactId>
107 <version>1.0.0</version>
109 <imageName>onap/dmaap/dmaap-mr</imageName>
110 <dockerDirectory>${dockerLocation}</dockerDirectory>
111 <serverId>docker-hub</serverId>
113 <imageTag>${dmaapImg}</imageTag>
114 <imageTag>${dmaapImg.release.version}</imageTag>
115 <imageTag>latest</imageTag>
117 <forceTags>true</forceTags>
120 <targetPath>/</targetPath>
121 <directory>${dockerLocation}</directory>
122 <include>${project.build.finalName}.jar</include>
125 <targetPath>/</targetPath>
126 <directory>${project.build.directory}</directory>
127 <include>**/**</include>
134 <phase>install</phase>
139 <skipDockerBuild>${skip.docker.build}</skipDockerBuild>
144 <id>tag-image-project-version</id>
145 <phase>install</phase>
150 <image>onap/dmaap/dmaap-mr</image>
151 <newName>${docker.push.registry}/onap/dmaap/dmaap-mr:${project.version}</newName>
152 <skipDockerTag>${skip.docker.push}</skipDockerTag>
157 <id>tag-image-latest</id>
158 <phase>install</phase>
163 <image>onap/dmaap/dmaap-mr</image>
164 <newName>${docker.push.registry}/onap/dmaap/dmaap-mr:latest</newName>
165 <skipDockerTag>${skip.docker.push}</skipDockerTag>
169 <id>tag-image-tmp</id>
170 <phase>install</phase>
175 <image>onap/dmaap/dmaap-mr</image>
176 <newName>${docker.push.registry}/onap/dmaap/dmaap-mr:${dmaapImg.release.version}</newName>
177 <skipDockerTag>${skip.docker.push}</skipDockerTag>
182 <id>push-image-latest</id>
183 <phase>deploy</phase>
188 <imageName>${docker.push.registry}/onap/dmaap/dmaap-mr:${project.version}</imageName>
189 <skipDockerPush>${skip.docker.push}</skipDockerPush>
195 <phase>deploy</phase>
200 <imageName>${docker.push.registry}/onap/dmaap/dmaap-mr:latest</imageName>
201 <skipDockerPush>${skip.docker.push}</skipDockerPush>
205 <id>push-image-tmp</id>
206 <phase>deploy</phase>
211 <imageName>${docker.push.registry}/onap/dmaap/dmaap-mr:${dmaapImg.release.version}</imageName>
212 <skipDockerPush>${skip.docker.push}</skipDockerPush>
218 <groupId>com.blackducksoftware.integration</groupId>
219 <artifactId>hub-maven-plugin</artifactId>
220 <version>1.0.4</version>
221 <inherited>false</inherited>
223 <target>${project.basedir}</target>
227 <id>create-bdio-file</id>
228 <phase>package</phase>
230 <goal>createHubOutput</goal>
237 <groupId>org.apache.maven.plugins</groupId>
238 <artifactId>maven-compiler-plugin</artifactId>
239 <version>3.1</version>
241 <compilerId>groovy-eclipse-compiler</compilerId>
242 <verbose>true</verbose>
248 <groupId>org.codehaus.groovy</groupId>
249 <artifactId>groovy-eclipse-compiler</artifactId>
250 <version>2.8.0-01</version>
253 <groupId>org.codehaus.groovy</groupId>
254 <artifactId>groovy-eclipse-batch</artifactId>
255 <version>2.1.5-03</version>
260 <groupId>org.codehaus.groovy</groupId>
261 <artifactId>groovy-eclipse-compiler</artifactId>
262 <version>2.8.0-01</version>
263 <extensions>true</extensions>
270 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
271 <dockerLocation>${basedir}/target/swm/package/nix/dist_files/</dockerLocation>
272 <docker.image.prefix>simpledemo</docker.image.prefix>
273 <javax-mail-version>1.5.0</javax-mail-version>
274 <module.ajsc.namespace.name>dmaap</module.ajsc.namespace.name>
275 <module.ajsc.namespace.version>v1</module.ajsc.namespace.version>
276 <ajscRuntimeVersion>3.0.6-oss</ajscRuntimeVersion>
277 <dmaapImg.release.version>1.1.4</dmaapImg.release.version>
279 <!-- This will be the Absolute Root of the Project and should contain NO
281 <absoluteDistFilesRoot>/appl/${project.artifactId}</absoluteDistFilesRoot>
282 <!-- <absoluteDistFilesRoot>/opt/app/dmaap/${project.artifactId}</absoluteDistFilesRoot> -->
283 <!-- For Versioning upon installation, add /${project.version} to distFilesRoot.
284 For NO Versioning, leave as is -->
285 <!-- example: /appl/${project.artifactId}/${project.version}. Also, add
286 ${project.version} to ${runAjscHome} for running locally. -->
287 <distFilesRoot>/appl/${project.artifactId}</distFilesRoot>
288 <!-- <distFilesRoot>/opt/app/dmaap/${project.artifactId}</distFilesRoot> -->
289 <runAjscHome>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}</runAjscHome>
291 <!-- For SOA Cloud Installation <installOwnerUser>aft</installOwnerUser>
292 <installOwnerGroup>aft</installOwnerGroup> <ownerManagementGroup>com.att.acsi.saat.dt.dmaap.dev</ownerManagementGroup> -->
293 <!-- For SOA Cloud Installation -->
294 <installOwnerUser>msgrtr</installOwnerUser>
295 <installOwnerGroup>dmaap</installOwnerGroup>
296 <ownerManagementGroup>com.att.acsi.saat.dt.dmaap.dev</ownerManagementGroup>
297 <!-- Port Selection. A value of 0 will allow for dynamic port selection.
298 For local testing, you may choose to hardcode this value to something like
300 <serverPort>3904</serverPort>
301 <sslport>3905</sslport>
303 <testRouteOffer>workstation</testRouteOffer>
304 <testEnv>DEV</testEnv>
305 <dmaapImg>${project.version}</dmaapImg>
306 <camel.version>2.17.6</camel.version>
307 <sitePath>/content/sites/site/org/onap/dmaap/messagerouter/messageservice/${project.artifactId}/${project.version}</sitePath>
308 <skip.docker.build>true</skip.docker.build>
309 <skip.docker.push>true</skip.docker.push>
310 <nexusproxy>https://nexus.onap.org</nexusproxy>
311 <docker.push.registry>nexus3.onap.org:10003</docker.push.registry>
312 <spring.version>3.2.18.RELEASE</spring.version>
315 <!-- Distribution management -->
316 <distributionManagement>
319 <url>dav:${nexusproxy}${sitePath}</url>
321 </distributionManagement>
323 <!-- End Distribution management -->
325 <!-- The standard build tasks for this project are inherited from the parent.
326 Please do not override the build tasks. However tasks and/or profiles can
327 be included here as well as additional dependencies for your service. Any
328 runtime or compile scope dependencies will be copied to the INSTALLATION_PATH/extJars
329 folder and will be made available on the AJSC classpath for your service.
330 Please, NOTE: DME2 and CSM related dependencies are EXTERNALIZED within the
331 CSI environment. Therefore, they are provided within this project as "provided"
332 dependencies. In order for the AJSC to run properly, locally, the CSM and
333 DME2 dependencies will be copied into the target/commonLibs folder and will
334 be made available to the classpath of the AJSC through the use of the system
335 property, "AJSC_EXTERNAL_LIB_FOLDERS". This system property needs to be set
336 in the "runAjsc" maven profile within the pom.xml (and, is defaulted to do
337 so). If you have a startup failure related to a missing dme2 class not found
338 exception, please contact the AJSC team for assistance. You can email support
339 at ajsc-Support <DL-ajsc-Support@att.com>. For more information regarding
340 the usage of the AJSC service pom.xml and management of dependencies, -->
343 <!-- cmn-CommonDataModel dependency added to resolve build issue not finding
346 <!-- <dependency> <groupId>csi-schemas-source</groupId> <artifactId>cmn-CommonDataModel</artifactId>
347 <version>112.0.50</version> </dependency> -->
348 <!-- TODO: add open source version here -->
351 <groupId>com.att.cadi</groupId>
352 <artifactId>cadi-core</artifactId>
353 <version>1.3.0</version>
356 <groupId>com.att.aft</groupId>
357 <artifactId>dme2</artifactId>
358 <version>3.1.200-oss</version>
361 <groupId>org.springframework</groupId>
362 <artifactId>spring-expression</artifactId>
363 <version>4.3.16.RELEASE</version>
366 <groupId>org.springframework</groupId>
367 <artifactId>spring-messaging</artifactId>
368 <version>4.1.9.RELEASE</version>
371 <groupId>com.sun.mail</groupId>
372 <artifactId>javax.mail</artifactId>
373 <version>${javax-mail-version}</version>
375 <!-- javax activation is part of the JDK now -->
377 <groupId>javax.activation</groupId>
378 <artifactId>activation</artifactId>
384 <groupId>org.apache.zookeeper</groupId>
385 <artifactId>zookeeper</artifactId>
386 <version>3.4.10</version>
389 <groupId>org.grails</groupId>
390 <artifactId>grails-bootstrap</artifactId>
391 <version>2.5.4</version>
392 <scope>compile</scope>
395 <artifactId>ant</artifactId>
396 <groupId>org.apache.ant</groupId>
399 <artifactId>jna</artifactId>
400 <groupId>net.java.dev.jna</groupId>
403 <artifactId>ant-trax</artifactId>
404 <groupId>org.apache.ant</groupId>
407 <artifactId>gant_groovy1.8</artifactId>
408 <groupId>org.codehaus.gant</groupId>
411 <artifactId>ant-launcher</artifactId>
412 <groupId>org.apache.ant</groupId>
415 <artifactId>jline</artifactId>
416 <groupId>jline</groupId>
419 <artifactId>ivy</artifactId>
420 <groupId>org.apache.ivy</groupId>
423 <artifactId>jansi</artifactId>
424 <groupId>org.fusesource.jansi</groupId>
427 <artifactId>commons-logging</artifactId>
428 <groupId>commons-logging</groupId>
431 <artifactId>ant-junit</artifactId>
432 <groupId>org.apache.ant</groupId>
437 <groupId>org.springframework</groupId>
438 <artifactId>spring-webmvc</artifactId>
439 <version>4.3.15.RELEASE</version>
442 <groupId>org.springframework</groupId>
443 <artifactId>spring-core</artifactId>
444 <version>4.3.15.RELEASE</version>
447 <groupId>org.springframework</groupId>
448 <artifactId>spring-beans</artifactId>
449 <version>4.3.15.RELEASE</version>
453 <groupId>org.springframework</groupId>
454 <artifactId>spring-context</artifactId>
455 <version>4.3.15.RELEASE</version>
458 <groupId>commons-io</groupId>
459 <artifactId>commons-io</artifactId>
460 <version>2.4</version>
463 <groupId>org.apache.commons</groupId>
464 <artifactId>commons-io</artifactId>
465 <version>1.3.2</version>
468 <groupId>org.onap.dmaap.messagerouter.msgrtr</groupId>
469 <artifactId>msgrtr</artifactId>
470 <version>1.1.3</version>
473 <groupId>org.slf4j</groupId>
474 <artifactId>slf4j-log4j12</artifactId>
477 <groupId>com.att.ajsc</groupId>
478 <artifactId>ajsc-core</artifactId>
481 <groupId>org.apache.tomcat</groupId>
482 <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>
493 <!-- <exclusion> <groupId>com.att.nsa</groupId> <artifactId>saToolkit</artifactId>
496 <groupId>com.att.nsa</groupId>
497 <artifactId>tomcat-util</artifactId>
501 <groupId>commons-beanutils</groupId>
502 <artifactId>commons-beanutils</artifactId>
507 <groupId>org.mockito</groupId>
508 <artifactId>mockito-core</artifactId>
509 <version>1.10.19</version>
513 <groupId>org.powermock</groupId>
514 <artifactId>powermock-module-junit4</artifactId>
515 <version>1.6.4</version>
519 <groupId>org.powermock</groupId>
520 <artifactId>powermock-api-mockito</artifactId>
521 <version>1.6.4</version>
524 <!-- <dependency> <groupId>org.codehaus.jackson</groupId> <artifactId>jackson-jaxrs</artifactId>
525 <version>1.9.13</version> </dependency> <dependency> <groupId>org.codehaus.jackson</groupId>
526 <artifactId>jackson-mapper-asl</artifactId> <version>1.9.13</version> </dependency>
527 <dependency> <groupId>org.codehaus.jackson</groupId> <artifactId>jackson-core-asl</artifactId>
528 <version>1.9.13</version> </dependency> -->
531 <groupId>com.fasterxml.jackson.jaxrs</groupId>
532 <artifactId>jackson-jaxrs-json-provider</artifactId>
533 <version>2.2.3</version>
537 <groupId>com.fasterxml.jackson.core</groupId>
538 <artifactId>jackson-core</artifactId>
539 <version>2.8.11</version>
543 <groupId>com.fasterxml.jackson.core</groupId>
544 <artifactId>jackson-databind</artifactId>
545 <version>2.8.11.1</version>
548 <groupId>org.grails</groupId>
549 <artifactId>grails-web</artifactId>
550 <version>2.5.4</version>
553 <groupId>org.grails</groupId>
554 <artifactId>grails-web-jsp</artifactId>
559 <groupId>org.codehaus.groovy</groupId>
560 <artifactId>groovy-all</artifactId>
561 <version>2.4.4</version>
562 <scope>compile</scope>
565 <artifactId>jline</artifactId>
566 <groupId>jline</groupId>
572 <groupId>junit</groupId>
573 <artifactId>junit</artifactId>
574 <version>4.11</version>
579 <groupId>org.json</groupId>
580 <artifactId>json</artifactId>
581 <version>20131018</version>
584 <!-- CXF JAX-RS extension -->
586 <groupId>org.apache.cxf</groupId>
587 <artifactId>cxf-rt-rs-extension-providers</artifactId>
588 <version>3.0.12</version>
591 <groupId>org.codehaus.jettison</groupId>
592 <artifactId>jettison</artifactId>
593 <version>1.3.7</version>
597 <groupId>dom4j</groupId>
598 <artifactId>dom4j</artifactId>
599 <version>1.6.1</version>
600 <scope>provided</scope>
603 <groupId>com.att.ajsc</groupId>
604 <artifactId>ajsc-archetype-parent</artifactId>
605 <version>3.0.6-oss</version>
610 <groupId>com.att.cadi</groupId>
611 <artifactId>cadi-aaf</artifactId>
612 <version>1.3.0</version>
616 <groupId>com.att.inno</groupId>
617 <artifactId>rosetta</artifactId>
618 <version>1.2.11</version>
621 <groupId>com.att.inno</groupId>
622 <artifactId>env</artifactId>
623 <version>1.2.11</version>
626 <groupId>com.att.inno</groupId>
627 <artifactId>xgen</artifactId>
628 <version>1.2.11</version>
631 <groupId>com.att.inno</groupId>
632 <artifactId>rosetta</artifactId>
633 <version>1.2.11</version>
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>${camel.version}</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}</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>commons-httpclient</groupId>
673 <artifactId>commons-httpclient</artifactId>
678 <groupId>org.apache.httpcomponents</groupId>
679 <artifactId>httpclient</artifactId>
680 <version>4.0</version>
684 <groupId>org.apache.camel</groupId>
685 <artifactId>camel-http4</artifactId>
686 <version>${camel.version}</version>
689 <groupId>org.apache.geronimo.specs</groupId>
690 <artifactId>geronimo-servlet_2.5_spec</artifactId>
695 <groupId>org.apache.camel</groupId>
696 <artifactId>camel-groovy</artifactId>
697 <version>${camel.version}</version>
700 <groupId>org.apache.camel</groupId>
701 <artifactId>camel-twitter</artifactId>
702 <version>${camel.version}</version>
705 <groupId>org.apache.camel</groupId>
706 <artifactId>camel-mail</artifactId>
707 <version>${camel.version}</version>
710 <groupId>org.apache.camel</groupId>
711 <artifactId>camel-smpp</artifactId>
712 <version>${camel.version}</version>
715 <groupId>org.apache.camel</groupId>
716 <artifactId>camel-jms</artifactId>
717 <version>${camel.version}</version>
720 <groupId>org.apache.camel</groupId>
721 <artifactId>camel-script</artifactId>
722 <version>${camel.version}</version>
725 <groupId>org.apache.camel</groupId>
726 <artifactId>camel-xmpp</artifactId>
727 <version>${camel.version}</version>
730 <groupId>org.apache.camel</groupId>
731 <artifactId>camel-velocity</artifactId>
732 <version>${camel.version}</version>
735 <groupId>com.att.ajsc</groupId>
736 <artifactId>ajsc-runner</artifactId>
737 <version>3.0.6-oss</version>
738 <scope>runtime</scope>
741 <groupId>com.att.ajsc</groupId>
742 <artifactId>ajsc-core</artifactId>
743 <version>3.0.6-oss</version>
744 <scope>provided</scope>
747 <!-- <build> <resources> <resource> <directory>${basedir}/ajsc-shared-config/etc</directory>
748 </resource> </resources> </build> -->
750 <!-- Use this profile to run the AJSC locally. This profile can be successfully
751 shutdown WITHIN eclipse even in a Windows environment. Debugging is also
752 available with this profile. -->
757 <skip.docker.build>false</skip.docker.build>
758 <skip.docker.tag>false</skip.docker.tag>
759 <skip.docker.push>false</skip.docker.push>
766 <defaultGoal>initialize</defaultGoal>
769 <groupId>org.apache.maven.plugins</groupId>
770 <artifactId>maven-antrun-plugin</artifactId>
773 <phase>initialize</phase>
775 <target name="runLocal">
776 <ant antfile="${basedir}/antBuild/build.xml" target="runLocal" />
792 <defaultGoal>initialize</defaultGoal>
795 <groupId>org.codehaus.mojo</groupId>
796 <artifactId>exec-maven-plugin</artifactId>
797 <version>1.3.2</version>
800 <phase>initialize</phase>
805 <!-- In order to better mimic a SOA cloud installation of AJSC (and
806 to help eliminate Maven/Eclipse/AJSC classpath issues that may be difficult
807 to diagnose), within this profile used to run locally, we are NOT including
808 project dependencies. These will be loaded by AJSC from $AJSC_HOME/extJars.
809 The only jar needed to run AJSC is the ajsc-runner.jar, and therefore is
810 the only dependency required by this profile to run locally. -->
811 <includeProjectDependencies>false</includeProjectDependencies>
812 <includePluginDependencies>true</includePluginDependencies>
813 <executable>java</executable>
814 <mainClass>com.att.ajsc.runner.Runner</mainClass>
815 <executableDependency>
816 <groupId>com.att.ajsc</groupId>
817 <artifactId>ajsc-runner</artifactId>
818 </executableDependency>
819 <additionalClasspathElements>
820 <additionalClasspathElement>${basedir}/ajsc-shared-config/etc</additionalClasspathElement>
821 </additionalClasspathElements>
823 <environmentVariables>
824 <AJSC_HOME>${runAjscHome}</AJSC_HOME>
825 </environmentVariables>
827 <!-- Main AJSC System Properties below (necessary for proper startup) -->
831 <value>${runAjscHome}</value>
835 <value>${runAjscHome}</value>
838 <key>AJSC_CONF_HOME</key>
839 <value>${basedir}/bundleconfig-local</value>
842 <key>logback.configurationFile</key>
843 <value>${basedir}/ajsc-shared-config/etc/logback.xml</value>
846 <key>com.att.eelf.logging.file</key>
847 <value>logback.xml</value>
850 <key>com.att.eelf.logging.path</key>
851 <value>${basedir}/ajsc-shared-config/etc</value>
854 <key>logging.config</key>
855 <value>${basedir}/ajsc-shared-config/etc/logback.xml</value>
858 <key>AJSC_SHARED_CONFIG</key>
859 <value>${basedir}/ajsc-shared-config</value>
862 <!-- Please, NOTE: The following 2 system properties will normally
863 be set within the sys-props.properties file once deployed to a node. We are
864 setting them HERE to run locally to make more efficient use of maven variable
865 replacement for ${basedir} -->
866 <!-- AJSC_EXTERNAL_LIB_FOLDERS represents the particular jars that
867 will be externalized on a CSI node. This includes dme2 and csm related artifact. -->
869 <key>AJSC_EXTERNAL_LIB_FOLDERS</key>
870 <value>${basedir}/target/commonLibs</value>
872 <!-- AJSC_EXTERNAL_PROPERTIES_FOLDERS represents the particular
873 files that may need to be added to the classpath. These files will be externalized
874 on a CSI node. This includes dme2 and csm related artifact (such as csm-config-app.properties).
875 Failure to have these files on the classpath may result in errors thrown
876 by csm framework. -->
878 <key>AJSC_EXTERNAL_PROPERTIES_FOLDERS</key>
879 <value>${basedir}/ajsc-shared-config/etc</value>
883 <key>AJSC_SERVICE_NAMESPACE</key>
884 <value>${module.ajsc.namespace.name}</value>
887 <key>AJSC_SERVICE_VERSION</key>
888 <value>${module.ajsc.namespace.version}</value>
891 <key>SOACLOUD_SERVICE_VERSION</key>
892 <value>${project.version}</value>
895 <key>server.port</key>
896 <value>${serverPort}</value>
900 <!-- Command Line Arguments to add to the java command. Here, you
901 can specify the port as well as the Context you want your service to run
902 in. Use context=/ to run in an unnamed Context (Root Context). The default
903 configuration of the AJSC is to run under the / Context. Setting the port
904 here can aid during the development phase of your service. However, you can
905 leave this argument out entirely, and the AJSC will default to using an Ephemeral
908 <argument>context=/</argument>
909 <argument>port=${serverPort}</argument>
910 <argument>sslport=${sslport}</argument>
916 <executable>java</executable>
920 <groupId>com.att.ajsc</groupId>
921 <artifactId>ajsc-runner</artifactId>
922 <version>${ajscRuntimeVersion}</version>
931 <id>standardbuild</id>
940 <directory>src/main/resources</directory>
942 <exclude>extApps/*.*</exclude>
943 <exclude>${module.ajsc.namespace.name}/**</exclude>
947 <directory>src/main/ajsc/\${namespace}_${namespaceVersion}/\${namespace}/\${namespaceVersion}</directory>
949 <exclude>**/*.route</exclude>
950 <exclude>**/*.props</exclude>
951 <exclude>**/*.xslt</exclude>
952 <exclude>**/*.vm</exclude>
953 <exclude>**/*.jar</exclude>
954 <exclude>**/*.xml</exclude>
960 <groupId>org.apache.maven.plugins</groupId>
961 <artifactId>maven-compiler-plugin</artifactId>
962 <version>3.1</version>
965 <groupId>org.codehaus.groovy</groupId>
966 <artifactId>groovy-eclipse-compiler</artifactId>
967 <version>2.8.0-01</version>
968 <extensions>true</extensions>
972 <groupId>org.codehaus.mojo</groupId>
973 <artifactId>exec-maven-plugin</artifactId>
974 <version>1.2.1</version>
983 <executable>bash</executable>
985 <argument>runServer.sh</argument>
990 <groupId>org.codehaus.mojo</groupId>
991 <artifactId>build-helper-maven-plugin</artifactId>
992 <version>1.9</version>
995 <id>add-source-groovy-ajsc-arch-parent</id>
996 <phase>generate-sources</phase>
998 <goal>add-source</goal>
1002 <source>src/main/groovy</source>
1007 <id>add-test-source-groovy-ajsc-arch-parent</id>
1008 <phase>generate-test-sources</phase>
1010 <goal>add-test-source</goal>
1014 <source>src/test/groovy</source>
1019 <id>regex-properties-ajsc-arch-parent</id>
1020 <phase>initialize</phase>
1022 <goal>regex-properties</goal>
1025 <regexPropertySettings>
1026 <regexPropertySetting>
1027 <name>replaceWinFilePath</name>
1028 <value>${runAjscHome}</value>
1030 <replacement>/</replacement>
1031 <failIfNoMatch>false</failIfNoMatch>
1032 </regexPropertySetting>
1033 <regexPropertySetting>
1034 <name>replaceWinBasedirPath</name>
1035 <value>${basedir}</value>
1037 <replacement>/</replacement>
1038 <failIfNoMatch>false</failIfNoMatch>
1039 </regexPropertySetting>
1040 </regexPropertySettings>
1046 <groupId>org.codehaus.mojo</groupId>
1047 <artifactId>properties-maven-plugin</artifactId>
1048 <version>1.0-alpha-2</version>
1051 <id>write-project-properties-ajsc-arch-parent</id>
1052 <phase>generate-resources</phase>
1054 <goal>write-project-properties</goal>
1058 ${project.build.outputDirectory}/build.properties
1065 <groupId>org.apache.maven.plugins</groupId>
1066 <artifactId>maven-assembly-plugin</artifactId>
1067 <version>2.4</version>
1070 <id>make-assembly-ajsc-arch-parent</id>
1071 <phase>package</phase>
1078 <finalName>${project.artifactId}</finalName>
1080 <descriptor>src/main/assemble/ajsc_runtime_assembly.xml</descriptor>
1085 <groupId>org.codehaus.groovy.maven</groupId>
1086 <artifactId>gmaven-plugin</artifactId>
1087 <version>1.0</version>
1090 <id>gmaven-ajsc-arch-parent</id>
1091 <phase>package</phase>
1093 <goal>execute</goal>
1096 <sourcepath>src/main/groovy</sourcepath>
1098 import ajsc.AssemblyService;
1099 ajsc.AssemblyService.getBasedir(project.basedir.getAbsolutePath(),"${distFilesRoot}")
1106 <groupId>org.apache.maven.plugins</groupId>
1107 <artifactId>maven-antrun-plugin</artifactId>
1108 <version>1.7</version>
1111 <id>prep_service_runtime-ajsc-arch-parent</id>
1112 <phase>generate-resources</phase>
1114 <target name="prep_service_runtime">
1115 <echo message="ENTERING 'copy_services_template' ant tasks" />
1116 <!-- <filter token="basedir" value="${basedir}" /> -->
1117 <!-- delete any prior stating stuff before package phase -->
1118 <delete dir="target/versioned-ajsc" includes="**/*" />
1119 <delete dir="target/versioned-runtime" includes="**/*" />
1120 <delete dir="target/CDP" includes="**/*" />
1122 <!-- This is where replacer plugin replaces tokens (Example: __module_ajsc_namespace_name__
1123 is replaced by module.ajsc.namespace.name) -->
1124 <copy todir="target/versioned-ajsc">
1125 <fileset dir="src/main/ajsc" includes="**/*" />
1128 <!-- Copying the CDP, bundleconfig, and StaticContent to the target
1129 directory for future use by replacer plugin -->
1130 <copy todir="target/CDP" failonerror="false">
1131 <fileset dir="CDP" includes="**/*.sh" />
1133 <copy flatten="true" file="CDP/SampleBlueprint.xml"
1135 tofile="target/CDP/${module.ajsc.namespace.name}Blueprint.xml" />
1136 <copy todir="target/staticContent" failonerror="false">
1137 <fileset dir="staticContent" includes="**/*" />
1139 <copy todir="target/bundleconfig" failonerror="false">
1140 <!-- filtering="true"> -->
1141 <fileset dir="bundleconfig" />
1144 <echo message="EXITING 'copy_services_template' ant tasks" />
1145 <echo message="ENTERING 'copy_runtime_template' ant tasks" />
1146 <copy todir="target/versioned-runtime">
1147 <fileset dir="src/main/runtime" includes="**/*" />
1150 file="target/versioned-runtime/context/__module.ajsc.namespace.name__#__module.ajsc.namespace.version__.context" />
1151 <copy flatten="true"
1152 file="src/main/runtime/context/__module.ajsc.namespace.name__#__module.ajsc.namespace.version__.context"
1153 tofile="target/versioned-runtime/context/${module.ajsc.namespace.name}#${module.ajsc.namespace.version}.context" />
1155 file="target/versioned-runtime/deploymentPackage/__module.ajsc.namespace.name__#__module.ajsc.namespace.version__.json" />
1156 <copy flatten="true"
1157 file="src/main/runtime/deploymentPackage/__module.ajsc.namespace.name__#__module.ajsc.namespace.version__.json"
1158 tofile="target/versioned-runtime/deploymentPackage/${module.ajsc.namespace.name}#${module.ajsc.namespace.version}.json" />
1160 file="target/versioned-runtime/shiroRole/contextadmin#__module.ajsc.namespace.name__.json" />
1161 <copy flatten="true"
1162 file="src/main/runtime/shiroRole/contextadmin#__module.ajsc.namespace.name__.json"
1163 tofile="target/versioned-runtime/shiroRole/contextadmin#${module.ajsc.namespace.name}.json" />
1165 file="target/versioned-runtime/shiroUserRole/ajsc#contextAdmin#__module.ajsc.namespace.name__.json" />
1166 <copy flatten="true"
1167 file="src/main/runtime/shiroUserRole/ajsc#contextadmin#__module.ajsc.namespace.name__.json"
1168 tofile="target/versioned-runtime/shiroUserRole/ajsc#contextadmin#${module.ajsc.namespace.name}.json" />
1169 <echo message="EXITING 'copy_runtime_template' ant tasks" />
1178 <phase>package</phase>
1182 srcdir="${basedir}/target/swm/package/nix/dist_files${distFilesRoot}"
1183 includes="**/*.sh,**/*.xml,**/*.properties,**/*.xsd" />
1191 <id>prep_home_directory_for_swm_pkgcreate-ajsc-arch-parent</id>
1192 <phase>package</phase>
1194 <target name="prep_home_directory_for_swm_pkgcreate">
1195 <ant antfile="${basedir}/antBuild/build.xml" target="prep_home_directory_for_swm_pkgcreate" />
1205 <groupId>org.apache.maven.plugins</groupId>
1206 <artifactId>maven-dependency-plugin</artifactId>
1207 <version>2.8</version>
1210 <id>copy-dependencies-ajsc-arch-parent</id>
1211 <phase>prepare-package</phase>
1213 <goal>copy-dependencies</goal>
1216 <includeScope>runtime</includeScope>
1217 <excludeArtifactIds>ajsc-bom,ajsc-core,ajsc-runner,ajsc-war</excludeArtifactIds>
1218 <outputDirectory>${project.build.directory}/userjars</outputDirectory>
1219 <silent>true</silent>
1223 <id>copy-dependencies-ajsc-arch-parent-commonLibs</id>
1224 <phase>prepare-package</phase>
1226 <goal>copy-dependencies</goal>
1229 <includeScope>provided</includeScope>
1230 <includeGroupIds>net.cingular.enterprise,com.att.aft,dom4j</includeGroupIds>
1231 <!-- <includeGroupIds>com.att.aft</includeGroupIds> -->
1232 <outputDirectory>${project.build.directory}/commonLibs</outputDirectory>
1233 <silent>true</silent>
1238 <phase>prepare-package</phase>
1240 <goal>copy-dependencies</goal>
1243 <includeArtifactIds>ajsc-runner</includeArtifactIds>
1244 <outputDirectory>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}/lib</outputDirectory>
1250 <artifactId>maven-resources-plugin</artifactId>
1251 <version>2.7</version>
1255 <phase>package</phase>
1257 <goal>copy-resources</goal>
1260 <outputDirectory>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}/etc</outputDirectory>
1263 <directory>src/main/config</directory>
1270 <phase>package</phase>
1272 <goal>copy-resources</goal>
1275 <outputDirectory>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}/bin</outputDirectory>
1278 <directory>src/main/scripts</directory>
1284 <id>copy-docker-file</id>
1285 <phase>prepare-package</phase>
1287 <goal>copy-resources</goal>
1290 <outputDirectory>${dockerLocation}</outputDirectory>
1291 <overwrite>true</overwrite>
1294 <directory>${basedir}/src/main/resources/docker</directory>
1295 <filtering>true</filtering>
1297 <include>**/*</include>
1308 <groupId>com.google.code.maven-replacer-plugin</groupId>
1309 <artifactId>replacer</artifactId>
1310 <version>1.5.2</version>
1313 <id>google-replacer-ajsc-arch-parent</id>
1314 <phase>prepare-package</phase>
1316 <goal>replace</goal>
1319 <basedir>${project.build.directory}</basedir>
1321 <include>staticContent/**/*.html</include>
1322 <include>CDP/**</include>
1323 <include>bundleconfig/**</include>
1324 <include>versioned-runtime/**/*.context</include>
1325 <include>versioned-runtime/**/*.json</include>
1326 <include>versioned-ajsc/**/*.route</include>
1327 <include>versioned-ajsc/**/*.groovy</include>
1328 <include>versioned-ajsc/**/*.xml</include>
1329 <include>classes/*.properties</include>
1330 <include>swm/package/nix/dist_files${distFilesRoot}/etc/*.properties</include>
1332 <escape>true</escape>
1335 <token>__module_ajsc_namespace_name__</token>
1336 <value>${module.ajsc.namespace.name}</value>
1339 <token>__module_ajsc_namespace_version__</token>
1340 <value>${module.ajsc.namespace.version}</value>
1343 <token>__ajscHome__</token>
1344 <value>${replaceWinFilePath}</value>
1347 <token>__projectGroupId__</token>
1348 <value>${project.groupId}</value>
1351 <token>__projectArtifactId__</token>
1352 <value>${project.artifactId}</value>
1355 <token>__projectVersion__</token>
1356 <value>${project.version}</value>
1359 <token>__basedir__</token>
1360 <value>${replaceWinBasedirPath}</value>
1371 <groupId>org.apache.maven.plugins</groupId>
1372 <artifactId>maven-surefire-plugin</artifactId>
1373 <version>2.14.1</version>
1376 <exclude>**/AbstractTest.java</exclude>