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.1.0</version>
22 <groupId>org.onap.dmaap.messagerouter.messageservice</groupId>
23 <artifactId>dmaapMR1</artifactId>
24 <version>1.1.17-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.11-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.21</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>
410 <groupId>javax.mail</groupId>
411 <artifactId>mail</artifactId>
416 <groupId>org.mockito</groupId>
417 <artifactId>mockito-core</artifactId>
418 <version>1.10.19</version>
422 <groupId>org.powermock</groupId>
423 <artifactId>powermock-module-junit4</artifactId>
424 <version>1.6.4</version>
428 <groupId>org.powermock</groupId>
429 <artifactId>powermock-api-mockito</artifactId>
430 <version>1.6.4</version>
433 <!-- <dependency> <groupId>org.codehaus.jackson</groupId> <artifactId>jackson-jaxrs</artifactId>
434 <version>1.9.13</version> </dependency> <dependency> <groupId>org.codehaus.jackson</groupId>
435 <artifactId>jackson-mapper-asl</artifactId> <version>1.9.13</version> </dependency>
436 <dependency> <groupId>org.codehaus.jackson</groupId> <artifactId>jackson-core-asl</artifactId>
437 <version>1.9.13</version> </dependency> -->
440 <groupId>com.fasterxml.jackson.jaxrs</groupId>
441 <artifactId>jackson-jaxrs-json-provider</artifactId>
442 <version>2.2.3</version>
446 <groupId>com.fasterxml.jackson.core</groupId>
447 <artifactId>jackson-core</artifactId>
448 <version>2.8.11</version>
452 <groupId>com.fasterxml.jackson.core</groupId>
453 <artifactId>jackson-databind</artifactId>
454 <version>2.8.11.1</version>
457 <groupId>org.grails</groupId>
458 <artifactId>grails-web</artifactId>
459 <version>2.5.4</version>
462 <groupId>org.grails</groupId>
463 <artifactId>grails-web-jsp</artifactId>
468 <groupId>org.codehaus.groovy</groupId>
469 <artifactId>groovy-all</artifactId>
470 <version>2.4.8</version>
471 <scope>compile</scope>
474 <artifactId>jline</artifactId>
475 <groupId>jline</groupId>
481 <groupId>junit</groupId>
482 <artifactId>junit</artifactId>
483 <version>4.11</version>
488 <groupId>org.json</groupId>
489 <artifactId>json</artifactId>
490 <version>20131018</version>
493 <!-- CXF JAX-RS extension -->
495 <groupId>org.apache.cxf</groupId>
496 <artifactId>cxf-rt-rs-extension-providers</artifactId>
497 <version>3.2.2</version>
498 <!-- <exclusions> <exclusion> <groupId>org.apache.cxf</groupId> <artifactId>cxf-rt-transports-http</artifactId>
499 </exclusion> </exclusions> -->
502 <groupId>org.apache.cxf</groupId>
503 <artifactId>cxf-core</artifactId>
507 <!-- <dependency> <groupId>org.apache.cxf</groupId> <artifactId>cxf-rt-transports-http</artifactId>
508 <version>3.1.14</version> </dependency> -->
510 <groupId>org.codehaus.jettison</groupId>
511 <artifactId>jettison</artifactId>
512 <version>1.3.7</version>
515 <!-- <dependency> <groupId>dom4j</groupId> <artifactId>dom4j</artifactId>
516 <version>1.6.1</version> <scope>provided</scope> </dependency> -->
518 <groupId>com.att.ajsc</groupId>
519 <artifactId>ajsc-archetype-parent</artifactId>
520 <version>3.0.11-oss</version>
525 <groupId>org.onap.aaf.authz</groupId>
526 <artifactId>aaf-cadi-aaf</artifactId>
527 <version>2.1.13</version>
530 <groupId>backport-util-concurrent</groupId>
531 <artifactId>backport-util-concurrent</artifactId>
532 <version>3.1</version>
535 <groupId>org.apache.camel</groupId>
536 <artifactId>camel-core</artifactId>
537 <version>${camel.version}</version>
540 <groupId>org.apache.camel</groupId>
541 <artifactId>camel-quartz</artifactId>
542 <version>${camel.version}</version>
545 <groupId>org.apache.camel</groupId>
546 <artifactId>camel-spring</artifactId>
547 <version>${camel.version}</version>
550 <groupId>org.apache.camel</groupId>
551 <artifactId>camel-restlet</artifactId>
552 <version>${camel.version}</version>
555 <artifactId>org.restlet</artifactId>
556 <groupId>org.restlet.jse</groupId>
561 <groupId>org.apache.camel</groupId>
562 <artifactId>camel-servlet</artifactId>
563 <version>${camel.version}</version>
564 <!-- <exclusions> <exclusion> <groupId>commons-httpclient</groupId> <artifactId>commons-httpclient</artifactId>
565 </exclusion> </exclusions> -->
567 <!-- <dependency> <groupId>org.apache.httpcomponents</groupId> <artifactId>httpclient</artifactId>
568 <version>4.0</version> </dependency> -->
571 <groupId>org.apache.camel</groupId>
572 <artifactId>camel-http4</artifactId>
573 <version>${camel.version}</version>
576 <groupId>org.apache.geronimo.specs</groupId>
577 <artifactId>geronimo-servlet_2.5_spec</artifactId>
582 <groupId>org.apache.camel</groupId>
583 <artifactId>camel-groovy</artifactId>
584 <version>${camel.version}</version>
587 <groupId>org.apache.camel</groupId>
588 <artifactId>camel-twitter</artifactId>
589 <version>${camel.version}</version>
592 <groupId>org.apache.camel</groupId>
593 <artifactId>camel-mail</artifactId>
594 <version>${camel.version}</version>
597 <groupId>org.apache.camel</groupId>
598 <artifactId>camel-smpp</artifactId>
599 <version>${camel.version}</version>
602 <groupId>org.apache.camel</groupId>
603 <artifactId>camel-jms</artifactId>
604 <version>${camel.version}</version>
607 <groupId>org.apache.camel</groupId>
608 <artifactId>camel-script</artifactId>
609 <version>${camel.version}</version>
612 <groupId>org.apache.camel</groupId>
613 <artifactId>camel-xmpp</artifactId>
614 <version>${camel.version}</version>
617 <groupId>org.igniterealtime.smack</groupId>
618 <artifactId>smack-tcp</artifactId>
619 <version>4.1.0-rc1</version>
622 <groupId>org.apache.camel</groupId>
623 <artifactId>camel-velocity</artifactId>
624 <version>${camel.version}</version>
627 <groupId>com.att.ajsc</groupId>
628 <artifactId>ajsc-runner</artifactId>
629 <version>3.0.11-oss</version>
630 <scope>runtime</scope>
633 <groupId>com.att.ajsc</groupId>
634 <artifactId>ajsc-core</artifactId>
635 <version>3.0.11-oss</version>
636 <scope>provided</scope>
639 <groupId>org.springframework</groupId>
640 <artifactId>spring-test</artifactId>
641 <version>3.2.12.RELEASE</version>
645 <!-- <build> <resources> <resource> <directory>${basedir}/ajsc-shared-config/etc</directory>
646 </resource> </resources> </build> -->
648 <!-- Use this profile to run the AJSC locally. This profile can be successfully
649 shutdown WITHIN eclipse even in a Windows environment. Debugging is also
650 available with this profile. -->
654 <skip.docker.build>false</skip.docker.build>
655 <skip.docker.tag>false</skip.docker.tag>
656 <skip.docker.push>false</skip.docker.push>
661 <groupId>org.codehaus.groovy.maven</groupId>
662 <artifactId>gmaven-plugin</artifactId>
665 <phase>validate</phase>
671 <ver>${project.version}</ver>
672 <timestamp>${maven.build.timestamp}</timestamp>
675 println project.properties['ver'];
676 if ( project.properties['ver'].endsWith("-SNAPSHOT") ) {
677 project.properties['dockertag1']=project.properties['ver'] + "-latest";
678 project.properties['dockertag2']=project.properties['ver'] + "-" + project.properties['timestamp'];
680 project.properties['dockertag1']=project.properties['ver'] + "-STAGING-latest";
681 project.properties['dockertag2']=project.properties['ver'] + "-STAGING-" + project.properties['timestamp'];
683 println 'docker tag 1: ' + project.properties['dockertag1'];
684 println 'docker tag 2: ' + project.properties['dockertag2'];
691 <groupId>io.fabric8</groupId>
692 <artifactId>docker-maven-plugin</artifactId>
693 <version>0.28.0</version>
695 <verbose>${docker.verbose}</verbose>
696 <apiVersion>${docker.apiVersion}</apiVersion>
697 <pullRegistry>${docker.pull.registry}</pullRegistry>
698 <pushRegistry>${docker.push.registry}</pushRegistry>
701 <name>onap/dmaap/dmaap-mr</name>
703 <cleanup>try</cleanup>
704 <dockerFileDir>${dockerLocation}</dockerFileDir>
705 <dockerFile>Dockerfile</dockerFile>
707 <tag>${dockertag1}</tag>
708 <tag>${dockertag2}</tag>
716 <id>generate-images</id>
717 <phase>install</phase>
724 <phase>deploy</phase>
738 <defaultGoal>initialize</defaultGoal>
741 <groupId>org.apache.maven.plugins</groupId>
742 <artifactId>maven-antrun-plugin</artifactId>
745 <phase>initialize</phase>
747 <target name="runLocal">
748 <ant antfile="${basedir}/antBuild/build.xml" target="runLocal" />
764 <defaultGoal>initialize</defaultGoal>
767 <groupId>org.codehaus.mojo</groupId>
768 <artifactId>exec-maven-plugin</artifactId>
769 <version>1.3.2</version>
772 <phase>initialize</phase>
777 <!-- In order to better mimic a SOA cloud installation of AJSC (and
778 to help eliminate Maven/Eclipse/AJSC classpath issues that may be difficult
779 to diagnose), within this profile used to run locally, we are NOT including
780 project dependencies. These will be loaded by AJSC from $AJSC_HOME/extJars.
781 The only jar needed to run AJSC is the ajsc-runner.jar, and therefore is
782 the only dependency required by this profile to run locally. -->
783 <includeProjectDependencies>false</includeProjectDependencies>
784 <includePluginDependencies>true</includePluginDependencies>
785 <executable>java</executable>
786 <mainClass>com.att.ajsc.runner.Runner</mainClass>
787 <executableDependency>
788 <groupId>com.att.ajsc</groupId>
789 <artifactId>ajsc-runner</artifactId>
790 </executableDependency>
791 <additionalClasspathElements>
792 <additionalClasspathElement>${basedir}/ajsc-shared-config/etc</additionalClasspathElement>
793 </additionalClasspathElements>
795 <environmentVariables>
796 <AJSC_HOME>${runAjscHome}</AJSC_HOME>
797 </environmentVariables>
799 <!-- Main AJSC System Properties below (necessary for proper startup) -->
803 <value>${runAjscHome}</value>
807 <value>${runAjscHome}</value>
810 <key>AJSC_CONF_HOME</key>
811 <value>${basedir}/bundleconfig-local</value>
814 <key>logback.configurationFile</key>
815 <value>${basedir}/ajsc-shared-config/etc/logback.xml</value>
818 <key>com.att.eelf.logging.file</key>
819 <value>logback.xml</value>
822 <key>com.att.eelf.logging.path</key>
823 <value>${basedir}/ajsc-shared-config/etc</value>
826 <key>logging.config</key>
827 <value>${basedir}/ajsc-shared-config/etc/logback.xml</value>
830 <key>AJSC_SHARED_CONFIG</key>
831 <value>${basedir}/ajsc-shared-config</value>
834 <!-- Please, NOTE: The following 2 system properties will normally
835 be set within the sys-props.properties file once deployed to a node. We are
836 setting them HERE to run locally to make more efficient use of maven variable
837 replacement for ${basedir} -->
838 <!-- AJSC_EXTERNAL_LIB_FOLDERS represents the particular jars that
839 will be externalized on a CSI node. This includes dme2 and csm related artifact. -->
841 <key>AJSC_EXTERNAL_LIB_FOLDERS</key>
842 <value>${basedir}/target/commonLibs</value>
844 <!-- AJSC_EXTERNAL_PROPERTIES_FOLDERS represents the particular
845 files that may need to be added to the classpath. These files will be externalized
846 on a CSI node. This includes dme2 and csm related artifact (such as csm-config-app.properties).
847 Failure to have these files on the classpath may result in errors thrown
848 by csm framework. -->
850 <key>AJSC_EXTERNAL_PROPERTIES_FOLDERS</key>
851 <value>${basedir}/ajsc-shared-config/etc</value>
855 <key>AJSC_SERVICE_NAMESPACE</key>
856 <value>${module.ajsc.namespace.name}</value>
859 <key>AJSC_SERVICE_VERSION</key>
860 <value>${module.ajsc.namespace.version}</value>
863 <key>SOACLOUD_SERVICE_VERSION</key>
864 <value>${project.version}</value>
867 <key>server.port</key>
868 <value>${serverPort}</value>
872 <!-- Command Line Arguments to add to the java command. Here, you
873 can specify the port as well as the Context you want your service to run
874 in. Use context=/ to run in an unnamed Context (Root Context). The default
875 configuration of the AJSC is to run under the / Context. Setting the port
876 here can aid during the development phase of your service. However, you can
877 leave this argument out entirely, and the AJSC will default to using an Ephemeral
880 <argument>context=/</argument>
881 <argument>port=${serverPort}</argument>
882 <argument>sslport=${sslport}</argument>
888 <executable>java</executable>
892 <groupId>com.att.ajsc</groupId>
893 <artifactId>ajsc-runner</artifactId>
894 <version>${ajscRuntimeVersion}</version>
903 <id>standardbuild</id>
912 <directory>src/main/resources</directory>
914 <exclude>extApps/*.*</exclude>
915 <exclude>${module.ajsc.namespace.name}/**</exclude>
919 <directory>src/main/ajsc/\${namespace}_${namespaceVersion}/\${namespace}/\${namespaceVersion}</directory>
921 <exclude>**/*.route</exclude>
922 <exclude>**/*.props</exclude>
923 <exclude>**/*.xslt</exclude>
924 <exclude>**/*.vm</exclude>
925 <exclude>**/*.jar</exclude>
926 <exclude>**/*.xml</exclude>
932 <groupId>org.apache.maven.plugins</groupId>
933 <artifactId>maven-compiler-plugin</artifactId>
934 <version>3.1</version>
937 <groupId>org.codehaus.groovy</groupId>
938 <artifactId>groovy-eclipse-compiler</artifactId>
939 <version>2.8.0-01</version>
940 <extensions>true</extensions>
944 <groupId>org.codehaus.mojo</groupId>
945 <artifactId>exec-maven-plugin</artifactId>
946 <version>1.2.1</version>
955 <executable>bash</executable>
957 <argument>runServer.sh</argument>
962 <groupId>org.codehaus.mojo</groupId>
963 <artifactId>build-helper-maven-plugin</artifactId>
964 <version>1.9</version>
967 <id>add-source-groovy-ajsc-arch-parent</id>
968 <phase>generate-sources</phase>
970 <goal>add-source</goal>
974 <source>src/main/groovy</source>
979 <id>add-test-source-groovy-ajsc-arch-parent</id>
980 <phase>generate-test-sources</phase>
982 <goal>add-test-source</goal>
986 <source>src/test/groovy</source>
991 <id>regex-properties-ajsc-arch-parent</id>
992 <phase>initialize</phase>
994 <goal>regex-properties</goal>
997 <regexPropertySettings>
998 <regexPropertySetting>
999 <name>replaceWinFilePath</name>
1000 <value>${runAjscHome}</value>
1002 <replacement>/</replacement>
1003 <failIfNoMatch>false</failIfNoMatch>
1004 </regexPropertySetting>
1005 <regexPropertySetting>
1006 <name>replaceWinBasedirPath</name>
1007 <value>${basedir}</value>
1009 <replacement>/</replacement>
1010 <failIfNoMatch>false</failIfNoMatch>
1011 </regexPropertySetting>
1012 </regexPropertySettings>
1018 <groupId>org.codehaus.mojo</groupId>
1019 <artifactId>properties-maven-plugin</artifactId>
1020 <version>1.0-alpha-2</version>
1023 <id>write-project-properties-ajsc-arch-parent</id>
1024 <phase>generate-resources</phase>
1026 <goal>write-project-properties</goal>
1030 ${project.build.outputDirectory}/build.properties
1037 <groupId>org.apache.maven.plugins</groupId>
1038 <artifactId>maven-assembly-plugin</artifactId>
1039 <version>2.4</version>
1042 <id>make-assembly-ajsc-arch-parent</id>
1043 <phase>package</phase>
1050 <finalName>${project.artifactId}</finalName>
1052 <descriptor>src/main/assemble/ajsc_runtime_assembly.xml</descriptor>
1057 <groupId>org.codehaus.groovy.maven</groupId>
1058 <artifactId>gmaven-plugin</artifactId>
1059 <version>1.0</version>
1062 <id>gmaven-ajsc-arch-parent</id>
1063 <phase>package</phase>
1065 <goal>execute</goal>
1068 <sourcepath>src/main/groovy</sourcepath>
1070 import ajsc.AssemblyService;
1071 ajsc.AssemblyService.getBasedir(project.basedir.getAbsolutePath(),"${distFilesRoot}")
1078 <groupId>org.apache.maven.plugins</groupId>
1079 <artifactId>maven-antrun-plugin</artifactId>
1080 <version>1.7</version>
1083 <id>prep_service_runtime-ajsc-arch-parent</id>
1084 <phase>generate-resources</phase>
1086 <target name="prep_service_runtime">
1087 <echo message="ENTERING 'copy_services_template' ant tasks" />
1088 <!-- <filter token="basedir" value="${basedir}" /> -->
1089 <!-- delete any prior stating stuff before package phase -->
1090 <delete dir="target/versioned-ajsc" includes="**/*" />
1091 <delete dir="target/versioned-runtime" includes="**/*" />
1092 <delete dir="target/CDP" includes="**/*" />
1094 <!-- This is where replacer plugin replaces tokens (Example: __module_ajsc_namespace_name__
1095 is replaced by module.ajsc.namespace.name) -->
1096 <copy todir="target/versioned-ajsc">
1097 <fileset dir="src/main/ajsc" includes="**/*" />
1100 <!-- Copying the CDP, bundleconfig, and StaticContent to the target
1101 directory for future use by replacer plugin -->
1102 <copy todir="target/CDP" failonerror="false">
1103 <fileset dir="CDP" includes="**/*.sh" />
1105 <copy flatten="true" file="CDP/SampleBlueprint.xml"
1107 tofile="target/CDP/${module.ajsc.namespace.name}Blueprint.xml" />
1108 <copy todir="target/staticContent" failonerror="false">
1109 <fileset dir="staticContent" includes="**/*" />
1111 <copy todir="target/bundleconfig" failonerror="false">
1112 <!-- filtering="true"> -->
1113 <fileset dir="bundleconfig" />
1116 <echo message="EXITING 'copy_services_template' ant tasks" />
1117 <echo message="ENTERING 'copy_runtime_template' ant tasks" />
1118 <copy todir="target/versioned-runtime">
1119 <fileset dir="src/main/runtime" includes="**/*" />
1122 file="target/versioned-runtime/context/__module.ajsc.namespace.name__#__module.ajsc.namespace.version__.context" />
1123 <copy flatten="true"
1124 file="src/main/runtime/context/__module.ajsc.namespace.name__#__module.ajsc.namespace.version__.context"
1125 tofile="target/versioned-runtime/context/${module.ajsc.namespace.name}#${module.ajsc.namespace.version}.context" />
1127 file="target/versioned-runtime/deploymentPackage/__module.ajsc.namespace.name__#__module.ajsc.namespace.version__.json" />
1128 <copy flatten="true"
1129 file="src/main/runtime/deploymentPackage/__module.ajsc.namespace.name__#__module.ajsc.namespace.version__.json"
1130 tofile="target/versioned-runtime/deploymentPackage/${module.ajsc.namespace.name}#${module.ajsc.namespace.version}.json" />
1132 file="target/versioned-runtime/shiroRole/contextadmin#__module.ajsc.namespace.name__.json" />
1133 <copy flatten="true"
1134 file="src/main/runtime/shiroRole/contextadmin#__module.ajsc.namespace.name__.json"
1135 tofile="target/versioned-runtime/shiroRole/contextadmin#${module.ajsc.namespace.name}.json" />
1137 file="target/versioned-runtime/shiroUserRole/ajsc#contextAdmin#__module.ajsc.namespace.name__.json" />
1138 <copy flatten="true"
1139 file="src/main/runtime/shiroUserRole/ajsc#contextadmin#__module.ajsc.namespace.name__.json"
1140 tofile="target/versioned-runtime/shiroUserRole/ajsc#contextadmin#${module.ajsc.namespace.name}.json" />
1141 <echo message="EXITING 'copy_runtime_template' ant tasks" />
1150 <phase>package</phase>
1154 srcdir="${basedir}/target/swm/package/nix/dist_files${distFilesRoot}"
1155 includes="**/*.sh,**/*.xml,**/*.properties,**/*.xsd" />
1163 <id>prep_home_directory_for_swm_pkgcreate-ajsc-arch-parent</id>
1164 <phase>package</phase>
1166 <target name="prep_home_directory_for_swm_pkgcreate">
1167 <ant antfile="${basedir}/antBuild/build.xml" target="prep_home_directory_for_swm_pkgcreate" />
1177 <groupId>org.apache.maven.plugins</groupId>
1178 <artifactId>maven-dependency-plugin</artifactId>
1179 <version>2.8</version>
1182 <id>copy-dependencies-ajsc-arch-parent</id>
1183 <phase>prepare-package</phase>
1185 <goal>copy-dependencies</goal>
1188 <includeScope>runtime</includeScope>
1189 <excludeArtifactIds>ajsc-bom,ajsc-core,ajsc-runner,ajsc-war</excludeArtifactIds>
1190 <outputDirectory>${project.build.directory}/userjars</outputDirectory>
1191 <silent>true</silent>
1195 <id>copy-dependencies-ajsc-arch-parent-commonLibs</id>
1196 <phase>prepare-package</phase>
1198 <goal>copy-dependencies</goal>
1201 <includeScope>provided</includeScope>
1202 <includeGroupIds>net.cingular.enterprise,com.att.aft,dom4j</includeGroupIds>
1203 <!-- <includeGroupIds>com.att.aft</includeGroupIds> -->
1204 <outputDirectory>${project.build.directory}/commonLibs</outputDirectory>
1205 <silent>true</silent>
1210 <phase>prepare-package</phase>
1212 <goal>copy-dependencies</goal>
1215 <includeArtifactIds>ajsc-runner</includeArtifactIds>
1216 <outputDirectory>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}/lib</outputDirectory>
1222 <artifactId>maven-resources-plugin</artifactId>
1223 <version>2.7</version>
1227 <phase>package</phase>
1229 <goal>copy-resources</goal>
1232 <outputDirectory>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}/etc</outputDirectory>
1235 <directory>src/main/config</directory>
1242 <phase>package</phase>
1244 <goal>copy-resources</goal>
1247 <outputDirectory>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}/bin</outputDirectory>
1250 <directory>src/main/scripts</directory>
1256 <id>copy-docker-file</id>
1257 <phase>prepare-package</phase>
1259 <goal>copy-resources</goal>
1262 <outputDirectory>${dockerLocation}</outputDirectory>
1263 <overwrite>true</overwrite>
1266 <directory>${basedir}/src/main/resources/docker</directory>
1267 <filtering>true</filtering>
1269 <include>**/*</include>
1280 <groupId>com.google.code.maven-replacer-plugin</groupId>
1281 <artifactId>replacer</artifactId>
1282 <version>1.5.2</version>
1285 <id>google-replacer-ajsc-arch-parent</id>
1286 <phase>prepare-package</phase>
1288 <goal>replace</goal>
1291 <basedir>${project.build.directory}</basedir>
1293 <include>staticContent/**/*.html</include>
1294 <include>CDP/**</include>
1295 <include>bundleconfig/**</include>
1296 <include>versioned-runtime/**/*.context</include>
1297 <include>versioned-runtime/**/*.json</include>
1298 <include>versioned-ajsc/**/*.route</include>
1299 <include>versioned-ajsc/**/*.groovy</include>
1300 <include>versioned-ajsc/**/*.xml</include>
1301 <include>classes/*.properties</include>
1302 <include>swm/package/nix/dist_files${distFilesRoot}/etc/*.properties</include>
1304 <escape>true</escape>
1307 <token>__module_ajsc_namespace_name__</token>
1308 <value>${module.ajsc.namespace.name}</value>
1311 <token>__module_ajsc_namespace_version__</token>
1312 <value>${module.ajsc.namespace.version}</value>
1315 <token>__ajscHome__</token>
1316 <value>${replaceWinFilePath}</value>
1319 <token>__projectGroupId__</token>
1320 <value>${project.groupId}</value>
1323 <token>__projectArtifactId__</token>
1324 <value>${project.artifactId}</value>
1327 <token>__projectVersion__</token>
1328 <value>${project.version}</value>
1331 <token>__basedir__</token>
1332 <value>${replaceWinBasedirPath}</value>
1343 <groupId>org.apache.maven.plugins</groupId>
1344 <artifactId>maven-surefire-plugin</artifactId>
1345 <version>2.14.1</version>
1348 <exclude>**/AbstractTest.java</exclude>