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.15-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>
52 <groupId>org.apache.maven.plugins</groupId>
53 <artifactId>maven-site-plugin</artifactId>
54 <version>3.6</version>
57 <groupId>org.apache.maven.wagon</groupId>
58 <artifactId>wagon-webdav-jackrabbit</artifactId>
59 <version>2.10</version>
65 <groupId>org.apache.maven.plugins</groupId>
66 <artifactId>maven-jar-plugin</artifactId>
67 <version>3.0.2</version>
70 <groupId>org.apache.maven.plugins</groupId>
71 <artifactId>maven-source-plugin</artifactId>
72 <version>3.0.0</version>
75 <id>attach-sources</id>
77 <goal>jar-no-fork</goal>
83 <groupId>org.apache.maven.plugins</groupId>
84 <artifactId>maven-release-plugin</artifactId>
85 <version>2.5.3</version>
87 <autoVersionSubmodules>true</autoVersionSubmodules>
88 <checkModificationExcludes>
89 </checkModificationExcludes>
93 <groupId>org.apache.maven.scm</groupId>
94 <artifactId>maven-scm-provider-gitexe</artifactId>
95 <version>1.9.4</version>
102 <groupId>com.blackducksoftware.integration</groupId>
103 <artifactId>hub-maven-plugin</artifactId>
104 <version>1.0.4</version>
105 <inherited>false</inherited>
107 <target>${project.basedir}</target>
111 <id>create-bdio-file</id>
112 <phase>package</phase>
114 <goal>createHubOutput</goal>
120 <!-- <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId>
121 <version>3.1</version> <configuration> <compilerId>groovy-eclipse-compiler</compilerId>
122 <verbose>true</verbose> <source>1.7</source> <target>1.7</target> </configuration>
123 <dependencies> <dependency> <groupId>org.codehaus.groovy</groupId> <artifactId>groovy-eclipse-compiler</artifactId>
124 <version>2.8.0-01</version> </dependency> <dependency> <groupId>org.codehaus.groovy</groupId>
125 <artifactId>groovy-eclipse-batch</artifactId> <version>2.1.5-03</version>
126 </dependency> </dependencies> </plugin> -->
128 <groupId>org.codehaus.groovy</groupId>
129 <artifactId>groovy-eclipse-compiler</artifactId>
130 <version>2.8.0-01</version>
131 <extensions>true</extensions>
138 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
139 <dockerLocation>${basedir}/target/swm/package/nix/dist_files/</dockerLocation>
140 <docker.image.prefix>simpledemo</docker.image.prefix>
141 <!-- <javax-mail-version>1.5.0</javax-mail-version> -->
142 <module.ajsc.namespace.name>dmaap</module.ajsc.namespace.name>
143 <module.ajsc.namespace.version>v1</module.ajsc.namespace.version>
144 <ajscRuntimeVersion>3.0.10-oss</ajscRuntimeVersion>
146 <!-- This will be the Absolute Root of the Project and should contain NO
148 <absoluteDistFilesRoot>/appl/${project.artifactId}</absoluteDistFilesRoot>
149 <!-- <absoluteDistFilesRoot>/opt/app/dmaap/${project.artifactId}</absoluteDistFilesRoot> -->
150 <!-- For Versioning upon installation, add /${project.version} to distFilesRoot.
151 For NO Versioning, leave as is -->
152 <!-- example: /appl/${project.artifactId}/${project.version}. Also, add
153 ${project.version} to ${runAjscHome} for running locally. -->
154 <distFilesRoot>/appl/${project.artifactId}</distFilesRoot>
155 <!-- <distFilesRoot>/opt/app/dmaap/${project.artifactId}</distFilesRoot> -->
156 <runAjscHome>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}</runAjscHome>
158 <!-- For SOA Cloud Installation <installOwnerUser>aft</installOwnerUser>
159 <installOwnerGroup>aft</installOwnerGroup> <ownerManagementGroup>com.att.acsi.saat.dt.dmaap.dev</ownerManagementGroup> -->
160 <!-- For SOA Cloud Installation -->
161 <installOwnerUser>msgrtr</installOwnerUser>
162 <installOwnerGroup>dmaap</installOwnerGroup>
163 <ownerManagementGroup>com.att.acsi.saat.dt.dmaap.dev</ownerManagementGroup>
164 <!-- Port Selection. A value of 0 will allow for dynamic port selection.
165 For local testing, you may choose to hardcode this value to something like
167 <serverPort>3904</serverPort>
168 <sslport>3905</sslport>
169 <onap.nexus.url>https://nexus.onap.org</onap.nexus.url>
170 <testRouteOffer>workstation</testRouteOffer>
171 <testEnv>DEV</testEnv>
172 <!-- <dmaapImg>${project.version}</dmaapImg> -->
173 <timestamp>${maven.build.timestamp}</timestamp>
174 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
175 <camel.version>2.21.1</camel.version>
176 <sitePath>/content/sites/site/org/onap/dmaap/messagerouter/messageservice/${project.artifactId}/${project.version}</sitePath>
177 <skip.docker.build>true</skip.docker.build>
178 <skip.docker.tag>true</skip.docker.tag>
179 <skip.docker.push>true</skip.docker.push>
180 <nexusproxy>https://nexus.onap.org</nexusproxy>
181 <docker.push.registry>nexus3.onap.org:10003</docker.push.registry>
182 <spring.version>3.2.18.RELEASE</spring.version>
185 <!-- Distribution management -->
186 <distributionManagement>
189 <url>dav:${nexusproxy}${sitePath}</url>
191 </distributionManagement>
193 <!-- End Distribution management -->
195 <!-- The standard build tasks for this project are inherited from the parent.
196 Please do not override the build tasks. However tasks and/or profiles can
197 be included here as well as additional dependencies for your service. Any
198 runtime or compile scope dependencies will be copied to the INSTALLATION_PATH/extJars
199 folder and will be made available on the AJSC classpath for your service.
200 Please, NOTE: DME2 and CSM related dependencies are EXTERNALIZED within the
201 CSI environment. Therefore, they are provided within this project as "provided"
202 dependencies. In order for the AJSC to run properly, locally, the CSM and
203 DME2 dependencies will be copied into the target/commonLibs folder and will
204 be made available to the classpath of the AJSC through the use of the system
205 property, "AJSC_EXTERNAL_LIB_FOLDERS". This system property needs to be set
206 in the "runAjsc" maven profile within the pom.xml (and, is defaulted to do
207 so). If you have a startup failure related to a missing dme2 class not found
208 exception, please contact the AJSC team for assistance. You can email support
209 at ajsc-Support <DL-ajsc-Support@att.com>. For more information regarding
210 the usage of the AJSC service pom.xml and management of dependencies, -->
213 <!-- cmn-CommonDataModel dependency added to resolve build issue not finding
216 <!-- <dependency> <groupId>csi-schemas-source</groupId> <artifactId>cmn-CommonDataModel</artifactId>
217 <version>112.0.50</version> </dependency> -->
218 <!-- TODO: add open source version here -->
222 <groupId>com.sun.mail</groupId>
223 <artifactId>javax.mail</artifactId>
224 <version>1.6.0</version>
226 <!-- javax activation is part of the JDK now -->
228 <groupId>javax.activation</groupId>
229 <artifactId>activation</artifactId>
234 <groupId>com.sun.xml.bind</groupId>
235 <artifactId>jaxb-core</artifactId>
236 <version>2.3.0.1</version>
237 <scope>compile</scope>
240 <groupId>com.sun.xml.bind</groupId>
241 <artifactId>jaxb-impl</artifactId>
242 <version>2.3.0.1</version>
243 <scope>compile</scope>
246 <artifactId>jsr181-api</artifactId>
247 <groupId>javax.jws</groupId>
253 <groupId>org.apache.cxf</groupId>
254 <artifactId>cxf-rt-transports-http</artifactId>
255 <version>3.2.5</version>
259 <groupId>com.att.cadi</groupId>
260 <artifactId>cadi-core</artifactId>
261 <version>1.3.0</version>
264 <groupId>com.att.aft</groupId>
265 <artifactId>dme2</artifactId>
266 <version>3.1.200-oss</version>
269 <groupId>org.springframework</groupId>
270 <artifactId>spring-expression</artifactId>
271 <version>4.3.18.RELEASE</version>
274 <groupId>org.springframework</groupId>
275 <artifactId>spring-messaging</artifactId>
276 <version>4.1.9.RELEASE</version>
278 <!-- <dependency> <groupId>com.sun.mail</groupId> <artifactId>javax.mail</artifactId>
279 <version>${javax-mail-version}</version> <exclusions> javax activation is
280 part of the JDK now <exclusion> <groupId>javax.activation</groupId> <artifactId>activation</artifactId>
281 </exclusion> </exclusions> </dependency> -->
284 <groupId>org.apache.zookeeper</groupId>
285 <artifactId>zookeeper</artifactId>
286 <version>3.4.10</version>
289 <groupId>org.grails</groupId>
290 <artifactId>grails-bootstrap</artifactId>
291 <version>2.5.4</version>
292 <scope>compile</scope>
295 <artifactId>ant</artifactId>
296 <groupId>org.apache.ant</groupId>
299 <artifactId>jna</artifactId>
300 <groupId>net.java.dev.jna</groupId>
303 <artifactId>ant-trax</artifactId>
304 <groupId>org.apache.ant</groupId>
307 <artifactId>gant_groovy1.8</artifactId>
308 <groupId>org.codehaus.gant</groupId>
311 <artifactId>ant-launcher</artifactId>
312 <groupId>org.apache.ant</groupId>
315 <artifactId>jline</artifactId>
316 <groupId>jline</groupId>
319 <artifactId>ivy</artifactId>
320 <groupId>org.apache.ivy</groupId>
323 <artifactId>jansi</artifactId>
324 <groupId>org.fusesource.jansi</groupId>
327 <artifactId>commons-logging</artifactId>
328 <groupId>commons-logging</groupId>
331 <artifactId>ant-junit</artifactId>
332 <groupId>org.apache.ant</groupId>
337 <groupId>org.springframework</groupId>
338 <artifactId>spring-webmvc</artifactId>
339 <version>4.3.18.RELEASE</version>
342 <groupId>org.springframework</groupId>
343 <artifactId>spring-core</artifactId>
344 <version>4.3.18.RELEASE</version>
347 <groupId>org.springframework</groupId>
348 <artifactId>spring-beans</artifactId>
349 <version>4.3.18.RELEASE</version>
353 <groupId>org.springframework</groupId>
354 <artifactId>spring-context</artifactId>
355 <version>4.3.18.RELEASE</version>
358 <groupId>commons-io</groupId>
359 <artifactId>commons-io</artifactId>
360 <version>2.4</version>
363 <groupId>org.apache.commons</groupId>
364 <artifactId>commons-io</artifactId>
365 <version>1.3.2</version>
368 <groupId>org.onap.dmaap.messagerouter.msgrtr</groupId>
369 <artifactId>msgrtr</artifactId>
370 <version>1.1.17</version>
373 <groupId>org.slf4j</groupId>
374 <artifactId>slf4j-log4j12</artifactId>
377 <groupId>com.att.ajsc</groupId>
378 <artifactId>ajsc-core</artifactId>
381 <groupId>org.apache.tomcat</groupId>
382 <artifactId>tomcat-catalina</artifactId>
386 <groupId>org.apache.tomcat.embed</groupId>
387 <artifactId>tomcat-embed-core</artifactId>
390 <groupId>org.apache.tomcat</groupId>
391 <artifactId>tomcat-util</artifactId>
393 <!-- <exclusion> <groupId>com.att.nsa</groupId> <artifactId>saToolkit</artifactId>
396 <groupId>com.att.nsa</groupId>
397 <artifactId>tomcat-util</artifactId>
401 <groupId>commons-beanutils</groupId>
402 <artifactId>commons-beanutils</artifactId>
407 <groupId>org.mockito</groupId>
408 <artifactId>mockito-core</artifactId>
409 <version>1.10.19</version>
413 <groupId>org.powermock</groupId>
414 <artifactId>powermock-module-junit4</artifactId>
415 <version>1.6.4</version>
419 <groupId>org.powermock</groupId>
420 <artifactId>powermock-api-mockito</artifactId>
421 <version>1.6.4</version>
424 <!-- <dependency> <groupId>org.codehaus.jackson</groupId> <artifactId>jackson-jaxrs</artifactId>
425 <version>1.9.13</version> </dependency> <dependency> <groupId>org.codehaus.jackson</groupId>
426 <artifactId>jackson-mapper-asl</artifactId> <version>1.9.13</version> </dependency>
427 <dependency> <groupId>org.codehaus.jackson</groupId> <artifactId>jackson-core-asl</artifactId>
428 <version>1.9.13</version> </dependency> -->
431 <groupId>com.fasterxml.jackson.jaxrs</groupId>
432 <artifactId>jackson-jaxrs-json-provider</artifactId>
433 <version>2.2.3</version>
437 <groupId>com.fasterxml.jackson.core</groupId>
438 <artifactId>jackson-core</artifactId>
439 <version>2.8.11</version>
443 <groupId>com.fasterxml.jackson.core</groupId>
444 <artifactId>jackson-databind</artifactId>
445 <version>2.8.11.1</version>
448 <groupId>org.grails</groupId>
449 <artifactId>grails-web</artifactId>
450 <version>2.5.4</version>
453 <groupId>org.grails</groupId>
454 <artifactId>grails-web-jsp</artifactId>
459 <groupId>org.codehaus.groovy</groupId>
460 <artifactId>groovy-all</artifactId>
461 <version>2.4.8</version>
462 <scope>compile</scope>
465 <artifactId>jline</artifactId>
466 <groupId>jline</groupId>
472 <groupId>junit</groupId>
473 <artifactId>junit</artifactId>
474 <version>4.11</version>
479 <groupId>org.json</groupId>
480 <artifactId>json</artifactId>
481 <version>20131018</version>
484 <!-- CXF JAX-RS extension -->
486 <groupId>org.apache.cxf</groupId>
487 <artifactId>cxf-rt-rs-extension-providers</artifactId>
488 <version>3.2.2</version>
489 <!-- <exclusions> <exclusion> <groupId>org.apache.cxf</groupId> <artifactId>cxf-rt-transports-http</artifactId>
490 </exclusion> </exclusions> -->
493 <groupId>org.apache.cxf</groupId>
494 <artifactId>cxf-core</artifactId>
498 <!-- <dependency> <groupId>org.apache.cxf</groupId> <artifactId>cxf-rt-transports-http</artifactId>
499 <version>3.1.14</version> </dependency> -->
501 <groupId>org.codehaus.jettison</groupId>
502 <artifactId>jettison</artifactId>
503 <version>1.3.7</version>
506 <!-- <dependency> <groupId>dom4j</groupId> <artifactId>dom4j</artifactId>
507 <version>1.6.1</version> <scope>provided</scope> </dependency> -->
509 <groupId>com.att.ajsc</groupId>
510 <artifactId>ajsc-archetype-parent</artifactId>
511 <version>3.0.10-oss</version>
516 <groupId>org.onap.aaf.authz</groupId>
517 <artifactId>aaf-cadi-aaf</artifactId>
518 <version>2.1.13</version>
521 <groupId>backport-util-concurrent</groupId>
522 <artifactId>backport-util-concurrent</artifactId>
523 <version>3.1</version>
526 <groupId>org.apache.camel</groupId>
527 <artifactId>camel-core</artifactId>
528 <version>${camel.version}</version>
531 <groupId>org.apache.camel</groupId>
532 <artifactId>camel-quartz</artifactId>
533 <version>${camel.version}</version>
536 <groupId>org.apache.camel</groupId>
537 <artifactId>camel-spring</artifactId>
538 <version>${camel.version}</version>
541 <groupId>org.apache.camel</groupId>
542 <artifactId>camel-restlet</artifactId>
543 <version>${camel.version}</version>
546 <artifactId>org.restlet</artifactId>
547 <groupId>org.restlet.jse</groupId>
552 <groupId>org.apache.camel</groupId>
553 <artifactId>camel-servlet</artifactId>
554 <version>${camel.version}</version>
555 <!-- <exclusions> <exclusion> <groupId>commons-httpclient</groupId> <artifactId>commons-httpclient</artifactId>
556 </exclusion> </exclusions> -->
558 <!-- <dependency> <groupId>org.apache.httpcomponents</groupId> <artifactId>httpclient</artifactId>
559 <version>4.0</version> </dependency> -->
562 <groupId>org.apache.camel</groupId>
563 <artifactId>camel-http4</artifactId>
564 <version>${camel.version}</version>
567 <groupId>org.apache.geronimo.specs</groupId>
568 <artifactId>geronimo-servlet_2.5_spec</artifactId>
573 <groupId>org.apache.camel</groupId>
574 <artifactId>camel-groovy</artifactId>
575 <version>${camel.version}</version>
578 <groupId>org.apache.camel</groupId>
579 <artifactId>camel-twitter</artifactId>
580 <version>${camel.version}</version>
583 <groupId>org.apache.camel</groupId>
584 <artifactId>camel-mail</artifactId>
585 <version>${camel.version}</version>
588 <groupId>org.apache.camel</groupId>
589 <artifactId>camel-smpp</artifactId>
590 <version>${camel.version}</version>
593 <groupId>org.apache.camel</groupId>
594 <artifactId>camel-jms</artifactId>
595 <version>${camel.version}</version>
598 <groupId>org.apache.camel</groupId>
599 <artifactId>camel-script</artifactId>
600 <version>${camel.version}</version>
603 <groupId>org.apache.camel</groupId>
604 <artifactId>camel-xmpp</artifactId>
605 <version>${camel.version}</version>
608 <groupId>org.igniterealtime.smack</groupId>
609 <artifactId>smack-tcp</artifactId>
610 <version>4.1.0-rc1</version>
613 <groupId>org.apache.camel</groupId>
614 <artifactId>camel-velocity</artifactId>
615 <version>${camel.version}</version>
618 <groupId>com.att.ajsc</groupId>
619 <artifactId>ajsc-runner</artifactId>
620 <version>3.0.10-oss</version>
621 <scope>runtime</scope>
624 <groupId>com.att.ajsc</groupId>
625 <artifactId>ajsc-core</artifactId>
626 <version>3.0.10-oss</version>
627 <scope>provided</scope>
630 <groupId>org.springframework</groupId>
631 <artifactId>spring-test</artifactId>
632 <version>3.2.12.RELEASE</version>
636 <!-- <build> <resources> <resource> <directory>${basedir}/ajsc-shared-config/etc</directory>
637 </resource> </resources> </build> -->
639 <!-- Use this profile to run the AJSC locally. This profile can be successfully
640 shutdown WITHIN eclipse even in a Windows environment. Debugging is also
641 available with this profile. -->
645 <skip.docker.build>false</skip.docker.build>
646 <skip.docker.tag>false</skip.docker.tag>
647 <skip.docker.push>false</skip.docker.push>
652 <groupId>org.codehaus.groovy.maven</groupId>
653 <artifactId>gmaven-plugin</artifactId>
656 <phase>validate</phase>
662 <ver>${project.version}</ver>
663 <timestamp>${maven.build.timestamp}</timestamp>
666 println project.properties['ver'];
667 if ( project.properties['ver'].endsWith("-SNAPSHOT") ) {
668 project.properties['dockertag1']=project.properties['ver'] + "-latest";
669 project.properties['dockertag2']=project.properties['ver'] + "-" + project.properties['timestamp'];
671 project.properties['dockertag1']=project.properties['ver'] + "-STAGING-latest";
672 project.properties['dockertag2']=project.properties['ver'] + "-STAGING-" + project.properties['timestamp'];
674 println 'docker tag 1: ' + project.properties['dockertag1'];
675 println 'docker tag 2: ' + project.properties['dockertag2'];
682 <groupId>io.fabric8</groupId>
683 <artifactId>docker-maven-plugin</artifactId>
684 <version>0.28.0</version>
686 <verbose>${docker.verbose}</verbose>
687 <apiVersion>${docker.apiVersion}</apiVersion>
688 <pullRegistry>${docker.pull.registry}</pullRegistry>
689 <pushRegistry>${docker.push.registry}</pushRegistry>
692 <name>onap/dmaap/dmaap-mr</name>
694 <cleanup>try</cleanup>
695 <dockerFileDir>${dockerLocation}</dockerFileDir>
696 <dockerFile>Dockerfile</dockerFile>
698 <tag>${dockertag1}</tag>
699 <tag>${dockertag2}</tag>
707 <id>generate-images</id>
708 <phase>install</phase>
715 <phase>deploy</phase>
729 <defaultGoal>initialize</defaultGoal>
732 <groupId>org.apache.maven.plugins</groupId>
733 <artifactId>maven-antrun-plugin</artifactId>
736 <phase>initialize</phase>
738 <target name="runLocal">
739 <ant antfile="${basedir}/antBuild/build.xml" target="runLocal" />
755 <defaultGoal>initialize</defaultGoal>
758 <groupId>org.codehaus.mojo</groupId>
759 <artifactId>exec-maven-plugin</artifactId>
760 <version>1.3.2</version>
763 <phase>initialize</phase>
768 <!-- In order to better mimic a SOA cloud installation of AJSC (and
769 to help eliminate Maven/Eclipse/AJSC classpath issues that may be difficult
770 to diagnose), within this profile used to run locally, we are NOT including
771 project dependencies. These will be loaded by AJSC from $AJSC_HOME/extJars.
772 The only jar needed to run AJSC is the ajsc-runner.jar, and therefore is
773 the only dependency required by this profile to run locally. -->
774 <includeProjectDependencies>false</includeProjectDependencies>
775 <includePluginDependencies>true</includePluginDependencies>
776 <executable>java</executable>
777 <mainClass>com.att.ajsc.runner.Runner</mainClass>
778 <executableDependency>
779 <groupId>com.att.ajsc</groupId>
780 <artifactId>ajsc-runner</artifactId>
781 </executableDependency>
782 <additionalClasspathElements>
783 <additionalClasspathElement>${basedir}/ajsc-shared-config/etc</additionalClasspathElement>
784 </additionalClasspathElements>
786 <environmentVariables>
787 <AJSC_HOME>${runAjscHome}</AJSC_HOME>
788 </environmentVariables>
790 <!-- Main AJSC System Properties below (necessary for proper startup) -->
794 <value>${runAjscHome}</value>
798 <value>${runAjscHome}</value>
801 <key>AJSC_CONF_HOME</key>
802 <value>${basedir}/bundleconfig-local</value>
805 <key>logback.configurationFile</key>
806 <value>${basedir}/ajsc-shared-config/etc/logback.xml</value>
809 <key>com.att.eelf.logging.file</key>
810 <value>logback.xml</value>
813 <key>com.att.eelf.logging.path</key>
814 <value>${basedir}/ajsc-shared-config/etc</value>
817 <key>logging.config</key>
818 <value>${basedir}/ajsc-shared-config/etc/logback.xml</value>
821 <key>AJSC_SHARED_CONFIG</key>
822 <value>${basedir}/ajsc-shared-config</value>
825 <!-- Please, NOTE: The following 2 system properties will normally
826 be set within the sys-props.properties file once deployed to a node. We are
827 setting them HERE to run locally to make more efficient use of maven variable
828 replacement for ${basedir} -->
829 <!-- AJSC_EXTERNAL_LIB_FOLDERS represents the particular jars that
830 will be externalized on a CSI node. This includes dme2 and csm related artifact. -->
832 <key>AJSC_EXTERNAL_LIB_FOLDERS</key>
833 <value>${basedir}/target/commonLibs</value>
835 <!-- AJSC_EXTERNAL_PROPERTIES_FOLDERS represents the particular
836 files that may need to be added to the classpath. These files will be externalized
837 on a CSI node. This includes dme2 and csm related artifact (such as csm-config-app.properties).
838 Failure to have these files on the classpath may result in errors thrown
839 by csm framework. -->
841 <key>AJSC_EXTERNAL_PROPERTIES_FOLDERS</key>
842 <value>${basedir}/ajsc-shared-config/etc</value>
846 <key>AJSC_SERVICE_NAMESPACE</key>
847 <value>${module.ajsc.namespace.name}</value>
850 <key>AJSC_SERVICE_VERSION</key>
851 <value>${module.ajsc.namespace.version}</value>
854 <key>SOACLOUD_SERVICE_VERSION</key>
855 <value>${project.version}</value>
858 <key>server.port</key>
859 <value>${serverPort}</value>
863 <!-- Command Line Arguments to add to the java command. Here, you
864 can specify the port as well as the Context you want your service to run
865 in. Use context=/ to run in an unnamed Context (Root Context). The default
866 configuration of the AJSC is to run under the / Context. Setting the port
867 here can aid during the development phase of your service. However, you can
868 leave this argument out entirely, and the AJSC will default to using an Ephemeral
871 <argument>context=/</argument>
872 <argument>port=${serverPort}</argument>
873 <argument>sslport=${sslport}</argument>
879 <executable>java</executable>
883 <groupId>com.att.ajsc</groupId>
884 <artifactId>ajsc-runner</artifactId>
885 <version>${ajscRuntimeVersion}</version>
894 <id>standardbuild</id>
903 <directory>src/main/resources</directory>
905 <exclude>extApps/*.*</exclude>
906 <exclude>${module.ajsc.namespace.name}/**</exclude>
910 <directory>src/main/ajsc/\${namespace}_${namespaceVersion}/\${namespace}/\${namespaceVersion}</directory>
912 <exclude>**/*.route</exclude>
913 <exclude>**/*.props</exclude>
914 <exclude>**/*.xslt</exclude>
915 <exclude>**/*.vm</exclude>
916 <exclude>**/*.jar</exclude>
917 <exclude>**/*.xml</exclude>
923 <groupId>org.apache.maven.plugins</groupId>
924 <artifactId>maven-compiler-plugin</artifactId>
925 <version>3.1</version>
928 <groupId>org.codehaus.groovy</groupId>
929 <artifactId>groovy-eclipse-compiler</artifactId>
930 <version>2.8.0-01</version>
931 <extensions>true</extensions>
935 <groupId>org.codehaus.mojo</groupId>
936 <artifactId>exec-maven-plugin</artifactId>
937 <version>1.2.1</version>
946 <executable>bash</executable>
948 <argument>runServer.sh</argument>
953 <groupId>org.codehaus.mojo</groupId>
954 <artifactId>build-helper-maven-plugin</artifactId>
955 <version>1.9</version>
958 <id>add-source-groovy-ajsc-arch-parent</id>
959 <phase>generate-sources</phase>
961 <goal>add-source</goal>
965 <source>src/main/groovy</source>
970 <id>add-test-source-groovy-ajsc-arch-parent</id>
971 <phase>generate-test-sources</phase>
973 <goal>add-test-source</goal>
977 <source>src/test/groovy</source>
982 <id>regex-properties-ajsc-arch-parent</id>
983 <phase>initialize</phase>
985 <goal>regex-properties</goal>
988 <regexPropertySettings>
989 <regexPropertySetting>
990 <name>replaceWinFilePath</name>
991 <value>${runAjscHome}</value>
993 <replacement>/</replacement>
994 <failIfNoMatch>false</failIfNoMatch>
995 </regexPropertySetting>
996 <regexPropertySetting>
997 <name>replaceWinBasedirPath</name>
998 <value>${basedir}</value>
1000 <replacement>/</replacement>
1001 <failIfNoMatch>false</failIfNoMatch>
1002 </regexPropertySetting>
1003 </regexPropertySettings>
1009 <groupId>org.codehaus.mojo</groupId>
1010 <artifactId>properties-maven-plugin</artifactId>
1011 <version>1.0-alpha-2</version>
1014 <id>write-project-properties-ajsc-arch-parent</id>
1015 <phase>generate-resources</phase>
1017 <goal>write-project-properties</goal>
1021 ${project.build.outputDirectory}/build.properties
1028 <groupId>org.apache.maven.plugins</groupId>
1029 <artifactId>maven-assembly-plugin</artifactId>
1030 <version>2.4</version>
1033 <id>make-assembly-ajsc-arch-parent</id>
1034 <phase>package</phase>
1041 <finalName>${project.artifactId}</finalName>
1043 <descriptor>src/main/assemble/ajsc_runtime_assembly.xml</descriptor>
1048 <groupId>org.codehaus.groovy.maven</groupId>
1049 <artifactId>gmaven-plugin</artifactId>
1050 <version>1.0</version>
1053 <id>gmaven-ajsc-arch-parent</id>
1054 <phase>package</phase>
1056 <goal>execute</goal>
1059 <sourcepath>src/main/groovy</sourcepath>
1061 import ajsc.AssemblyService;
1062 ajsc.AssemblyService.getBasedir(project.basedir.getAbsolutePath(),"${distFilesRoot}")
1069 <groupId>org.apache.maven.plugins</groupId>
1070 <artifactId>maven-antrun-plugin</artifactId>
1071 <version>1.7</version>
1074 <id>prep_service_runtime-ajsc-arch-parent</id>
1075 <phase>generate-resources</phase>
1077 <target name="prep_service_runtime">
1078 <echo message="ENTERING 'copy_services_template' ant tasks" />
1079 <!-- <filter token="basedir" value="${basedir}" /> -->
1080 <!-- delete any prior stating stuff before package phase -->
1081 <delete dir="target/versioned-ajsc" includes="**/*" />
1082 <delete dir="target/versioned-runtime" includes="**/*" />
1083 <delete dir="target/CDP" includes="**/*" />
1085 <!-- This is where replacer plugin replaces tokens (Example: __module_ajsc_namespace_name__
1086 is replaced by module.ajsc.namespace.name) -->
1087 <copy todir="target/versioned-ajsc">
1088 <fileset dir="src/main/ajsc" includes="**/*" />
1091 <!-- Copying the CDP, bundleconfig, and StaticContent to the target
1092 directory for future use by replacer plugin -->
1093 <copy todir="target/CDP" failonerror="false">
1094 <fileset dir="CDP" includes="**/*.sh" />
1096 <copy flatten="true" file="CDP/SampleBlueprint.xml"
1098 tofile="target/CDP/${module.ajsc.namespace.name}Blueprint.xml" />
1099 <copy todir="target/staticContent" failonerror="false">
1100 <fileset dir="staticContent" includes="**/*" />
1102 <copy todir="target/bundleconfig" failonerror="false">
1103 <!-- filtering="true"> -->
1104 <fileset dir="bundleconfig" />
1107 <echo message="EXITING 'copy_services_template' ant tasks" />
1108 <echo message="ENTERING 'copy_runtime_template' ant tasks" />
1109 <copy todir="target/versioned-runtime">
1110 <fileset dir="src/main/runtime" includes="**/*" />
1113 file="target/versioned-runtime/context/__module.ajsc.namespace.name__#__module.ajsc.namespace.version__.context" />
1114 <copy flatten="true"
1115 file="src/main/runtime/context/__module.ajsc.namespace.name__#__module.ajsc.namespace.version__.context"
1116 tofile="target/versioned-runtime/context/${module.ajsc.namespace.name}#${module.ajsc.namespace.version}.context" />
1118 file="target/versioned-runtime/deploymentPackage/__module.ajsc.namespace.name__#__module.ajsc.namespace.version__.json" />
1119 <copy flatten="true"
1120 file="src/main/runtime/deploymentPackage/__module.ajsc.namespace.name__#__module.ajsc.namespace.version__.json"
1121 tofile="target/versioned-runtime/deploymentPackage/${module.ajsc.namespace.name}#${module.ajsc.namespace.version}.json" />
1123 file="target/versioned-runtime/shiroRole/contextadmin#__module.ajsc.namespace.name__.json" />
1124 <copy flatten="true"
1125 file="src/main/runtime/shiroRole/contextadmin#__module.ajsc.namespace.name__.json"
1126 tofile="target/versioned-runtime/shiroRole/contextadmin#${module.ajsc.namespace.name}.json" />
1128 file="target/versioned-runtime/shiroUserRole/ajsc#contextAdmin#__module.ajsc.namespace.name__.json" />
1129 <copy flatten="true"
1130 file="src/main/runtime/shiroUserRole/ajsc#contextadmin#__module.ajsc.namespace.name__.json"
1131 tofile="target/versioned-runtime/shiroUserRole/ajsc#contextadmin#${module.ajsc.namespace.name}.json" />
1132 <echo message="EXITING 'copy_runtime_template' ant tasks" />
1141 <phase>package</phase>
1145 srcdir="${basedir}/target/swm/package/nix/dist_files${distFilesRoot}"
1146 includes="**/*.sh,**/*.xml,**/*.properties,**/*.xsd" />
1154 <id>prep_home_directory_for_swm_pkgcreate-ajsc-arch-parent</id>
1155 <phase>package</phase>
1157 <target name="prep_home_directory_for_swm_pkgcreate">
1158 <ant antfile="${basedir}/antBuild/build.xml" target="prep_home_directory_for_swm_pkgcreate" />
1168 <groupId>org.apache.maven.plugins</groupId>
1169 <artifactId>maven-dependency-plugin</artifactId>
1170 <version>2.8</version>
1173 <id>copy-dependencies-ajsc-arch-parent</id>
1174 <phase>prepare-package</phase>
1176 <goal>copy-dependencies</goal>
1179 <includeScope>runtime</includeScope>
1180 <excludeArtifactIds>ajsc-bom,ajsc-core,ajsc-runner,ajsc-war</excludeArtifactIds>
1181 <outputDirectory>${project.build.directory}/userjars</outputDirectory>
1182 <silent>true</silent>
1186 <id>copy-dependencies-ajsc-arch-parent-commonLibs</id>
1187 <phase>prepare-package</phase>
1189 <goal>copy-dependencies</goal>
1192 <includeScope>provided</includeScope>
1193 <includeGroupIds>net.cingular.enterprise,com.att.aft,dom4j</includeGroupIds>
1194 <!-- <includeGroupIds>com.att.aft</includeGroupIds> -->
1195 <outputDirectory>${project.build.directory}/commonLibs</outputDirectory>
1196 <silent>true</silent>
1201 <phase>prepare-package</phase>
1203 <goal>copy-dependencies</goal>
1206 <includeArtifactIds>ajsc-runner</includeArtifactIds>
1207 <outputDirectory>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}/lib</outputDirectory>
1213 <artifactId>maven-resources-plugin</artifactId>
1214 <version>2.7</version>
1218 <phase>package</phase>
1220 <goal>copy-resources</goal>
1223 <outputDirectory>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}/etc</outputDirectory>
1226 <directory>src/main/config</directory>
1233 <phase>package</phase>
1235 <goal>copy-resources</goal>
1238 <outputDirectory>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}/bin</outputDirectory>
1241 <directory>src/main/scripts</directory>
1247 <id>copy-docker-file</id>
1248 <phase>prepare-package</phase>
1250 <goal>copy-resources</goal>
1253 <outputDirectory>${dockerLocation}</outputDirectory>
1254 <overwrite>true</overwrite>
1257 <directory>${basedir}/src/main/resources/docker</directory>
1258 <filtering>true</filtering>
1260 <include>**/*</include>
1271 <groupId>com.google.code.maven-replacer-plugin</groupId>
1272 <artifactId>replacer</artifactId>
1273 <version>1.5.2</version>
1276 <id>google-replacer-ajsc-arch-parent</id>
1277 <phase>prepare-package</phase>
1279 <goal>replace</goal>
1282 <basedir>${project.build.directory}</basedir>
1284 <include>staticContent/**/*.html</include>
1285 <include>CDP/**</include>
1286 <include>bundleconfig/**</include>
1287 <include>versioned-runtime/**/*.context</include>
1288 <include>versioned-runtime/**/*.json</include>
1289 <include>versioned-ajsc/**/*.route</include>
1290 <include>versioned-ajsc/**/*.groovy</include>
1291 <include>versioned-ajsc/**/*.xml</include>
1292 <include>classes/*.properties</include>
1293 <include>swm/package/nix/dist_files${distFilesRoot}/etc/*.properties</include>
1295 <escape>true</escape>
1298 <token>__module_ajsc_namespace_name__</token>
1299 <value>${module.ajsc.namespace.name}</value>
1302 <token>__module_ajsc_namespace_version__</token>
1303 <value>${module.ajsc.namespace.version}</value>
1306 <token>__ajscHome__</token>
1307 <value>${replaceWinFilePath}</value>
1310 <token>__projectGroupId__</token>
1311 <value>${project.groupId}</value>
1314 <token>__projectArtifactId__</token>
1315 <value>${project.artifactId}</value>
1318 <token>__projectVersion__</token>
1319 <value>${project.version}</value>
1322 <token>__basedir__</token>
1323 <value>${replaceWinBasedirPath}</value>
1334 <groupId>org.apache.maven.plugins</groupId>
1335 <artifactId>maven-surefire-plugin</artifactId>
1336 <version>2.14.1</version>
1339 <exclude>**/AbstractTest.java</exclude>