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.7-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>latest</imageTag>
116 <forceTags>true</forceTags>
119 <targetPath>/</targetPath>
120 <directory>${dockerLocation}</directory>
121 <include>${project.build.finalName}.jar</include>
124 <targetPath>/</targetPath>
125 <directory>${project.build.directory}</directory>
126 <include>**/**</include>
133 <phase>install</phase>
138 <skipDockerBuild>${skip.docker.build}</skipDockerBuild>
143 <id>tag-image-project-version</id>
144 <phase>install</phase>
149 <image>onap/dmaap/dmaap-mr</image>
150 <newName>${docker.push.registry}/onap/dmaap/dmaap-mr:${project.version}</newName>
151 <skipDockerTag>${skip.docker.push}</skipDockerTag>
156 <id>tag-image-latest</id>
157 <phase>install</phase>
162 <image>onap/dmaap/dmaap-mr</image>
163 <newName>${docker.push.registry}/onap/dmaap/dmaap-mr:latest</newName>
164 <skipDockerTag>${skip.docker.push}</skipDockerTag>
169 <id>push-image-latest</id>
170 <phase>deploy</phase>
175 <imageName>${docker.push.registry}/onap/dmaap/dmaap-mr:${project.version}</imageName>
176 <skipDockerPush>${skip.docker.push}</skipDockerPush>
182 <phase>deploy</phase>
187 <imageName>${docker.push.registry}/onap/dmaap/dmaap-mr:latest</imageName>
188 <skipDockerPush>${skip.docker.push}</skipDockerPush>
194 <groupId>com.blackducksoftware.integration</groupId>
195 <artifactId>hub-maven-plugin</artifactId>
196 <version>1.0.4</version>
197 <inherited>false</inherited>
199 <target>${project.basedir}</target>
203 <id>create-bdio-file</id>
204 <phase>package</phase>
206 <goal>createHubOutput</goal>
212 <!-- <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId>
213 <version>3.1</version> <configuration> <compilerId>groovy-eclipse-compiler</compilerId>
214 <verbose>true</verbose> <source>1.7</source> <target>1.7</target> </configuration>
215 <dependencies> <dependency> <groupId>org.codehaus.groovy</groupId> <artifactId>groovy-eclipse-compiler</artifactId>
216 <version>2.8.0-01</version> </dependency> <dependency> <groupId>org.codehaus.groovy</groupId>
217 <artifactId>groovy-eclipse-batch</artifactId> <version>2.1.5-03</version>
218 </dependency> </dependencies> </plugin> -->
220 <groupId>org.codehaus.groovy</groupId>
221 <artifactId>groovy-eclipse-compiler</artifactId>
222 <version>2.8.0-01</version>
223 <extensions>true</extensions>
230 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
231 <dockerLocation>${basedir}/target/swm/package/nix/dist_files/</dockerLocation>
232 <docker.image.prefix>simpledemo</docker.image.prefix>
233 <!-- <javax-mail-version>1.5.0</javax-mail-version> -->
234 <module.ajsc.namespace.name>dmaap</module.ajsc.namespace.name>
235 <module.ajsc.namespace.version>v1</module.ajsc.namespace.version>
236 <ajscRuntimeVersion>3.0.10-oss</ajscRuntimeVersion>
238 <!-- This will be the Absolute Root of the Project and should contain NO
240 <absoluteDistFilesRoot>/appl/${project.artifactId}</absoluteDistFilesRoot>
241 <!-- <absoluteDistFilesRoot>/opt/app/dmaap/${project.artifactId}</absoluteDistFilesRoot> -->
242 <!-- For Versioning upon installation, add /${project.version} to distFilesRoot.
243 For NO Versioning, leave as is -->
244 <!-- example: /appl/${project.artifactId}/${project.version}. Also, add
245 ${project.version} to ${runAjscHome} for running locally. -->
246 <distFilesRoot>/appl/${project.artifactId}</distFilesRoot>
247 <!-- <distFilesRoot>/opt/app/dmaap/${project.artifactId}</distFilesRoot> -->
248 <runAjscHome>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}</runAjscHome>
250 <!-- For SOA Cloud Installation <installOwnerUser>aft</installOwnerUser>
251 <installOwnerGroup>aft</installOwnerGroup> <ownerManagementGroup>com.att.acsi.saat.dt.dmaap.dev</ownerManagementGroup> -->
252 <!-- For SOA Cloud Installation -->
253 <installOwnerUser>msgrtr</installOwnerUser>
254 <installOwnerGroup>dmaap</installOwnerGroup>
255 <ownerManagementGroup>com.att.acsi.saat.dt.dmaap.dev</ownerManagementGroup>
256 <!-- Port Selection. A value of 0 will allow for dynamic port selection.
257 For local testing, you may choose to hardcode this value to something like
259 <serverPort>3904</serverPort>
260 <sslport>3905</sslport>
262 <testRouteOffer>workstation</testRouteOffer>
263 <testEnv>DEV</testEnv>
264 <!-- <dmaapImg>${project.version}</dmaapImg> -->
265 <dmaapImg>1.1.7</dmaapImg>
266 <camel.version>2.21.1</camel.version>
267 <sitePath>/content/sites/site/org/onap/dmaap/messagerouter/messageservice/${project.artifactId}/${project.version}</sitePath>
268 <skip.docker.build>true</skip.docker.build>
269 <skip.docker.push>true</skip.docker.push>
270 <nexusproxy>https://nexus.onap.org</nexusproxy>
271 <docker.push.registry>nexus3.onap.org:10003</docker.push.registry>
272 <spring.version>3.2.18.RELEASE</spring.version>
275 <!-- Distribution management -->
276 <distributionManagement>
279 <url>dav:${nexusproxy}${sitePath}</url>
281 </distributionManagement>
283 <!-- End Distribution management -->
285 <!-- The standard build tasks for this project are inherited from the parent.
286 Please do not override the build tasks. However tasks and/or profiles can
287 be included here as well as additional dependencies for your service. Any
288 runtime or compile scope dependencies will be copied to the INSTALLATION_PATH/extJars
289 folder and will be made available on the AJSC classpath for your service.
290 Please, NOTE: DME2 and CSM related dependencies are EXTERNALIZED within the
291 CSI environment. Therefore, they are provided within this project as "provided"
292 dependencies. In order for the AJSC to run properly, locally, the CSM and
293 DME2 dependencies will be copied into the target/commonLibs folder and will
294 be made available to the classpath of the AJSC through the use of the system
295 property, "AJSC_EXTERNAL_LIB_FOLDERS". This system property needs to be set
296 in the "runAjsc" maven profile within the pom.xml (and, is defaulted to do
297 so). If you have a startup failure related to a missing dme2 class not found
298 exception, please contact the AJSC team for assistance. You can email support
299 at ajsc-Support <DL-ajsc-Support@att.com>. For more information regarding
300 the usage of the AJSC service pom.xml and management of dependencies, -->
303 <!-- cmn-CommonDataModel dependency added to resolve build issue not finding
306 <!-- <dependency> <groupId>csi-schemas-source</groupId> <artifactId>cmn-CommonDataModel</artifactId>
307 <version>112.0.50</version> </dependency> -->
308 <!-- TODO: add open source version here -->
312 <groupId>com.sun.mail</groupId>
313 <artifactId>javax.mail</artifactId>
314 <version>1.6.0</version>
316 <!-- javax activation is part of the JDK now -->
318 <groupId>javax.activation</groupId>
319 <artifactId>activation</artifactId>
324 <groupId>com.sun.xml.bind</groupId>
325 <artifactId>jaxb-core</artifactId>
326 <version>2.3.0.1</version>
327 <scope>compile</scope>
330 <groupId>com.sun.xml.bind</groupId>
331 <artifactId>jaxb-impl</artifactId>
332 <version>2.3.0.1</version>
333 <scope>compile</scope>
336 <artifactId>jsr181-api</artifactId>
337 <groupId>javax.jws</groupId>
343 <groupId>org.apache.cxf</groupId>
344 <artifactId>cxf-rt-transports-http</artifactId>
345 <version>3.2.5</version>
349 <groupId>com.att.cadi</groupId>
350 <artifactId>cadi-core</artifactId>
351 <version>1.3.0</version>
354 <groupId>com.att.aft</groupId>
355 <artifactId>dme2</artifactId>
356 <version>3.1.200-oss</version>
359 <groupId>org.springframework</groupId>
360 <artifactId>spring-expression</artifactId>
361 <version>4.3.18.RELEASE</version>
364 <groupId>org.springframework</groupId>
365 <artifactId>spring-messaging</artifactId>
366 <version>4.1.9.RELEASE</version>
368 <!-- <dependency> <groupId>com.sun.mail</groupId> <artifactId>javax.mail</artifactId>
369 <version>${javax-mail-version}</version> <exclusions> javax activation is
370 part of the JDK now <exclusion> <groupId>javax.activation</groupId> <artifactId>activation</artifactId>
371 </exclusion> </exclusions> </dependency> -->
374 <groupId>org.apache.zookeeper</groupId>
375 <artifactId>zookeeper</artifactId>
376 <version>3.4.10</version>
379 <groupId>org.grails</groupId>
380 <artifactId>grails-bootstrap</artifactId>
381 <version>2.5.4</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>org.springframework</groupId>
428 <artifactId>spring-webmvc</artifactId>
429 <version>4.3.18.RELEASE</version>
432 <groupId>org.springframework</groupId>
433 <artifactId>spring-core</artifactId>
434 <version>4.3.18.RELEASE</version>
437 <groupId>org.springframework</groupId>
438 <artifactId>spring-beans</artifactId>
439 <version>4.3.18.RELEASE</version>
443 <groupId>org.springframework</groupId>
444 <artifactId>spring-context</artifactId>
445 <version>4.3.18.RELEASE</version>
448 <groupId>commons-io</groupId>
449 <artifactId>commons-io</artifactId>
450 <version>2.4</version>
453 <groupId>org.apache.commons</groupId>
454 <artifactId>commons-io</artifactId>
455 <version>1.3.2</version>
458 <groupId>org.onap.dmaap.messagerouter.msgrtr</groupId>
459 <artifactId>msgrtr</artifactId>
460 <version>1.1.7</version>
463 <groupId>org.slf4j</groupId>
464 <artifactId>slf4j-log4j12</artifactId>
467 <groupId>com.att.ajsc</groupId>
468 <artifactId>ajsc-core</artifactId>
471 <groupId>org.apache.tomcat</groupId>
472 <artifactId>tomcat-catalina</artifactId>
476 <groupId>org.apache.tomcat.embed</groupId>
477 <artifactId>tomcat-embed-core</artifactId>
480 <groupId>org.apache.tomcat</groupId>
481 <artifactId>tomcat-util</artifactId>
483 <!-- <exclusion> <groupId>com.att.nsa</groupId> <artifactId>saToolkit</artifactId>
486 <groupId>com.att.nsa</groupId>
487 <artifactId>tomcat-util</artifactId>
491 <groupId>commons-beanutils</groupId>
492 <artifactId>commons-beanutils</artifactId>
497 <groupId>org.mockito</groupId>
498 <artifactId>mockito-core</artifactId>
499 <version>1.10.19</version>
503 <groupId>org.powermock</groupId>
504 <artifactId>powermock-module-junit4</artifactId>
505 <version>1.6.4</version>
509 <groupId>org.powermock</groupId>
510 <artifactId>powermock-api-mockito</artifactId>
511 <version>1.6.4</version>
514 <!-- <dependency> <groupId>org.codehaus.jackson</groupId> <artifactId>jackson-jaxrs</artifactId>
515 <version>1.9.13</version> </dependency> <dependency> <groupId>org.codehaus.jackson</groupId>
516 <artifactId>jackson-mapper-asl</artifactId> <version>1.9.13</version> </dependency>
517 <dependency> <groupId>org.codehaus.jackson</groupId> <artifactId>jackson-core-asl</artifactId>
518 <version>1.9.13</version> </dependency> -->
521 <groupId>com.fasterxml.jackson.jaxrs</groupId>
522 <artifactId>jackson-jaxrs-json-provider</artifactId>
523 <version>2.2.3</version>
527 <groupId>com.fasterxml.jackson.core</groupId>
528 <artifactId>jackson-core</artifactId>
529 <version>2.8.11</version>
533 <groupId>com.fasterxml.jackson.core</groupId>
534 <artifactId>jackson-databind</artifactId>
535 <version>2.8.11.1</version>
538 <groupId>org.grails</groupId>
539 <artifactId>grails-web</artifactId>
540 <version>2.5.4</version>
543 <groupId>org.grails</groupId>
544 <artifactId>grails-web-jsp</artifactId>
549 <groupId>org.codehaus.groovy</groupId>
550 <artifactId>groovy-all</artifactId>
551 <version>2.4.8</version>
552 <scope>compile</scope>
555 <artifactId>jline</artifactId>
556 <groupId>jline</groupId>
562 <groupId>junit</groupId>
563 <artifactId>junit</artifactId>
564 <version>4.11</version>
569 <groupId>org.json</groupId>
570 <artifactId>json</artifactId>
571 <version>20131018</version>
574 <!-- CXF JAX-RS extension -->
576 <groupId>org.apache.cxf</groupId>
577 <artifactId>cxf-rt-rs-extension-providers</artifactId>
578 <version>3.2.2</version>
579 <!-- <exclusions> <exclusion> <groupId>org.apache.cxf</groupId> <artifactId>cxf-rt-transports-http</artifactId>
580 </exclusion> </exclusions> -->
583 <groupId>org.apache.cxf</groupId>
584 <artifactId>cxf-core</artifactId>
588 <!-- <dependency> <groupId>org.apache.cxf</groupId> <artifactId>cxf-rt-transports-http</artifactId>
589 <version>3.1.14</version> </dependency> -->
591 <groupId>org.codehaus.jettison</groupId>
592 <artifactId>jettison</artifactId>
593 <version>1.3.7</version>
596 <!-- <dependency> <groupId>dom4j</groupId> <artifactId>dom4j</artifactId>
597 <version>1.6.1</version> <scope>provided</scope> </dependency> -->
599 <groupId>com.att.ajsc</groupId>
600 <artifactId>ajsc-archetype-parent</artifactId>
601 <version>3.0.10-oss</version>
606 <groupId>com.att.cadi</groupId>
607 <artifactId>cadi-aaf</artifactId>
608 <version>1.3.0</version>
612 <groupId>com.att.inno</groupId>
613 <artifactId>rosetta</artifactId>
614 <version>1.2.11</version>
617 <groupId>com.att.inno</groupId>
618 <artifactId>env</artifactId>
619 <version>1.2.11</version>
622 <groupId>com.att.inno</groupId>
623 <artifactId>xgen</artifactId>
624 <version>1.2.11</version>
627 <groupId>com.att.inno</groupId>
628 <artifactId>rosetta</artifactId>
629 <version>1.2.11</version>
632 <groupId>backport-util-concurrent</groupId>
633 <artifactId>backport-util-concurrent</artifactId>
634 <version>3.1</version>
637 <groupId>org.apache.camel</groupId>
638 <artifactId>camel-core</artifactId>
639 <version>${camel.version}</version>
642 <groupId>org.apache.camel</groupId>
643 <artifactId>camel-quartz</artifactId>
644 <version>${camel.version}</version>
647 <groupId>org.apache.camel</groupId>
648 <artifactId>camel-spring</artifactId>
649 <version>${camel.version}</version>
652 <groupId>org.apache.camel</groupId>
653 <artifactId>camel-restlet</artifactId>
654 <version>${camel.version}</version>
657 <artifactId>org.restlet</artifactId>
658 <groupId>org.restlet.jse</groupId>
663 <groupId>org.apache.camel</groupId>
664 <artifactId>camel-servlet</artifactId>
665 <version>${camel.version}</version>
666 <!-- <exclusions> <exclusion> <groupId>commons-httpclient</groupId> <artifactId>commons-httpclient</artifactId>
667 </exclusion> </exclusions> -->
669 <!-- <dependency> <groupId>org.apache.httpcomponents</groupId> <artifactId>httpclient</artifactId>
670 <version>4.0</version> </dependency> -->
673 <groupId>org.apache.camel</groupId>
674 <artifactId>camel-http4</artifactId>
675 <version>${camel.version}</version>
678 <groupId>org.apache.geronimo.specs</groupId>
679 <artifactId>geronimo-servlet_2.5_spec</artifactId>
684 <groupId>org.apache.camel</groupId>
685 <artifactId>camel-groovy</artifactId>
686 <version>${camel.version}</version>
689 <groupId>org.apache.camel</groupId>
690 <artifactId>camel-twitter</artifactId>
691 <version>${camel.version}</version>
694 <groupId>org.apache.camel</groupId>
695 <artifactId>camel-mail</artifactId>
696 <version>${camel.version}</version>
699 <groupId>org.apache.camel</groupId>
700 <artifactId>camel-smpp</artifactId>
701 <version>${camel.version}</version>
704 <groupId>org.apache.camel</groupId>
705 <artifactId>camel-jms</artifactId>
706 <version>${camel.version}</version>
709 <groupId>org.apache.camel</groupId>
710 <artifactId>camel-script</artifactId>
711 <version>${camel.version}</version>
714 <groupId>org.apache.camel</groupId>
715 <artifactId>camel-xmpp</artifactId>
716 <version>${camel.version}</version>
719 <groupId>org.igniterealtime.smack</groupId>
720 <artifactId>smack-tcp</artifactId>
721 <version>4.1.0-rc1</version>
724 <groupId>org.apache.camel</groupId>
725 <artifactId>camel-velocity</artifactId>
726 <version>${camel.version}</version>
729 <groupId>com.att.ajsc</groupId>
730 <artifactId>ajsc-runner</artifactId>
731 <version>3.0.10-oss</version>
732 <scope>runtime</scope>
735 <groupId>com.att.ajsc</groupId>
736 <artifactId>ajsc-core</artifactId>
737 <version>3.0.10-oss</version>
738 <scope>provided</scope>
741 <!-- <build> <resources> <resource> <directory>${basedir}/ajsc-shared-config/etc</directory>
742 </resource> </resources> </build> -->
744 <!-- Use this profile to run the AJSC locally. This profile can be successfully
745 shutdown WITHIN eclipse even in a Windows environment. Debugging is also
746 available with this profile. -->
751 <skip.docker.build>false</skip.docker.build>
752 <skip.docker.tag>false</skip.docker.tag>
753 <skip.docker.push>false</skip.docker.push>
760 <defaultGoal>initialize</defaultGoal>
763 <groupId>org.apache.maven.plugins</groupId>
764 <artifactId>maven-antrun-plugin</artifactId>
767 <phase>initialize</phase>
769 <target name="runLocal">
770 <ant antfile="${basedir}/antBuild/build.xml" target="runLocal" />
786 <defaultGoal>initialize</defaultGoal>
789 <groupId>org.codehaus.mojo</groupId>
790 <artifactId>exec-maven-plugin</artifactId>
791 <version>1.3.2</version>
794 <phase>initialize</phase>
799 <!-- In order to better mimic a SOA cloud installation of AJSC (and
800 to help eliminate Maven/Eclipse/AJSC classpath issues that may be difficult
801 to diagnose), within this profile used to run locally, we are NOT including
802 project dependencies. These will be loaded by AJSC from $AJSC_HOME/extJars.
803 The only jar needed to run AJSC is the ajsc-runner.jar, and therefore is
804 the only dependency required by this profile to run locally. -->
805 <includeProjectDependencies>false</includeProjectDependencies>
806 <includePluginDependencies>true</includePluginDependencies>
807 <executable>java</executable>
808 <mainClass>com.att.ajsc.runner.Runner</mainClass>
809 <executableDependency>
810 <groupId>com.att.ajsc</groupId>
811 <artifactId>ajsc-runner</artifactId>
812 </executableDependency>
813 <additionalClasspathElements>
814 <additionalClasspathElement>${basedir}/ajsc-shared-config/etc</additionalClasspathElement>
815 </additionalClasspathElements>
817 <environmentVariables>
818 <AJSC_HOME>${runAjscHome}</AJSC_HOME>
819 </environmentVariables>
821 <!-- Main AJSC System Properties below (necessary for proper startup) -->
825 <value>${runAjscHome}</value>
829 <value>${runAjscHome}</value>
832 <key>AJSC_CONF_HOME</key>
833 <value>${basedir}/bundleconfig-local</value>
836 <key>logback.configurationFile</key>
837 <value>${basedir}/ajsc-shared-config/etc/logback.xml</value>
840 <key>com.att.eelf.logging.file</key>
841 <value>logback.xml</value>
844 <key>com.att.eelf.logging.path</key>
845 <value>${basedir}/ajsc-shared-config/etc</value>
848 <key>logging.config</key>
849 <value>${basedir}/ajsc-shared-config/etc/logback.xml</value>
852 <key>AJSC_SHARED_CONFIG</key>
853 <value>${basedir}/ajsc-shared-config</value>
856 <!-- Please, NOTE: The following 2 system properties will normally
857 be set within the sys-props.properties file once deployed to a node. We are
858 setting them HERE to run locally to make more efficient use of maven variable
859 replacement for ${basedir} -->
860 <!-- AJSC_EXTERNAL_LIB_FOLDERS represents the particular jars that
861 will be externalized on a CSI node. This includes dme2 and csm related artifact. -->
863 <key>AJSC_EXTERNAL_LIB_FOLDERS</key>
864 <value>${basedir}/target/commonLibs</value>
866 <!-- AJSC_EXTERNAL_PROPERTIES_FOLDERS represents the particular
867 files that may need to be added to the classpath. These files will be externalized
868 on a CSI node. This includes dme2 and csm related artifact (such as csm-config-app.properties).
869 Failure to have these files on the classpath may result in errors thrown
870 by csm framework. -->
872 <key>AJSC_EXTERNAL_PROPERTIES_FOLDERS</key>
873 <value>${basedir}/ajsc-shared-config/etc</value>
877 <key>AJSC_SERVICE_NAMESPACE</key>
878 <value>${module.ajsc.namespace.name}</value>
881 <key>AJSC_SERVICE_VERSION</key>
882 <value>${module.ajsc.namespace.version}</value>
885 <key>SOACLOUD_SERVICE_VERSION</key>
886 <value>${project.version}</value>
889 <key>server.port</key>
890 <value>${serverPort}</value>
894 <!-- Command Line Arguments to add to the java command. Here, you
895 can specify the port as well as the Context you want your service to run
896 in. Use context=/ to run in an unnamed Context (Root Context). The default
897 configuration of the AJSC is to run under the / Context. Setting the port
898 here can aid during the development phase of your service. However, you can
899 leave this argument out entirely, and the AJSC will default to using an Ephemeral
902 <argument>context=/</argument>
903 <argument>port=${serverPort}</argument>
904 <argument>sslport=${sslport}</argument>
910 <executable>java</executable>
914 <groupId>com.att.ajsc</groupId>
915 <artifactId>ajsc-runner</artifactId>
916 <version>${ajscRuntimeVersion}</version>
925 <id>standardbuild</id>
934 <directory>src/main/resources</directory>
936 <exclude>extApps/*.*</exclude>
937 <exclude>${module.ajsc.namespace.name}/**</exclude>
941 <directory>src/main/ajsc/\${namespace}_${namespaceVersion}/\${namespace}/\${namespaceVersion}</directory>
943 <exclude>**/*.route</exclude>
944 <exclude>**/*.props</exclude>
945 <exclude>**/*.xslt</exclude>
946 <exclude>**/*.vm</exclude>
947 <exclude>**/*.jar</exclude>
948 <exclude>**/*.xml</exclude>
954 <groupId>org.apache.maven.plugins</groupId>
955 <artifactId>maven-compiler-plugin</artifactId>
956 <version>3.1</version>
959 <groupId>org.codehaus.groovy</groupId>
960 <artifactId>groovy-eclipse-compiler</artifactId>
961 <version>2.8.0-01</version>
962 <extensions>true</extensions>
966 <groupId>org.codehaus.mojo</groupId>
967 <artifactId>exec-maven-plugin</artifactId>
968 <version>1.2.1</version>
977 <executable>bash</executable>
979 <argument>runServer.sh</argument>
984 <groupId>org.codehaus.mojo</groupId>
985 <artifactId>build-helper-maven-plugin</artifactId>
986 <version>1.9</version>
989 <id>add-source-groovy-ajsc-arch-parent</id>
990 <phase>generate-sources</phase>
992 <goal>add-source</goal>
996 <source>src/main/groovy</source>
1001 <id>add-test-source-groovy-ajsc-arch-parent</id>
1002 <phase>generate-test-sources</phase>
1004 <goal>add-test-source</goal>
1008 <source>src/test/groovy</source>
1013 <id>regex-properties-ajsc-arch-parent</id>
1014 <phase>initialize</phase>
1016 <goal>regex-properties</goal>
1019 <regexPropertySettings>
1020 <regexPropertySetting>
1021 <name>replaceWinFilePath</name>
1022 <value>${runAjscHome}</value>
1024 <replacement>/</replacement>
1025 <failIfNoMatch>false</failIfNoMatch>
1026 </regexPropertySetting>
1027 <regexPropertySetting>
1028 <name>replaceWinBasedirPath</name>
1029 <value>${basedir}</value>
1031 <replacement>/</replacement>
1032 <failIfNoMatch>false</failIfNoMatch>
1033 </regexPropertySetting>
1034 </regexPropertySettings>
1040 <groupId>org.codehaus.mojo</groupId>
1041 <artifactId>properties-maven-plugin</artifactId>
1042 <version>1.0-alpha-2</version>
1045 <id>write-project-properties-ajsc-arch-parent</id>
1046 <phase>generate-resources</phase>
1048 <goal>write-project-properties</goal>
1052 ${project.build.outputDirectory}/build.properties
1059 <groupId>org.apache.maven.plugins</groupId>
1060 <artifactId>maven-assembly-plugin</artifactId>
1061 <version>2.4</version>
1064 <id>make-assembly-ajsc-arch-parent</id>
1065 <phase>package</phase>
1072 <finalName>${project.artifactId}</finalName>
1074 <descriptor>src/main/assemble/ajsc_runtime_assembly.xml</descriptor>
1079 <groupId>org.codehaus.groovy.maven</groupId>
1080 <artifactId>gmaven-plugin</artifactId>
1081 <version>1.0</version>
1084 <id>gmaven-ajsc-arch-parent</id>
1085 <phase>package</phase>
1087 <goal>execute</goal>
1090 <sourcepath>src/main/groovy</sourcepath>
1092 import ajsc.AssemblyService;
1093 ajsc.AssemblyService.getBasedir(project.basedir.getAbsolutePath(),"${distFilesRoot}")
1100 <groupId>org.apache.maven.plugins</groupId>
1101 <artifactId>maven-antrun-plugin</artifactId>
1102 <version>1.7</version>
1105 <id>prep_service_runtime-ajsc-arch-parent</id>
1106 <phase>generate-resources</phase>
1108 <target name="prep_service_runtime">
1109 <echo message="ENTERING 'copy_services_template' ant tasks" />
1110 <!-- <filter token="basedir" value="${basedir}" /> -->
1111 <!-- delete any prior stating stuff before package phase -->
1112 <delete dir="target/versioned-ajsc" includes="**/*" />
1113 <delete dir="target/versioned-runtime" includes="**/*" />
1114 <delete dir="target/CDP" includes="**/*" />
1116 <!-- This is where replacer plugin replaces tokens (Example: __module_ajsc_namespace_name__
1117 is replaced by module.ajsc.namespace.name) -->
1118 <copy todir="target/versioned-ajsc">
1119 <fileset dir="src/main/ajsc" includes="**/*" />
1122 <!-- Copying the CDP, bundleconfig, and StaticContent to the target
1123 directory for future use by replacer plugin -->
1124 <copy todir="target/CDP" failonerror="false">
1125 <fileset dir="CDP" includes="**/*.sh" />
1127 <copy flatten="true" file="CDP/SampleBlueprint.xml"
1129 tofile="target/CDP/${module.ajsc.namespace.name}Blueprint.xml" />
1130 <copy todir="target/staticContent" failonerror="false">
1131 <fileset dir="staticContent" includes="**/*" />
1133 <copy todir="target/bundleconfig" failonerror="false">
1134 <!-- filtering="true"> -->
1135 <fileset dir="bundleconfig" />
1138 <echo message="EXITING 'copy_services_template' ant tasks" />
1139 <echo message="ENTERING 'copy_runtime_template' ant tasks" />
1140 <copy todir="target/versioned-runtime">
1141 <fileset dir="src/main/runtime" includes="**/*" />
1144 file="target/versioned-runtime/context/__module.ajsc.namespace.name__#__module.ajsc.namespace.version__.context" />
1145 <copy flatten="true"
1146 file="src/main/runtime/context/__module.ajsc.namespace.name__#__module.ajsc.namespace.version__.context"
1147 tofile="target/versioned-runtime/context/${module.ajsc.namespace.name}#${module.ajsc.namespace.version}.context" />
1149 file="target/versioned-runtime/deploymentPackage/__module.ajsc.namespace.name__#__module.ajsc.namespace.version__.json" />
1150 <copy flatten="true"
1151 file="src/main/runtime/deploymentPackage/__module.ajsc.namespace.name__#__module.ajsc.namespace.version__.json"
1152 tofile="target/versioned-runtime/deploymentPackage/${module.ajsc.namespace.name}#${module.ajsc.namespace.version}.json" />
1154 file="target/versioned-runtime/shiroRole/contextadmin#__module.ajsc.namespace.name__.json" />
1155 <copy flatten="true"
1156 file="src/main/runtime/shiroRole/contextadmin#__module.ajsc.namespace.name__.json"
1157 tofile="target/versioned-runtime/shiroRole/contextadmin#${module.ajsc.namespace.name}.json" />
1159 file="target/versioned-runtime/shiroUserRole/ajsc#contextAdmin#__module.ajsc.namespace.name__.json" />
1160 <copy flatten="true"
1161 file="src/main/runtime/shiroUserRole/ajsc#contextadmin#__module.ajsc.namespace.name__.json"
1162 tofile="target/versioned-runtime/shiroUserRole/ajsc#contextadmin#${module.ajsc.namespace.name}.json" />
1163 <echo message="EXITING 'copy_runtime_template' ant tasks" />
1172 <phase>package</phase>
1176 srcdir="${basedir}/target/swm/package/nix/dist_files${distFilesRoot}"
1177 includes="**/*.sh,**/*.xml,**/*.properties,**/*.xsd" />
1185 <id>prep_home_directory_for_swm_pkgcreate-ajsc-arch-parent</id>
1186 <phase>package</phase>
1188 <target name="prep_home_directory_for_swm_pkgcreate">
1189 <ant antfile="${basedir}/antBuild/build.xml" target="prep_home_directory_for_swm_pkgcreate" />
1199 <groupId>org.apache.maven.plugins</groupId>
1200 <artifactId>maven-dependency-plugin</artifactId>
1201 <version>2.8</version>
1204 <id>copy-dependencies-ajsc-arch-parent</id>
1205 <phase>prepare-package</phase>
1207 <goal>copy-dependencies</goal>
1210 <includeScope>runtime</includeScope>
1211 <excludeArtifactIds>ajsc-bom,ajsc-core,ajsc-runner,ajsc-war</excludeArtifactIds>
1212 <outputDirectory>${project.build.directory}/userjars</outputDirectory>
1213 <silent>true</silent>
1217 <id>copy-dependencies-ajsc-arch-parent-commonLibs</id>
1218 <phase>prepare-package</phase>
1220 <goal>copy-dependencies</goal>
1223 <includeScope>provided</includeScope>
1224 <includeGroupIds>net.cingular.enterprise,com.att.aft,dom4j</includeGroupIds>
1225 <!-- <includeGroupIds>com.att.aft</includeGroupIds> -->
1226 <outputDirectory>${project.build.directory}/commonLibs</outputDirectory>
1227 <silent>true</silent>
1232 <phase>prepare-package</phase>
1234 <goal>copy-dependencies</goal>
1237 <includeArtifactIds>ajsc-runner</includeArtifactIds>
1238 <outputDirectory>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}/lib</outputDirectory>
1244 <artifactId>maven-resources-plugin</artifactId>
1245 <version>2.7</version>
1249 <phase>package</phase>
1251 <goal>copy-resources</goal>
1254 <outputDirectory>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}/etc</outputDirectory>
1257 <directory>src/main/config</directory>
1264 <phase>package</phase>
1266 <goal>copy-resources</goal>
1269 <outputDirectory>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}/bin</outputDirectory>
1272 <directory>src/main/scripts</directory>
1278 <id>copy-docker-file</id>
1279 <phase>prepare-package</phase>
1281 <goal>copy-resources</goal>
1284 <outputDirectory>${dockerLocation}</outputDirectory>
1285 <overwrite>true</overwrite>
1288 <directory>${basedir}/src/main/resources/docker</directory>
1289 <filtering>true</filtering>
1291 <include>**/*</include>
1302 <groupId>com.google.code.maven-replacer-plugin</groupId>
1303 <artifactId>replacer</artifactId>
1304 <version>1.5.2</version>
1307 <id>google-replacer-ajsc-arch-parent</id>
1308 <phase>prepare-package</phase>
1310 <goal>replace</goal>
1313 <basedir>${project.build.directory}</basedir>
1315 <include>staticContent/**/*.html</include>
1316 <include>CDP/**</include>
1317 <include>bundleconfig/**</include>
1318 <include>versioned-runtime/**/*.context</include>
1319 <include>versioned-runtime/**/*.json</include>
1320 <include>versioned-ajsc/**/*.route</include>
1321 <include>versioned-ajsc/**/*.groovy</include>
1322 <include>versioned-ajsc/**/*.xml</include>
1323 <include>classes/*.properties</include>
1324 <include>swm/package/nix/dist_files${distFilesRoot}/etc/*.properties</include>
1326 <escape>true</escape>
1329 <token>__module_ajsc_namespace_name__</token>
1330 <value>${module.ajsc.namespace.name}</value>
1333 <token>__module_ajsc_namespace_version__</token>
1334 <value>${module.ajsc.namespace.version}</value>
1337 <token>__ajscHome__</token>
1338 <value>${replaceWinFilePath}</value>
1341 <token>__projectGroupId__</token>
1342 <value>${project.groupId}</value>
1345 <token>__projectArtifactId__</token>
1346 <value>${project.artifactId}</value>
1349 <token>__projectVersion__</token>
1350 <value>${project.version}</value>
1353 <token>__basedir__</token>
1354 <value>${replaceWinBasedirPath}</value>
1365 <groupId>org.apache.maven.plugins</groupId>
1366 <artifactId>maven-surefire-plugin</artifactId>
1367 <version>2.14.1</version>
1370 <exclude>**/AbstractTest.java</exclude>