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>2.0.0</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.5</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>commons-fileupload</groupId>
338 <artifactId>commons-fileupload</artifactId>
339 <version>1.4</version>
342 <groupId>org.springframework</groupId>
343 <artifactId>spring-webmvc</artifactId>
344 <version>4.3.18.RELEASE</version>
347 <groupId>org.springframework</groupId>
348 <artifactId>spring-core</artifactId>
349 <version>4.3.18.RELEASE</version>
352 <groupId>org.springframework</groupId>
353 <artifactId>spring-beans</artifactId>
354 <version>4.3.18.RELEASE</version>
358 <groupId>org.springframework</groupId>
359 <artifactId>spring-context</artifactId>
360 <version>4.3.18.RELEASE</version>
363 <groupId>commons-io</groupId>
364 <artifactId>commons-io</artifactId>
365 <version>2.4</version>
368 <groupId>org.apache.commons</groupId>
369 <artifactId>commons-io</artifactId>
370 <version>1.3.2</version>
373 <groupId>org.onap.dmaap.messagerouter.msgrtr</groupId>
374 <artifactId>msgrtr</artifactId>
375 <version>1.1.17</version>
378 <groupId>org.slf4j</groupId>
379 <artifactId>slf4j-log4j12</artifactId>
382 <groupId>com.att.ajsc</groupId>
383 <artifactId>ajsc-core</artifactId>
386 <groupId>org.apache.tomcat</groupId>
387 <artifactId>tomcat-catalina</artifactId>
391 <groupId>org.apache.tomcat.embed</groupId>
392 <artifactId>tomcat-embed-core</artifactId>
395 <groupId>org.apache.tomcat</groupId>
396 <artifactId>tomcat-util</artifactId>
398 <!-- <exclusion> <groupId>com.att.nsa</groupId> <artifactId>saToolkit</artifactId>
401 <groupId>com.att.nsa</groupId>
402 <artifactId>tomcat-util</artifactId>
406 <groupId>commons-beanutils</groupId>
407 <artifactId>commons-beanutils</artifactId>
412 <groupId>org.mockito</groupId>
413 <artifactId>mockito-core</artifactId>
414 <version>1.10.19</version>
418 <groupId>org.powermock</groupId>
419 <artifactId>powermock-module-junit4</artifactId>
420 <version>1.6.4</version>
424 <groupId>org.powermock</groupId>
425 <artifactId>powermock-api-mockito</artifactId>
426 <version>1.6.4</version>
429 <!-- <dependency> <groupId>org.codehaus.jackson</groupId> <artifactId>jackson-jaxrs</artifactId>
430 <version>1.9.13</version> </dependency> <dependency> <groupId>org.codehaus.jackson</groupId>
431 <artifactId>jackson-mapper-asl</artifactId> <version>1.9.13</version> </dependency>
432 <dependency> <groupId>org.codehaus.jackson</groupId> <artifactId>jackson-core-asl</artifactId>
433 <version>1.9.13</version> </dependency> -->
436 <groupId>com.fasterxml.jackson.jaxrs</groupId>
437 <artifactId>jackson-jaxrs-json-provider</artifactId>
438 <version>2.2.3</version>
442 <groupId>com.fasterxml.jackson.core</groupId>
443 <artifactId>jackson-core</artifactId>
444 <version>2.8.11</version>
448 <groupId>com.fasterxml.jackson.core</groupId>
449 <artifactId>jackson-databind</artifactId>
450 <version>2.8.11.1</version>
453 <groupId>org.grails</groupId>
454 <artifactId>grails-web</artifactId>
455 <version>2.5.4</version>
458 <groupId>org.grails</groupId>
459 <artifactId>grails-web-jsp</artifactId>
464 <groupId>org.codehaus.groovy</groupId>
465 <artifactId>groovy-all</artifactId>
466 <version>2.4.8</version>
467 <scope>compile</scope>
470 <artifactId>jline</artifactId>
471 <groupId>jline</groupId>
477 <groupId>junit</groupId>
478 <artifactId>junit</artifactId>
479 <version>4.11</version>
484 <groupId>org.json</groupId>
485 <artifactId>json</artifactId>
486 <version>20131018</version>
489 <!-- CXF JAX-RS extension -->
491 <groupId>org.apache.cxf</groupId>
492 <artifactId>cxf-rt-rs-extension-providers</artifactId>
493 <version>3.2.2</version>
494 <!-- <exclusions> <exclusion> <groupId>org.apache.cxf</groupId> <artifactId>cxf-rt-transports-http</artifactId>
495 </exclusion> </exclusions> -->
498 <groupId>org.apache.cxf</groupId>
499 <artifactId>cxf-core</artifactId>
503 <!-- <dependency> <groupId>org.apache.cxf</groupId> <artifactId>cxf-rt-transports-http</artifactId>
504 <version>3.1.14</version> </dependency> -->
506 <groupId>org.codehaus.jettison</groupId>
507 <artifactId>jettison</artifactId>
508 <version>1.3.7</version>
511 <!-- <dependency> <groupId>dom4j</groupId> <artifactId>dom4j</artifactId>
512 <version>1.6.1</version> <scope>provided</scope> </dependency> -->
514 <groupId>com.att.ajsc</groupId>
515 <artifactId>ajsc-archetype-parent</artifactId>
516 <version>3.0.10-oss</version>
521 <groupId>org.onap.aaf.authz</groupId>
522 <artifactId>aaf-cadi-aaf</artifactId>
523 <version>2.1.13</version>
526 <groupId>backport-util-concurrent</groupId>
527 <artifactId>backport-util-concurrent</artifactId>
528 <version>3.1</version>
531 <groupId>org.apache.camel</groupId>
532 <artifactId>camel-core</artifactId>
533 <version>${camel.version}</version>
536 <groupId>org.apache.camel</groupId>
537 <artifactId>camel-quartz</artifactId>
538 <version>${camel.version}</version>
541 <groupId>org.apache.camel</groupId>
542 <artifactId>camel-spring</artifactId>
543 <version>${camel.version}</version>
546 <groupId>org.apache.camel</groupId>
547 <artifactId>camel-restlet</artifactId>
548 <version>${camel.version}</version>
551 <artifactId>org.restlet</artifactId>
552 <groupId>org.restlet.jse</groupId>
557 <groupId>org.apache.camel</groupId>
558 <artifactId>camel-servlet</artifactId>
559 <version>${camel.version}</version>
560 <!-- <exclusions> <exclusion> <groupId>commons-httpclient</groupId> <artifactId>commons-httpclient</artifactId>
561 </exclusion> </exclusions> -->
563 <!-- <dependency> <groupId>org.apache.httpcomponents</groupId> <artifactId>httpclient</artifactId>
564 <version>4.0</version> </dependency> -->
567 <groupId>org.apache.camel</groupId>
568 <artifactId>camel-http4</artifactId>
569 <version>${camel.version}</version>
572 <groupId>org.apache.geronimo.specs</groupId>
573 <artifactId>geronimo-servlet_2.5_spec</artifactId>
578 <groupId>org.apache.camel</groupId>
579 <artifactId>camel-groovy</artifactId>
580 <version>${camel.version}</version>
583 <groupId>org.apache.camel</groupId>
584 <artifactId>camel-twitter</artifactId>
585 <version>${camel.version}</version>
588 <groupId>org.apache.camel</groupId>
589 <artifactId>camel-mail</artifactId>
590 <version>${camel.version}</version>
593 <groupId>org.apache.camel</groupId>
594 <artifactId>camel-smpp</artifactId>
595 <version>${camel.version}</version>
598 <groupId>org.apache.camel</groupId>
599 <artifactId>camel-jms</artifactId>
600 <version>${camel.version}</version>
603 <groupId>org.apache.camel</groupId>
604 <artifactId>camel-script</artifactId>
605 <version>${camel.version}</version>
608 <groupId>org.apache.camel</groupId>
609 <artifactId>camel-xmpp</artifactId>
610 <version>${camel.version}</version>
613 <groupId>org.igniterealtime.smack</groupId>
614 <artifactId>smack-tcp</artifactId>
615 <version>4.1.0-rc1</version>
618 <groupId>org.apache.camel</groupId>
619 <artifactId>camel-velocity</artifactId>
620 <version>${camel.version}</version>
623 <groupId>com.att.ajsc</groupId>
624 <artifactId>ajsc-runner</artifactId>
625 <version>3.0.10-oss</version>
626 <scope>runtime</scope>
629 <groupId>com.att.ajsc</groupId>
630 <artifactId>ajsc-core</artifactId>
631 <version>3.0.10-oss</version>
632 <scope>provided</scope>
635 <groupId>org.springframework</groupId>
636 <artifactId>spring-test</artifactId>
637 <version>3.2.12.RELEASE</version>
641 <!-- <build> <resources> <resource> <directory>${basedir}/ajsc-shared-config/etc</directory>
642 </resource> </resources> </build> -->
644 <!-- Use this profile to run the AJSC locally. This profile can be successfully
645 shutdown WITHIN eclipse even in a Windows environment. Debugging is also
646 available with this profile. -->
650 <skip.docker.build>false</skip.docker.build>
651 <skip.docker.tag>false</skip.docker.tag>
652 <skip.docker.push>false</skip.docker.push>
657 <groupId>org.codehaus.groovy.maven</groupId>
658 <artifactId>gmaven-plugin</artifactId>
661 <phase>validate</phase>
667 <ver>${project.version}</ver>
668 <timestamp>${maven.build.timestamp}</timestamp>
671 println project.properties['ver'];
672 if ( project.properties['ver'].endsWith("-SNAPSHOT") ) {
673 project.properties['dockertag1']=project.properties['ver'] + "-latest";
674 project.properties['dockertag2']=project.properties['ver'] + "-" + project.properties['timestamp'];
676 project.properties['dockertag1']=project.properties['ver'] + "-STAGING-latest";
677 project.properties['dockertag2']=project.properties['ver'] + "-STAGING-" + project.properties['timestamp'];
679 println 'docker tag 1: ' + project.properties['dockertag1'];
680 println 'docker tag 2: ' + project.properties['dockertag2'];
687 <groupId>io.fabric8</groupId>
688 <artifactId>docker-maven-plugin</artifactId>
689 <version>0.28.0</version>
691 <verbose>${docker.verbose}</verbose>
692 <apiVersion>${docker.apiVersion}</apiVersion>
693 <pullRegistry>${docker.pull.registry}</pullRegistry>
694 <pushRegistry>${docker.push.registry}</pushRegistry>
697 <name>onap/dmaap/dmaap-mr</name>
699 <cleanup>try</cleanup>
700 <dockerFileDir>${dockerLocation}</dockerFileDir>
701 <dockerFile>Dockerfile</dockerFile>
703 <tag>${dockertag1}</tag>
704 <tag>${dockertag2}</tag>
712 <id>generate-images</id>
713 <phase>install</phase>
720 <phase>deploy</phase>
734 <defaultGoal>initialize</defaultGoal>
737 <groupId>org.apache.maven.plugins</groupId>
738 <artifactId>maven-antrun-plugin</artifactId>
741 <phase>initialize</phase>
743 <target name="runLocal">
744 <ant antfile="${basedir}/antBuild/build.xml" target="runLocal" />
760 <defaultGoal>initialize</defaultGoal>
763 <groupId>org.codehaus.mojo</groupId>
764 <artifactId>exec-maven-plugin</artifactId>
765 <version>1.3.2</version>
768 <phase>initialize</phase>
773 <!-- In order to better mimic a SOA cloud installation of AJSC (and
774 to help eliminate Maven/Eclipse/AJSC classpath issues that may be difficult
775 to diagnose), within this profile used to run locally, we are NOT including
776 project dependencies. These will be loaded by AJSC from $AJSC_HOME/extJars.
777 The only jar needed to run AJSC is the ajsc-runner.jar, and therefore is
778 the only dependency required by this profile to run locally. -->
779 <includeProjectDependencies>false</includeProjectDependencies>
780 <includePluginDependencies>true</includePluginDependencies>
781 <executable>java</executable>
782 <mainClass>com.att.ajsc.runner.Runner</mainClass>
783 <executableDependency>
784 <groupId>com.att.ajsc</groupId>
785 <artifactId>ajsc-runner</artifactId>
786 </executableDependency>
787 <additionalClasspathElements>
788 <additionalClasspathElement>${basedir}/ajsc-shared-config/etc</additionalClasspathElement>
789 </additionalClasspathElements>
791 <environmentVariables>
792 <AJSC_HOME>${runAjscHome}</AJSC_HOME>
793 </environmentVariables>
795 <!-- Main AJSC System Properties below (necessary for proper startup) -->
799 <value>${runAjscHome}</value>
803 <value>${runAjscHome}</value>
806 <key>AJSC_CONF_HOME</key>
807 <value>${basedir}/bundleconfig-local</value>
810 <key>logback.configurationFile</key>
811 <value>${basedir}/ajsc-shared-config/etc/logback.xml</value>
814 <key>com.att.eelf.logging.file</key>
815 <value>logback.xml</value>
818 <key>com.att.eelf.logging.path</key>
819 <value>${basedir}/ajsc-shared-config/etc</value>
822 <key>logging.config</key>
823 <value>${basedir}/ajsc-shared-config/etc/logback.xml</value>
826 <key>AJSC_SHARED_CONFIG</key>
827 <value>${basedir}/ajsc-shared-config</value>
830 <!-- Please, NOTE: The following 2 system properties will normally
831 be set within the sys-props.properties file once deployed to a node. We are
832 setting them HERE to run locally to make more efficient use of maven variable
833 replacement for ${basedir} -->
834 <!-- AJSC_EXTERNAL_LIB_FOLDERS represents the particular jars that
835 will be externalized on a CSI node. This includes dme2 and csm related artifact. -->
837 <key>AJSC_EXTERNAL_LIB_FOLDERS</key>
838 <value>${basedir}/target/commonLibs</value>
840 <!-- AJSC_EXTERNAL_PROPERTIES_FOLDERS represents the particular
841 files that may need to be added to the classpath. These files will be externalized
842 on a CSI node. This includes dme2 and csm related artifact (such as csm-config-app.properties).
843 Failure to have these files on the classpath may result in errors thrown
844 by csm framework. -->
846 <key>AJSC_EXTERNAL_PROPERTIES_FOLDERS</key>
847 <value>${basedir}/ajsc-shared-config/etc</value>
851 <key>AJSC_SERVICE_NAMESPACE</key>
852 <value>${module.ajsc.namespace.name}</value>
855 <key>AJSC_SERVICE_VERSION</key>
856 <value>${module.ajsc.namespace.version}</value>
859 <key>SOACLOUD_SERVICE_VERSION</key>
860 <value>${project.version}</value>
863 <key>server.port</key>
864 <value>${serverPort}</value>
868 <!-- Command Line Arguments to add to the java command. Here, you
869 can specify the port as well as the Context you want your service to run
870 in. Use context=/ to run in an unnamed Context (Root Context). The default
871 configuration of the AJSC is to run under the / Context. Setting the port
872 here can aid during the development phase of your service. However, you can
873 leave this argument out entirely, and the AJSC will default to using an Ephemeral
876 <argument>context=/</argument>
877 <argument>port=${serverPort}</argument>
878 <argument>sslport=${sslport}</argument>
884 <executable>java</executable>
888 <groupId>com.att.ajsc</groupId>
889 <artifactId>ajsc-runner</artifactId>
890 <version>${ajscRuntimeVersion}</version>
899 <id>standardbuild</id>
908 <directory>src/main/resources</directory>
910 <exclude>extApps/*.*</exclude>
911 <exclude>${module.ajsc.namespace.name}/**</exclude>
915 <directory>src/main/ajsc/\${namespace}_${namespaceVersion}/\${namespace}/\${namespaceVersion}</directory>
917 <exclude>**/*.route</exclude>
918 <exclude>**/*.props</exclude>
919 <exclude>**/*.xslt</exclude>
920 <exclude>**/*.vm</exclude>
921 <exclude>**/*.jar</exclude>
922 <exclude>**/*.xml</exclude>
928 <groupId>org.apache.maven.plugins</groupId>
929 <artifactId>maven-compiler-plugin</artifactId>
930 <version>3.1</version>
933 <groupId>org.codehaus.groovy</groupId>
934 <artifactId>groovy-eclipse-compiler</artifactId>
935 <version>2.8.0-01</version>
936 <extensions>true</extensions>
940 <groupId>org.codehaus.mojo</groupId>
941 <artifactId>exec-maven-plugin</artifactId>
942 <version>1.2.1</version>
951 <executable>bash</executable>
953 <argument>runServer.sh</argument>
958 <groupId>org.codehaus.mojo</groupId>
959 <artifactId>build-helper-maven-plugin</artifactId>
960 <version>1.9</version>
963 <id>add-source-groovy-ajsc-arch-parent</id>
964 <phase>generate-sources</phase>
966 <goal>add-source</goal>
970 <source>src/main/groovy</source>
975 <id>add-test-source-groovy-ajsc-arch-parent</id>
976 <phase>generate-test-sources</phase>
978 <goal>add-test-source</goal>
982 <source>src/test/groovy</source>
987 <id>regex-properties-ajsc-arch-parent</id>
988 <phase>initialize</phase>
990 <goal>regex-properties</goal>
993 <regexPropertySettings>
994 <regexPropertySetting>
995 <name>replaceWinFilePath</name>
996 <value>${runAjscHome}</value>
998 <replacement>/</replacement>
999 <failIfNoMatch>false</failIfNoMatch>
1000 </regexPropertySetting>
1001 <regexPropertySetting>
1002 <name>replaceWinBasedirPath</name>
1003 <value>${basedir}</value>
1005 <replacement>/</replacement>
1006 <failIfNoMatch>false</failIfNoMatch>
1007 </regexPropertySetting>
1008 </regexPropertySettings>
1014 <groupId>org.codehaus.mojo</groupId>
1015 <artifactId>properties-maven-plugin</artifactId>
1016 <version>1.0-alpha-2</version>
1019 <id>write-project-properties-ajsc-arch-parent</id>
1020 <phase>generate-resources</phase>
1022 <goal>write-project-properties</goal>
1026 ${project.build.outputDirectory}/build.properties
1033 <groupId>org.apache.maven.plugins</groupId>
1034 <artifactId>maven-assembly-plugin</artifactId>
1035 <version>2.4</version>
1038 <id>make-assembly-ajsc-arch-parent</id>
1039 <phase>package</phase>
1046 <finalName>${project.artifactId}</finalName>
1048 <descriptor>src/main/assemble/ajsc_runtime_assembly.xml</descriptor>
1053 <groupId>org.codehaus.groovy.maven</groupId>
1054 <artifactId>gmaven-plugin</artifactId>
1055 <version>1.0</version>
1058 <id>gmaven-ajsc-arch-parent</id>
1059 <phase>package</phase>
1061 <goal>execute</goal>
1064 <sourcepath>src/main/groovy</sourcepath>
1066 import ajsc.AssemblyService;
1067 ajsc.AssemblyService.getBasedir(project.basedir.getAbsolutePath(),"${distFilesRoot}")
1074 <groupId>org.apache.maven.plugins</groupId>
1075 <artifactId>maven-antrun-plugin</artifactId>
1076 <version>1.7</version>
1079 <id>prep_service_runtime-ajsc-arch-parent</id>
1080 <phase>generate-resources</phase>
1082 <target name="prep_service_runtime">
1083 <echo message="ENTERING 'copy_services_template' ant tasks" />
1084 <!-- <filter token="basedir" value="${basedir}" /> -->
1085 <!-- delete any prior stating stuff before package phase -->
1086 <delete dir="target/versioned-ajsc" includes="**/*" />
1087 <delete dir="target/versioned-runtime" includes="**/*" />
1088 <delete dir="target/CDP" includes="**/*" />
1090 <!-- This is where replacer plugin replaces tokens (Example: __module_ajsc_namespace_name__
1091 is replaced by module.ajsc.namespace.name) -->
1092 <copy todir="target/versioned-ajsc">
1093 <fileset dir="src/main/ajsc" includes="**/*" />
1096 <!-- Copying the CDP, bundleconfig, and StaticContent to the target
1097 directory for future use by replacer plugin -->
1098 <copy todir="target/CDP" failonerror="false">
1099 <fileset dir="CDP" includes="**/*.sh" />
1101 <copy flatten="true" file="CDP/SampleBlueprint.xml"
1103 tofile="target/CDP/${module.ajsc.namespace.name}Blueprint.xml" />
1104 <copy todir="target/staticContent" failonerror="false">
1105 <fileset dir="staticContent" includes="**/*" />
1107 <copy todir="target/bundleconfig" failonerror="false">
1108 <!-- filtering="true"> -->
1109 <fileset dir="bundleconfig" />
1112 <echo message="EXITING 'copy_services_template' ant tasks" />
1113 <echo message="ENTERING 'copy_runtime_template' ant tasks" />
1114 <copy todir="target/versioned-runtime">
1115 <fileset dir="src/main/runtime" includes="**/*" />
1118 file="target/versioned-runtime/context/__module.ajsc.namespace.name__#__module.ajsc.namespace.version__.context" />
1119 <copy flatten="true"
1120 file="src/main/runtime/context/__module.ajsc.namespace.name__#__module.ajsc.namespace.version__.context"
1121 tofile="target/versioned-runtime/context/${module.ajsc.namespace.name}#${module.ajsc.namespace.version}.context" />
1123 file="target/versioned-runtime/deploymentPackage/__module.ajsc.namespace.name__#__module.ajsc.namespace.version__.json" />
1124 <copy flatten="true"
1125 file="src/main/runtime/deploymentPackage/__module.ajsc.namespace.name__#__module.ajsc.namespace.version__.json"
1126 tofile="target/versioned-runtime/deploymentPackage/${module.ajsc.namespace.name}#${module.ajsc.namespace.version}.json" />
1128 file="target/versioned-runtime/shiroRole/contextadmin#__module.ajsc.namespace.name__.json" />
1129 <copy flatten="true"
1130 file="src/main/runtime/shiroRole/contextadmin#__module.ajsc.namespace.name__.json"
1131 tofile="target/versioned-runtime/shiroRole/contextadmin#${module.ajsc.namespace.name}.json" />
1133 file="target/versioned-runtime/shiroUserRole/ajsc#contextAdmin#__module.ajsc.namespace.name__.json" />
1134 <copy flatten="true"
1135 file="src/main/runtime/shiroUserRole/ajsc#contextadmin#__module.ajsc.namespace.name__.json"
1136 tofile="target/versioned-runtime/shiroUserRole/ajsc#contextadmin#${module.ajsc.namespace.name}.json" />
1137 <echo message="EXITING 'copy_runtime_template' ant tasks" />
1146 <phase>package</phase>
1150 srcdir="${basedir}/target/swm/package/nix/dist_files${distFilesRoot}"
1151 includes="**/*.sh,**/*.xml,**/*.properties,**/*.xsd" />
1159 <id>prep_home_directory_for_swm_pkgcreate-ajsc-arch-parent</id>
1160 <phase>package</phase>
1162 <target name="prep_home_directory_for_swm_pkgcreate">
1163 <ant antfile="${basedir}/antBuild/build.xml" target="prep_home_directory_for_swm_pkgcreate" />
1173 <groupId>org.apache.maven.plugins</groupId>
1174 <artifactId>maven-dependency-plugin</artifactId>
1175 <version>2.8</version>
1178 <id>copy-dependencies-ajsc-arch-parent</id>
1179 <phase>prepare-package</phase>
1181 <goal>copy-dependencies</goal>
1184 <includeScope>runtime</includeScope>
1185 <excludeArtifactIds>ajsc-bom,ajsc-core,ajsc-runner,ajsc-war</excludeArtifactIds>
1186 <outputDirectory>${project.build.directory}/userjars</outputDirectory>
1187 <silent>true</silent>
1191 <id>copy-dependencies-ajsc-arch-parent-commonLibs</id>
1192 <phase>prepare-package</phase>
1194 <goal>copy-dependencies</goal>
1197 <includeScope>provided</includeScope>
1198 <includeGroupIds>net.cingular.enterprise,com.att.aft,dom4j</includeGroupIds>
1199 <!-- <includeGroupIds>com.att.aft</includeGroupIds> -->
1200 <outputDirectory>${project.build.directory}/commonLibs</outputDirectory>
1201 <silent>true</silent>
1206 <phase>prepare-package</phase>
1208 <goal>copy-dependencies</goal>
1211 <includeArtifactIds>ajsc-runner</includeArtifactIds>
1212 <outputDirectory>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}/lib</outputDirectory>
1218 <artifactId>maven-resources-plugin</artifactId>
1219 <version>2.7</version>
1223 <phase>package</phase>
1225 <goal>copy-resources</goal>
1228 <outputDirectory>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}/etc</outputDirectory>
1231 <directory>src/main/config</directory>
1238 <phase>package</phase>
1240 <goal>copy-resources</goal>
1243 <outputDirectory>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}/bin</outputDirectory>
1246 <directory>src/main/scripts</directory>
1252 <id>copy-docker-file</id>
1253 <phase>prepare-package</phase>
1255 <goal>copy-resources</goal>
1258 <outputDirectory>${dockerLocation}</outputDirectory>
1259 <overwrite>true</overwrite>
1262 <directory>${basedir}/src/main/resources/docker</directory>
1263 <filtering>true</filtering>
1265 <include>**/*</include>
1276 <groupId>com.google.code.maven-replacer-plugin</groupId>
1277 <artifactId>replacer</artifactId>
1278 <version>1.5.2</version>
1281 <id>google-replacer-ajsc-arch-parent</id>
1282 <phase>prepare-package</phase>
1284 <goal>replace</goal>
1287 <basedir>${project.build.directory}</basedir>
1289 <include>staticContent/**/*.html</include>
1290 <include>CDP/**</include>
1291 <include>bundleconfig/**</include>
1292 <include>versioned-runtime/**/*.context</include>
1293 <include>versioned-runtime/**/*.json</include>
1294 <include>versioned-ajsc/**/*.route</include>
1295 <include>versioned-ajsc/**/*.groovy</include>
1296 <include>versioned-ajsc/**/*.xml</include>
1297 <include>classes/*.properties</include>
1298 <include>swm/package/nix/dist_files${distFilesRoot}/etc/*.properties</include>
1300 <escape>true</escape>
1303 <token>__module_ajsc_namespace_name__</token>
1304 <value>${module.ajsc.namespace.name}</value>
1307 <token>__module_ajsc_namespace_version__</token>
1308 <value>${module.ajsc.namespace.version}</value>
1311 <token>__ajscHome__</token>
1312 <value>${replaceWinFilePath}</value>
1315 <token>__projectGroupId__</token>
1316 <value>${project.groupId}</value>
1319 <token>__projectArtifactId__</token>
1320 <value>${project.artifactId}</value>
1323 <token>__projectVersion__</token>
1324 <value>${project.version}</value>
1327 <token>__basedir__</token>
1328 <value>${replaceWinBasedirPath}</value>
1339 <groupId>org.apache.maven.plugins</groupId>
1340 <artifactId>maven-surefire-plugin</artifactId>
1341 <version>2.14.1</version>
1344 <exclude>**/AbstractTest.java</exclude>