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.2.1</version>
22 <groupId>org.onap.dmaap.messagerouter.messageservice</groupId>
23 <artifactId>dmaapMR1</artifactId>
24 <version>1.1.11-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>
261 <onap.nexus.url>https://nexus.onap.org</onap.nexus.url>
262 <testRouteOffer>workstation</testRouteOffer>
263 <testEnv>DEV</testEnv>
264 <!-- <dmaapImg>${project.version}</dmaapImg> -->
265 <dmaapImg>1.1.10</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.15</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>org.onap.aaf.authz</groupId>
607 <artifactId>aaf-cadi-aaf</artifactId>
608 <version>2.1.5</version>
611 <groupId>backport-util-concurrent</groupId>
612 <artifactId>backport-util-concurrent</artifactId>
613 <version>3.1</version>
616 <groupId>org.apache.camel</groupId>
617 <artifactId>camel-core</artifactId>
618 <version>${camel.version}</version>
621 <groupId>org.apache.camel</groupId>
622 <artifactId>camel-quartz</artifactId>
623 <version>${camel.version}</version>
626 <groupId>org.apache.camel</groupId>
627 <artifactId>camel-spring</artifactId>
628 <version>${camel.version}</version>
631 <groupId>org.apache.camel</groupId>
632 <artifactId>camel-restlet</artifactId>
633 <version>${camel.version}</version>
636 <artifactId>org.restlet</artifactId>
637 <groupId>org.restlet.jse</groupId>
642 <groupId>org.apache.camel</groupId>
643 <artifactId>camel-servlet</artifactId>
644 <version>${camel.version}</version>
645 <!-- <exclusions> <exclusion> <groupId>commons-httpclient</groupId> <artifactId>commons-httpclient</artifactId>
646 </exclusion> </exclusions> -->
648 <!-- <dependency> <groupId>org.apache.httpcomponents</groupId> <artifactId>httpclient</artifactId>
649 <version>4.0</version> </dependency> -->
652 <groupId>org.apache.camel</groupId>
653 <artifactId>camel-http4</artifactId>
654 <version>${camel.version}</version>
657 <groupId>org.apache.geronimo.specs</groupId>
658 <artifactId>geronimo-servlet_2.5_spec</artifactId>
663 <groupId>org.apache.camel</groupId>
664 <artifactId>camel-groovy</artifactId>
665 <version>${camel.version}</version>
668 <groupId>org.apache.camel</groupId>
669 <artifactId>camel-twitter</artifactId>
670 <version>${camel.version}</version>
673 <groupId>org.apache.camel</groupId>
674 <artifactId>camel-mail</artifactId>
675 <version>${camel.version}</version>
678 <groupId>org.apache.camel</groupId>
679 <artifactId>camel-smpp</artifactId>
680 <version>${camel.version}</version>
683 <groupId>org.apache.camel</groupId>
684 <artifactId>camel-jms</artifactId>
685 <version>${camel.version}</version>
688 <groupId>org.apache.camel</groupId>
689 <artifactId>camel-script</artifactId>
690 <version>${camel.version}</version>
693 <groupId>org.apache.camel</groupId>
694 <artifactId>camel-xmpp</artifactId>
695 <version>${camel.version}</version>
698 <groupId>org.igniterealtime.smack</groupId>
699 <artifactId>smack-tcp</artifactId>
700 <version>4.1.0-rc1</version>
703 <groupId>org.apache.camel</groupId>
704 <artifactId>camel-velocity</artifactId>
705 <version>${camel.version}</version>
708 <groupId>com.att.ajsc</groupId>
709 <artifactId>ajsc-runner</artifactId>
710 <version>3.0.10-oss</version>
711 <scope>runtime</scope>
714 <groupId>com.att.ajsc</groupId>
715 <artifactId>ajsc-core</artifactId>
716 <version>3.0.10-oss</version>
717 <scope>provided</scope>
720 <!-- <build> <resources> <resource> <directory>${basedir}/ajsc-shared-config/etc</directory>
721 </resource> </resources> </build> -->
723 <!-- Use this profile to run the AJSC locally. This profile can be successfully
724 shutdown WITHIN eclipse even in a Windows environment. Debugging is also
725 available with this profile. -->
730 <skip.docker.build>false</skip.docker.build>
731 <skip.docker.tag>false</skip.docker.tag>
732 <skip.docker.push>false</skip.docker.push>
739 <defaultGoal>initialize</defaultGoal>
742 <groupId>org.apache.maven.plugins</groupId>
743 <artifactId>maven-antrun-plugin</artifactId>
746 <phase>initialize</phase>
748 <target name="runLocal">
749 <ant antfile="${basedir}/antBuild/build.xml" target="runLocal" />
765 <defaultGoal>initialize</defaultGoal>
768 <groupId>org.codehaus.mojo</groupId>
769 <artifactId>exec-maven-plugin</artifactId>
770 <version>1.3.2</version>
773 <phase>initialize</phase>
778 <!-- In order to better mimic a SOA cloud installation of AJSC (and
779 to help eliminate Maven/Eclipse/AJSC classpath issues that may be difficult
780 to diagnose), within this profile used to run locally, we are NOT including
781 project dependencies. These will be loaded by AJSC from $AJSC_HOME/extJars.
782 The only jar needed to run AJSC is the ajsc-runner.jar, and therefore is
783 the only dependency required by this profile to run locally. -->
784 <includeProjectDependencies>false</includeProjectDependencies>
785 <includePluginDependencies>true</includePluginDependencies>
786 <executable>java</executable>
787 <mainClass>com.att.ajsc.runner.Runner</mainClass>
788 <executableDependency>
789 <groupId>com.att.ajsc</groupId>
790 <artifactId>ajsc-runner</artifactId>
791 </executableDependency>
792 <additionalClasspathElements>
793 <additionalClasspathElement>${basedir}/ajsc-shared-config/etc</additionalClasspathElement>
794 </additionalClasspathElements>
796 <environmentVariables>
797 <AJSC_HOME>${runAjscHome}</AJSC_HOME>
798 </environmentVariables>
800 <!-- Main AJSC System Properties below (necessary for proper startup) -->
804 <value>${runAjscHome}</value>
808 <value>${runAjscHome}</value>
811 <key>AJSC_CONF_HOME</key>
812 <value>${basedir}/bundleconfig-local</value>
815 <key>logback.configurationFile</key>
816 <value>${basedir}/ajsc-shared-config/etc/logback.xml</value>
819 <key>com.att.eelf.logging.file</key>
820 <value>logback.xml</value>
823 <key>com.att.eelf.logging.path</key>
824 <value>${basedir}/ajsc-shared-config/etc</value>
827 <key>logging.config</key>
828 <value>${basedir}/ajsc-shared-config/etc/logback.xml</value>
831 <key>AJSC_SHARED_CONFIG</key>
832 <value>${basedir}/ajsc-shared-config</value>
835 <!-- Please, NOTE: The following 2 system properties will normally
836 be set within the sys-props.properties file once deployed to a node. We are
837 setting them HERE to run locally to make more efficient use of maven variable
838 replacement for ${basedir} -->
839 <!-- AJSC_EXTERNAL_LIB_FOLDERS represents the particular jars that
840 will be externalized on a CSI node. This includes dme2 and csm related artifact. -->
842 <key>AJSC_EXTERNAL_LIB_FOLDERS</key>
843 <value>${basedir}/target/commonLibs</value>
845 <!-- AJSC_EXTERNAL_PROPERTIES_FOLDERS represents the particular
846 files that may need to be added to the classpath. These files will be externalized
847 on a CSI node. This includes dme2 and csm related artifact (such as csm-config-app.properties).
848 Failure to have these files on the classpath may result in errors thrown
849 by csm framework. -->
851 <key>AJSC_EXTERNAL_PROPERTIES_FOLDERS</key>
852 <value>${basedir}/ajsc-shared-config/etc</value>
856 <key>AJSC_SERVICE_NAMESPACE</key>
857 <value>${module.ajsc.namespace.name}</value>
860 <key>AJSC_SERVICE_VERSION</key>
861 <value>${module.ajsc.namespace.version}</value>
864 <key>SOACLOUD_SERVICE_VERSION</key>
865 <value>${project.version}</value>
868 <key>server.port</key>
869 <value>${serverPort}</value>
873 <!-- Command Line Arguments to add to the java command. Here, you
874 can specify the port as well as the Context you want your service to run
875 in. Use context=/ to run in an unnamed Context (Root Context). The default
876 configuration of the AJSC is to run under the / Context. Setting the port
877 here can aid during the development phase of your service. However, you can
878 leave this argument out entirely, and the AJSC will default to using an Ephemeral
881 <argument>context=/</argument>
882 <argument>port=${serverPort}</argument>
883 <argument>sslport=${sslport}</argument>
889 <executable>java</executable>
893 <groupId>com.att.ajsc</groupId>
894 <artifactId>ajsc-runner</artifactId>
895 <version>${ajscRuntimeVersion}</version>
904 <id>standardbuild</id>
913 <directory>src/main/resources</directory>
915 <exclude>extApps/*.*</exclude>
916 <exclude>${module.ajsc.namespace.name}/**</exclude>
920 <directory>src/main/ajsc/\${namespace}_${namespaceVersion}/\${namespace}/\${namespaceVersion}</directory>
922 <exclude>**/*.route</exclude>
923 <exclude>**/*.props</exclude>
924 <exclude>**/*.xslt</exclude>
925 <exclude>**/*.vm</exclude>
926 <exclude>**/*.jar</exclude>
927 <exclude>**/*.xml</exclude>
933 <groupId>org.apache.maven.plugins</groupId>
934 <artifactId>maven-compiler-plugin</artifactId>
935 <version>3.1</version>
938 <groupId>org.codehaus.groovy</groupId>
939 <artifactId>groovy-eclipse-compiler</artifactId>
940 <version>2.8.0-01</version>
941 <extensions>true</extensions>
945 <groupId>org.codehaus.mojo</groupId>
946 <artifactId>exec-maven-plugin</artifactId>
947 <version>1.2.1</version>
956 <executable>bash</executable>
958 <argument>runServer.sh</argument>
963 <groupId>org.codehaus.mojo</groupId>
964 <artifactId>build-helper-maven-plugin</artifactId>
965 <version>1.9</version>
968 <id>add-source-groovy-ajsc-arch-parent</id>
969 <phase>generate-sources</phase>
971 <goal>add-source</goal>
975 <source>src/main/groovy</source>
980 <id>add-test-source-groovy-ajsc-arch-parent</id>
981 <phase>generate-test-sources</phase>
983 <goal>add-test-source</goal>
987 <source>src/test/groovy</source>
992 <id>regex-properties-ajsc-arch-parent</id>
993 <phase>initialize</phase>
995 <goal>regex-properties</goal>
998 <regexPropertySettings>
999 <regexPropertySetting>
1000 <name>replaceWinFilePath</name>
1001 <value>${runAjscHome}</value>
1003 <replacement>/</replacement>
1004 <failIfNoMatch>false</failIfNoMatch>
1005 </regexPropertySetting>
1006 <regexPropertySetting>
1007 <name>replaceWinBasedirPath</name>
1008 <value>${basedir}</value>
1010 <replacement>/</replacement>
1011 <failIfNoMatch>false</failIfNoMatch>
1012 </regexPropertySetting>
1013 </regexPropertySettings>
1019 <groupId>org.codehaus.mojo</groupId>
1020 <artifactId>properties-maven-plugin</artifactId>
1021 <version>1.0-alpha-2</version>
1024 <id>write-project-properties-ajsc-arch-parent</id>
1025 <phase>generate-resources</phase>
1027 <goal>write-project-properties</goal>
1031 ${project.build.outputDirectory}/build.properties
1038 <groupId>org.apache.maven.plugins</groupId>
1039 <artifactId>maven-assembly-plugin</artifactId>
1040 <version>2.4</version>
1043 <id>make-assembly-ajsc-arch-parent</id>
1044 <phase>package</phase>
1051 <finalName>${project.artifactId}</finalName>
1053 <descriptor>src/main/assemble/ajsc_runtime_assembly.xml</descriptor>
1058 <groupId>org.codehaus.groovy.maven</groupId>
1059 <artifactId>gmaven-plugin</artifactId>
1060 <version>1.0</version>
1063 <id>gmaven-ajsc-arch-parent</id>
1064 <phase>package</phase>
1066 <goal>execute</goal>
1069 <sourcepath>src/main/groovy</sourcepath>
1071 import ajsc.AssemblyService;
1072 ajsc.AssemblyService.getBasedir(project.basedir.getAbsolutePath(),"${distFilesRoot}")
1079 <groupId>org.apache.maven.plugins</groupId>
1080 <artifactId>maven-antrun-plugin</artifactId>
1081 <version>1.7</version>
1084 <id>prep_service_runtime-ajsc-arch-parent</id>
1085 <phase>generate-resources</phase>
1087 <target name="prep_service_runtime">
1088 <echo message="ENTERING 'copy_services_template' ant tasks" />
1089 <!-- <filter token="basedir" value="${basedir}" /> -->
1090 <!-- delete any prior stating stuff before package phase -->
1091 <delete dir="target/versioned-ajsc" includes="**/*" />
1092 <delete dir="target/versioned-runtime" includes="**/*" />
1093 <delete dir="target/CDP" includes="**/*" />
1095 <!-- This is where replacer plugin replaces tokens (Example: __module_ajsc_namespace_name__
1096 is replaced by module.ajsc.namespace.name) -->
1097 <copy todir="target/versioned-ajsc">
1098 <fileset dir="src/main/ajsc" includes="**/*" />
1101 <!-- Copying the CDP, bundleconfig, and StaticContent to the target
1102 directory for future use by replacer plugin -->
1103 <copy todir="target/CDP" failonerror="false">
1104 <fileset dir="CDP" includes="**/*.sh" />
1106 <copy flatten="true" file="CDP/SampleBlueprint.xml"
1108 tofile="target/CDP/${module.ajsc.namespace.name}Blueprint.xml" />
1109 <copy todir="target/staticContent" failonerror="false">
1110 <fileset dir="staticContent" includes="**/*" />
1112 <copy todir="target/bundleconfig" failonerror="false">
1113 <!-- filtering="true"> -->
1114 <fileset dir="bundleconfig" />
1117 <echo message="EXITING 'copy_services_template' ant tasks" />
1118 <echo message="ENTERING 'copy_runtime_template' ant tasks" />
1119 <copy todir="target/versioned-runtime">
1120 <fileset dir="src/main/runtime" includes="**/*" />
1123 file="target/versioned-runtime/context/__module.ajsc.namespace.name__#__module.ajsc.namespace.version__.context" />
1124 <copy flatten="true"
1125 file="src/main/runtime/context/__module.ajsc.namespace.name__#__module.ajsc.namespace.version__.context"
1126 tofile="target/versioned-runtime/context/${module.ajsc.namespace.name}#${module.ajsc.namespace.version}.context" />
1128 file="target/versioned-runtime/deploymentPackage/__module.ajsc.namespace.name__#__module.ajsc.namespace.version__.json" />
1129 <copy flatten="true"
1130 file="src/main/runtime/deploymentPackage/__module.ajsc.namespace.name__#__module.ajsc.namespace.version__.json"
1131 tofile="target/versioned-runtime/deploymentPackage/${module.ajsc.namespace.name}#${module.ajsc.namespace.version}.json" />
1133 file="target/versioned-runtime/shiroRole/contextadmin#__module.ajsc.namespace.name__.json" />
1134 <copy flatten="true"
1135 file="src/main/runtime/shiroRole/contextadmin#__module.ajsc.namespace.name__.json"
1136 tofile="target/versioned-runtime/shiroRole/contextadmin#${module.ajsc.namespace.name}.json" />
1138 file="target/versioned-runtime/shiroUserRole/ajsc#contextAdmin#__module.ajsc.namespace.name__.json" />
1139 <copy flatten="true"
1140 file="src/main/runtime/shiroUserRole/ajsc#contextadmin#__module.ajsc.namespace.name__.json"
1141 tofile="target/versioned-runtime/shiroUserRole/ajsc#contextadmin#${module.ajsc.namespace.name}.json" />
1142 <echo message="EXITING 'copy_runtime_template' ant tasks" />
1151 <phase>package</phase>
1155 srcdir="${basedir}/target/swm/package/nix/dist_files${distFilesRoot}"
1156 includes="**/*.sh,**/*.xml,**/*.properties,**/*.xsd" />
1164 <id>prep_home_directory_for_swm_pkgcreate-ajsc-arch-parent</id>
1165 <phase>package</phase>
1167 <target name="prep_home_directory_for_swm_pkgcreate">
1168 <ant antfile="${basedir}/antBuild/build.xml" target="prep_home_directory_for_swm_pkgcreate" />
1178 <groupId>org.apache.maven.plugins</groupId>
1179 <artifactId>maven-dependency-plugin</artifactId>
1180 <version>2.8</version>
1183 <id>copy-dependencies-ajsc-arch-parent</id>
1184 <phase>prepare-package</phase>
1186 <goal>copy-dependencies</goal>
1189 <includeScope>runtime</includeScope>
1190 <excludeArtifactIds>ajsc-bom,ajsc-core,ajsc-runner,ajsc-war</excludeArtifactIds>
1191 <outputDirectory>${project.build.directory}/userjars</outputDirectory>
1192 <silent>true</silent>
1196 <id>copy-dependencies-ajsc-arch-parent-commonLibs</id>
1197 <phase>prepare-package</phase>
1199 <goal>copy-dependencies</goal>
1202 <includeScope>provided</includeScope>
1203 <includeGroupIds>net.cingular.enterprise,com.att.aft,dom4j</includeGroupIds>
1204 <!-- <includeGroupIds>com.att.aft</includeGroupIds> -->
1205 <outputDirectory>${project.build.directory}/commonLibs</outputDirectory>
1206 <silent>true</silent>
1211 <phase>prepare-package</phase>
1213 <goal>copy-dependencies</goal>
1216 <includeArtifactIds>ajsc-runner</includeArtifactIds>
1217 <outputDirectory>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}/lib</outputDirectory>
1223 <artifactId>maven-resources-plugin</artifactId>
1224 <version>2.7</version>
1228 <phase>package</phase>
1230 <goal>copy-resources</goal>
1233 <outputDirectory>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}/etc</outputDirectory>
1236 <directory>src/main/config</directory>
1243 <phase>package</phase>
1245 <goal>copy-resources</goal>
1248 <outputDirectory>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}/bin</outputDirectory>
1251 <directory>src/main/scripts</directory>
1257 <id>copy-docker-file</id>
1258 <phase>prepare-package</phase>
1260 <goal>copy-resources</goal>
1263 <outputDirectory>${dockerLocation}</outputDirectory>
1264 <overwrite>true</overwrite>
1267 <directory>${basedir}/src/main/resources/docker</directory>
1268 <filtering>true</filtering>
1270 <include>**/*</include>
1281 <groupId>com.google.code.maven-replacer-plugin</groupId>
1282 <artifactId>replacer</artifactId>
1283 <version>1.5.2</version>
1286 <id>google-replacer-ajsc-arch-parent</id>
1287 <phase>prepare-package</phase>
1289 <goal>replace</goal>
1292 <basedir>${project.build.directory}</basedir>
1294 <include>staticContent/**/*.html</include>
1295 <include>CDP/**</include>
1296 <include>bundleconfig/**</include>
1297 <include>versioned-runtime/**/*.context</include>
1298 <include>versioned-runtime/**/*.json</include>
1299 <include>versioned-ajsc/**/*.route</include>
1300 <include>versioned-ajsc/**/*.groovy</include>
1301 <include>versioned-ajsc/**/*.xml</include>
1302 <include>classes/*.properties</include>
1303 <include>swm/package/nix/dist_files${distFilesRoot}/etc/*.properties</include>
1305 <escape>true</escape>
1308 <token>__module_ajsc_namespace_name__</token>
1309 <value>${module.ajsc.namespace.name}</value>
1312 <token>__module_ajsc_namespace_version__</token>
1313 <value>${module.ajsc.namespace.version}</value>
1316 <token>__ajscHome__</token>
1317 <value>${replaceWinFilePath}</value>
1320 <token>__projectGroupId__</token>
1321 <value>${project.groupId}</value>
1324 <token>__projectArtifactId__</token>
1325 <value>${project.artifactId}</value>
1328 <token>__projectVersion__</token>
1329 <value>${project.version}</value>
1332 <token>__basedir__</token>
1333 <value>${replaceWinBasedirPath}</value>
1344 <groupId>org.apache.maven.plugins</groupId>
1345 <artifactId>maven-surefire-plugin</artifactId>
1346 <version>2.14.1</version>
1349 <exclude>**/AbstractTest.java</exclude>