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.13-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>
71 <groupId>org.apache.maven.plugins</groupId>
72 <artifactId>maven-enforcer-plugin</artifactId>
75 <id>enforce-no-snapshots</id>
82 <message>No Snapshots Allowed!</message>
84 <exclude>org.onap.dmaap.messagerouter.msgrtr:msgrtr</exclude>
95 <groupId>org.apache.maven.plugins</groupId>
96 <artifactId>maven-source-plugin</artifactId>
97 <version>3.0.0</version>
100 <id>attach-sources</id>
102 <goal>jar-no-fork</goal>
108 <groupId>org.apache.maven.plugins</groupId>
109 <artifactId>maven-release-plugin</artifactId>
110 <version>2.5.3</version>
112 <autoVersionSubmodules>true</autoVersionSubmodules>
113 <checkModificationExcludes>
114 </checkModificationExcludes>
118 <groupId>org.apache.maven.scm</groupId>
119 <artifactId>maven-scm-provider-gitexe</artifactId>
120 <version>1.9.4</version>
127 <groupId>com.blackducksoftware.integration</groupId>
128 <artifactId>hub-maven-plugin</artifactId>
129 <version>1.0.4</version>
130 <inherited>false</inherited>
132 <target>${project.basedir}</target>
136 <id>create-bdio-file</id>
137 <phase>package</phase>
139 <goal>createHubOutput</goal>
145 <!-- <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId>
146 <version>3.1</version> <configuration> <compilerId>groovy-eclipse-compiler</compilerId>
147 <verbose>true</verbose> <source>1.7</source> <target>1.7</target> </configuration>
148 <dependencies> <dependency> <groupId>org.codehaus.groovy</groupId> <artifactId>groovy-eclipse-compiler</artifactId>
149 <version>2.8.0-01</version> </dependency> <dependency> <groupId>org.codehaus.groovy</groupId>
150 <artifactId>groovy-eclipse-batch</artifactId> <version>2.1.5-03</version>
151 </dependency> </dependencies> </plugin> -->
153 <groupId>org.codehaus.groovy</groupId>
154 <artifactId>groovy-eclipse-compiler</artifactId>
155 <version>2.8.0-01</version>
156 <extensions>true</extensions>
163 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
164 <dockerLocation>${basedir}/target/swm/package/nix/dist_files/</dockerLocation>
165 <docker.image.prefix>simpledemo</docker.image.prefix>
166 <!-- <javax-mail-version>1.5.0</javax-mail-version> -->
167 <module.ajsc.namespace.name>dmaap</module.ajsc.namespace.name>
168 <module.ajsc.namespace.version>v1</module.ajsc.namespace.version>
169 <ajscRuntimeVersion>3.0.10-oss</ajscRuntimeVersion>
171 <!-- This will be the Absolute Root of the Project and should contain NO
173 <absoluteDistFilesRoot>/appl/${project.artifactId}</absoluteDistFilesRoot>
174 <!-- <absoluteDistFilesRoot>/opt/app/dmaap/${project.artifactId}</absoluteDistFilesRoot> -->
175 <!-- For Versioning upon installation, add /${project.version} to distFilesRoot.
176 For NO Versioning, leave as is -->
177 <!-- example: /appl/${project.artifactId}/${project.version}. Also, add
178 ${project.version} to ${runAjscHome} for running locally. -->
179 <distFilesRoot>/appl/${project.artifactId}</distFilesRoot>
180 <!-- <distFilesRoot>/opt/app/dmaap/${project.artifactId}</distFilesRoot> -->
181 <runAjscHome>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}</runAjscHome>
183 <!-- For SOA Cloud Installation <installOwnerUser>aft</installOwnerUser>
184 <installOwnerGroup>aft</installOwnerGroup> <ownerManagementGroup>com.att.acsi.saat.dt.dmaap.dev</ownerManagementGroup> -->
185 <!-- For SOA Cloud Installation -->
186 <installOwnerUser>msgrtr</installOwnerUser>
187 <installOwnerGroup>dmaap</installOwnerGroup>
188 <ownerManagementGroup>com.att.acsi.saat.dt.dmaap.dev</ownerManagementGroup>
189 <!-- Port Selection. A value of 0 will allow for dynamic port selection.
190 For local testing, you may choose to hardcode this value to something like
192 <serverPort>3904</serverPort>
193 <sslport>3905</sslport>
194 <onap.nexus.url>https://nexus.onap.org</onap.nexus.url>
195 <testRouteOffer>workstation</testRouteOffer>
196 <testEnv>DEV</testEnv>
197 <!-- <dmaapImg>${project.version}</dmaapImg> -->
198 <timestamp>${maven.build.timestamp}</timestamp>
199 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
200 <camel.version>2.21.1</camel.version>
201 <sitePath>/content/sites/site/org/onap/dmaap/messagerouter/messageservice/${project.artifactId}/${project.version}</sitePath>
202 <skip.docker.build>true</skip.docker.build>
203 <skip.docker.tag>true</skip.docker.tag>
204 <skip.docker.push>true</skip.docker.push>
205 <nexusproxy>https://nexus.onap.org</nexusproxy>
206 <docker.push.registry>nexus3.onap.org:10003</docker.push.registry>
207 <spring.version>3.2.18.RELEASE</spring.version>
210 <!-- Distribution management -->
211 <distributionManagement>
214 <url>dav:${nexusproxy}${sitePath}</url>
216 </distributionManagement>
218 <!-- End Distribution management -->
220 <!-- The standard build tasks for this project are inherited from the parent.
221 Please do not override the build tasks. However tasks and/or profiles can
222 be included here as well as additional dependencies for your service. Any
223 runtime or compile scope dependencies will be copied to the INSTALLATION_PATH/extJars
224 folder and will be made available on the AJSC classpath for your service.
225 Please, NOTE: DME2 and CSM related dependencies are EXTERNALIZED within the
226 CSI environment. Therefore, they are provided within this project as "provided"
227 dependencies. In order for the AJSC to run properly, locally, the CSM and
228 DME2 dependencies will be copied into the target/commonLibs folder and will
229 be made available to the classpath of the AJSC through the use of the system
230 property, "AJSC_EXTERNAL_LIB_FOLDERS". This system property needs to be set
231 in the "runAjsc" maven profile within the pom.xml (and, is defaulted to do
232 so). If you have a startup failure related to a missing dme2 class not found
233 exception, please contact the AJSC team for assistance. You can email support
234 at ajsc-Support <DL-ajsc-Support@att.com>. For more information regarding
235 the usage of the AJSC service pom.xml and management of dependencies, -->
238 <!-- cmn-CommonDataModel dependency added to resolve build issue not finding
241 <!-- <dependency> <groupId>csi-schemas-source</groupId> <artifactId>cmn-CommonDataModel</artifactId>
242 <version>112.0.50</version> </dependency> -->
243 <!-- TODO: add open source version here -->
247 <groupId>com.sun.mail</groupId>
248 <artifactId>javax.mail</artifactId>
249 <version>1.6.0</version>
251 <!-- javax activation is part of the JDK now -->
253 <groupId>javax.activation</groupId>
254 <artifactId>activation</artifactId>
259 <groupId>com.sun.xml.bind</groupId>
260 <artifactId>jaxb-core</artifactId>
261 <version>2.3.0.1</version>
262 <scope>compile</scope>
265 <groupId>com.sun.xml.bind</groupId>
266 <artifactId>jaxb-impl</artifactId>
267 <version>2.3.0.1</version>
268 <scope>compile</scope>
271 <artifactId>jsr181-api</artifactId>
272 <groupId>javax.jws</groupId>
278 <groupId>org.apache.cxf</groupId>
279 <artifactId>cxf-rt-transports-http</artifactId>
280 <version>3.2.5</version>
284 <groupId>com.att.cadi</groupId>
285 <artifactId>cadi-core</artifactId>
286 <version>1.3.0</version>
289 <groupId>com.att.aft</groupId>
290 <artifactId>dme2</artifactId>
291 <version>3.1.200-oss</version>
294 <groupId>org.springframework</groupId>
295 <artifactId>spring-expression</artifactId>
296 <version>4.3.18.RELEASE</version>
299 <groupId>org.springframework</groupId>
300 <artifactId>spring-messaging</artifactId>
301 <version>4.1.9.RELEASE</version>
303 <!-- <dependency> <groupId>com.sun.mail</groupId> <artifactId>javax.mail</artifactId>
304 <version>${javax-mail-version}</version> <exclusions> javax activation is
305 part of the JDK now <exclusion> <groupId>javax.activation</groupId> <artifactId>activation</artifactId>
306 </exclusion> </exclusions> </dependency> -->
309 <groupId>org.apache.zookeeper</groupId>
310 <artifactId>zookeeper</artifactId>
311 <version>3.4.10</version>
314 <groupId>org.grails</groupId>
315 <artifactId>grails-bootstrap</artifactId>
316 <version>2.5.4</version>
317 <scope>compile</scope>
320 <artifactId>ant</artifactId>
321 <groupId>org.apache.ant</groupId>
324 <artifactId>jna</artifactId>
325 <groupId>net.java.dev.jna</groupId>
328 <artifactId>ant-trax</artifactId>
329 <groupId>org.apache.ant</groupId>
332 <artifactId>gant_groovy1.8</artifactId>
333 <groupId>org.codehaus.gant</groupId>
336 <artifactId>ant-launcher</artifactId>
337 <groupId>org.apache.ant</groupId>
340 <artifactId>jline</artifactId>
341 <groupId>jline</groupId>
344 <artifactId>ivy</artifactId>
345 <groupId>org.apache.ivy</groupId>
348 <artifactId>jansi</artifactId>
349 <groupId>org.fusesource.jansi</groupId>
352 <artifactId>commons-logging</artifactId>
353 <groupId>commons-logging</groupId>
356 <artifactId>ant-junit</artifactId>
357 <groupId>org.apache.ant</groupId>
362 <groupId>org.springframework</groupId>
363 <artifactId>spring-webmvc</artifactId>
364 <version>4.3.18.RELEASE</version>
367 <groupId>org.springframework</groupId>
368 <artifactId>spring-core</artifactId>
369 <version>4.3.18.RELEASE</version>
372 <groupId>org.springframework</groupId>
373 <artifactId>spring-beans</artifactId>
374 <version>4.3.18.RELEASE</version>
378 <groupId>org.springframework</groupId>
379 <artifactId>spring-context</artifactId>
380 <version>4.3.18.RELEASE</version>
383 <groupId>commons-io</groupId>
384 <artifactId>commons-io</artifactId>
385 <version>2.4</version>
388 <groupId>org.apache.commons</groupId>
389 <artifactId>commons-io</artifactId>
390 <version>1.3.2</version>
393 <groupId>org.onap.dmaap.messagerouter.msgrtr</groupId>
394 <artifactId>msgrtr</artifactId>
395 <version>1.1.17-SNAPSHOT</version>
398 <groupId>org.slf4j</groupId>
399 <artifactId>slf4j-log4j12</artifactId>
402 <groupId>com.att.ajsc</groupId>
403 <artifactId>ajsc-core</artifactId>
406 <groupId>org.apache.tomcat</groupId>
407 <artifactId>tomcat-catalina</artifactId>
411 <groupId>org.apache.tomcat.embed</groupId>
412 <artifactId>tomcat-embed-core</artifactId>
415 <groupId>org.apache.tomcat</groupId>
416 <artifactId>tomcat-util</artifactId>
418 <!-- <exclusion> <groupId>com.att.nsa</groupId> <artifactId>saToolkit</artifactId>
421 <groupId>com.att.nsa</groupId>
422 <artifactId>tomcat-util</artifactId>
426 <groupId>commons-beanutils</groupId>
427 <artifactId>commons-beanutils</artifactId>
432 <groupId>org.mockito</groupId>
433 <artifactId>mockito-core</artifactId>
434 <version>1.10.19</version>
438 <groupId>org.powermock</groupId>
439 <artifactId>powermock-module-junit4</artifactId>
440 <version>1.6.4</version>
444 <groupId>org.powermock</groupId>
445 <artifactId>powermock-api-mockito</artifactId>
446 <version>1.6.4</version>
449 <!-- <dependency> <groupId>org.codehaus.jackson</groupId> <artifactId>jackson-jaxrs</artifactId>
450 <version>1.9.13</version> </dependency> <dependency> <groupId>org.codehaus.jackson</groupId>
451 <artifactId>jackson-mapper-asl</artifactId> <version>1.9.13</version> </dependency>
452 <dependency> <groupId>org.codehaus.jackson</groupId> <artifactId>jackson-core-asl</artifactId>
453 <version>1.9.13</version> </dependency> -->
456 <groupId>com.fasterxml.jackson.jaxrs</groupId>
457 <artifactId>jackson-jaxrs-json-provider</artifactId>
458 <version>2.2.3</version>
462 <groupId>com.fasterxml.jackson.core</groupId>
463 <artifactId>jackson-core</artifactId>
464 <version>2.8.11</version>
468 <groupId>com.fasterxml.jackson.core</groupId>
469 <artifactId>jackson-databind</artifactId>
470 <version>2.8.11.1</version>
473 <groupId>org.grails</groupId>
474 <artifactId>grails-web</artifactId>
475 <version>2.5.4</version>
478 <groupId>org.grails</groupId>
479 <artifactId>grails-web-jsp</artifactId>
484 <groupId>org.codehaus.groovy</groupId>
485 <artifactId>groovy-all</artifactId>
486 <version>2.4.8</version>
487 <scope>compile</scope>
490 <artifactId>jline</artifactId>
491 <groupId>jline</groupId>
497 <groupId>junit</groupId>
498 <artifactId>junit</artifactId>
499 <version>4.11</version>
504 <groupId>org.json</groupId>
505 <artifactId>json</artifactId>
506 <version>20131018</version>
509 <!-- CXF JAX-RS extension -->
511 <groupId>org.apache.cxf</groupId>
512 <artifactId>cxf-rt-rs-extension-providers</artifactId>
513 <version>3.2.2</version>
514 <!-- <exclusions> <exclusion> <groupId>org.apache.cxf</groupId> <artifactId>cxf-rt-transports-http</artifactId>
515 </exclusion> </exclusions> -->
518 <groupId>org.apache.cxf</groupId>
519 <artifactId>cxf-core</artifactId>
523 <!-- <dependency> <groupId>org.apache.cxf</groupId> <artifactId>cxf-rt-transports-http</artifactId>
524 <version>3.1.14</version> </dependency> -->
526 <groupId>org.codehaus.jettison</groupId>
527 <artifactId>jettison</artifactId>
528 <version>1.3.7</version>
531 <!-- <dependency> <groupId>dom4j</groupId> <artifactId>dom4j</artifactId>
532 <version>1.6.1</version> <scope>provided</scope> </dependency> -->
534 <groupId>com.att.ajsc</groupId>
535 <artifactId>ajsc-archetype-parent</artifactId>
536 <version>3.0.10-oss</version>
541 <groupId>org.onap.aaf.authz</groupId>
542 <artifactId>aaf-cadi-aaf</artifactId>
543 <version>2.1.5</version>
546 <groupId>backport-util-concurrent</groupId>
547 <artifactId>backport-util-concurrent</artifactId>
548 <version>3.1</version>
551 <groupId>org.apache.camel</groupId>
552 <artifactId>camel-core</artifactId>
553 <version>${camel.version}</version>
556 <groupId>org.apache.camel</groupId>
557 <artifactId>camel-quartz</artifactId>
558 <version>${camel.version}</version>
561 <groupId>org.apache.camel</groupId>
562 <artifactId>camel-spring</artifactId>
563 <version>${camel.version}</version>
566 <groupId>org.apache.camel</groupId>
567 <artifactId>camel-restlet</artifactId>
568 <version>${camel.version}</version>
571 <artifactId>org.restlet</artifactId>
572 <groupId>org.restlet.jse</groupId>
577 <groupId>org.apache.camel</groupId>
578 <artifactId>camel-servlet</artifactId>
579 <version>${camel.version}</version>
580 <!-- <exclusions> <exclusion> <groupId>commons-httpclient</groupId> <artifactId>commons-httpclient</artifactId>
581 </exclusion> </exclusions> -->
583 <!-- <dependency> <groupId>org.apache.httpcomponents</groupId> <artifactId>httpclient</artifactId>
584 <version>4.0</version> </dependency> -->
587 <groupId>org.apache.camel</groupId>
588 <artifactId>camel-http4</artifactId>
589 <version>${camel.version}</version>
592 <groupId>org.apache.geronimo.specs</groupId>
593 <artifactId>geronimo-servlet_2.5_spec</artifactId>
598 <groupId>org.apache.camel</groupId>
599 <artifactId>camel-groovy</artifactId>
600 <version>${camel.version}</version>
603 <groupId>org.apache.camel</groupId>
604 <artifactId>camel-twitter</artifactId>
605 <version>${camel.version}</version>
608 <groupId>org.apache.camel</groupId>
609 <artifactId>camel-mail</artifactId>
610 <version>${camel.version}</version>
613 <groupId>org.apache.camel</groupId>
614 <artifactId>camel-smpp</artifactId>
615 <version>${camel.version}</version>
618 <groupId>org.apache.camel</groupId>
619 <artifactId>camel-jms</artifactId>
620 <version>${camel.version}</version>
623 <groupId>org.apache.camel</groupId>
624 <artifactId>camel-script</artifactId>
625 <version>${camel.version}</version>
628 <groupId>org.apache.camel</groupId>
629 <artifactId>camel-xmpp</artifactId>
630 <version>${camel.version}</version>
633 <groupId>org.igniterealtime.smack</groupId>
634 <artifactId>smack-tcp</artifactId>
635 <version>4.1.0-rc1</version>
638 <groupId>org.apache.camel</groupId>
639 <artifactId>camel-velocity</artifactId>
640 <version>${camel.version}</version>
643 <groupId>com.att.ajsc</groupId>
644 <artifactId>ajsc-runner</artifactId>
645 <version>3.0.10-oss</version>
646 <scope>runtime</scope>
649 <groupId>com.att.ajsc</groupId>
650 <artifactId>ajsc-core</artifactId>
651 <version>3.0.10-oss</version>
652 <scope>provided</scope>
655 <!-- <build> <resources> <resource> <directory>${basedir}/ajsc-shared-config/etc</directory>
656 </resource> </resources> </build> -->
658 <!-- Use this profile to run the AJSC locally. This profile can be successfully
659 shutdown WITHIN eclipse even in a Windows environment. Debugging is also
660 available with this profile. -->
664 <skip.docker.build>false</skip.docker.build>
665 <skip.docker.tag>false</skip.docker.tag>
666 <skip.docker.push>false</skip.docker.push>
671 <groupId>org.codehaus.groovy.maven</groupId>
672 <artifactId>gmaven-plugin</artifactId>
675 <phase>validate</phase>
681 <ver>${project.version}</ver>
682 <timestamp>${maven.build.timestamp}</timestamp>
685 println project.properties['ver'];
686 if ( project.properties['ver'].endsWith("-SNAPSHOT") ) {
687 project.properties['dockertag1']=project.properties['ver'] + "-latest";
688 project.properties['dockertag2']=project.properties['ver'] + "-" + project.properties['timestamp'];
690 project.properties['dockertag1']=project.properties['ver'] + "-STAGING-latest";
691 project.properties['dockertag2']=project.properties['ver'] + "-STAGING-" + project.properties['timestamp'];
693 println 'docker tag 1: ' + project.properties['dockertag1'];
694 println 'docker tag 2: ' + project.properties['dockertag2'];
701 <groupId>io.fabric8</groupId>
702 <artifactId>docker-maven-plugin</artifactId>
703 <version>0.28.0</version>
705 <verbose>${docker.verbose}</verbose>
706 <apiVersion>${docker.apiVersion}</apiVersion>
707 <pullRegistry>${docker.pull.registry}</pullRegistry>
708 <pushRegistry>${docker.push.registry}</pushRegistry>
711 <name>onap/dmaap/dmaap-mr</name>
713 <cleanup>try</cleanup>
714 <dockerFileDir>${dockerLocation}</dockerFileDir>
715 <dockerFile>Dockerfile</dockerFile>
717 <tag>${dockertag1}</tag>
718 <tag>${dockertag2}</tag>
726 <id>generate-images</id>
727 <phase>install</phase>
734 <phase>deploy</phase>
748 <defaultGoal>initialize</defaultGoal>
751 <groupId>org.apache.maven.plugins</groupId>
752 <artifactId>maven-antrun-plugin</artifactId>
755 <phase>initialize</phase>
757 <target name="runLocal">
758 <ant antfile="${basedir}/antBuild/build.xml" target="runLocal" />
774 <defaultGoal>initialize</defaultGoal>
777 <groupId>org.codehaus.mojo</groupId>
778 <artifactId>exec-maven-plugin</artifactId>
779 <version>1.3.2</version>
782 <phase>initialize</phase>
787 <!-- In order to better mimic a SOA cloud installation of AJSC (and
788 to help eliminate Maven/Eclipse/AJSC classpath issues that may be difficult
789 to diagnose), within this profile used to run locally, we are NOT including
790 project dependencies. These will be loaded by AJSC from $AJSC_HOME/extJars.
791 The only jar needed to run AJSC is the ajsc-runner.jar, and therefore is
792 the only dependency required by this profile to run locally. -->
793 <includeProjectDependencies>false</includeProjectDependencies>
794 <includePluginDependencies>true</includePluginDependencies>
795 <executable>java</executable>
796 <mainClass>com.att.ajsc.runner.Runner</mainClass>
797 <executableDependency>
798 <groupId>com.att.ajsc</groupId>
799 <artifactId>ajsc-runner</artifactId>
800 </executableDependency>
801 <additionalClasspathElements>
802 <additionalClasspathElement>${basedir}/ajsc-shared-config/etc</additionalClasspathElement>
803 </additionalClasspathElements>
805 <environmentVariables>
806 <AJSC_HOME>${runAjscHome}</AJSC_HOME>
807 </environmentVariables>
809 <!-- Main AJSC System Properties below (necessary for proper startup) -->
813 <value>${runAjscHome}</value>
817 <value>${runAjscHome}</value>
820 <key>AJSC_CONF_HOME</key>
821 <value>${basedir}/bundleconfig-local</value>
824 <key>logback.configurationFile</key>
825 <value>${basedir}/ajsc-shared-config/etc/logback.xml</value>
828 <key>com.att.eelf.logging.file</key>
829 <value>logback.xml</value>
832 <key>com.att.eelf.logging.path</key>
833 <value>${basedir}/ajsc-shared-config/etc</value>
836 <key>logging.config</key>
837 <value>${basedir}/ajsc-shared-config/etc/logback.xml</value>
840 <key>AJSC_SHARED_CONFIG</key>
841 <value>${basedir}/ajsc-shared-config</value>
844 <!-- Please, NOTE: The following 2 system properties will normally
845 be set within the sys-props.properties file once deployed to a node. We are
846 setting them HERE to run locally to make more efficient use of maven variable
847 replacement for ${basedir} -->
848 <!-- AJSC_EXTERNAL_LIB_FOLDERS represents the particular jars that
849 will be externalized on a CSI node. This includes dme2 and csm related artifact. -->
851 <key>AJSC_EXTERNAL_LIB_FOLDERS</key>
852 <value>${basedir}/target/commonLibs</value>
854 <!-- AJSC_EXTERNAL_PROPERTIES_FOLDERS represents the particular
855 files that may need to be added to the classpath. These files will be externalized
856 on a CSI node. This includes dme2 and csm related artifact (such as csm-config-app.properties).
857 Failure to have these files on the classpath may result in errors thrown
858 by csm framework. -->
860 <key>AJSC_EXTERNAL_PROPERTIES_FOLDERS</key>
861 <value>${basedir}/ajsc-shared-config/etc</value>
865 <key>AJSC_SERVICE_NAMESPACE</key>
866 <value>${module.ajsc.namespace.name}</value>
869 <key>AJSC_SERVICE_VERSION</key>
870 <value>${module.ajsc.namespace.version}</value>
873 <key>SOACLOUD_SERVICE_VERSION</key>
874 <value>${project.version}</value>
877 <key>server.port</key>
878 <value>${serverPort}</value>
882 <!-- Command Line Arguments to add to the java command. Here, you
883 can specify the port as well as the Context you want your service to run
884 in. Use context=/ to run in an unnamed Context (Root Context). The default
885 configuration of the AJSC is to run under the / Context. Setting the port
886 here can aid during the development phase of your service. However, you can
887 leave this argument out entirely, and the AJSC will default to using an Ephemeral
890 <argument>context=/</argument>
891 <argument>port=${serverPort}</argument>
892 <argument>sslport=${sslport}</argument>
898 <executable>java</executable>
902 <groupId>com.att.ajsc</groupId>
903 <artifactId>ajsc-runner</artifactId>
904 <version>${ajscRuntimeVersion}</version>
913 <id>standardbuild</id>
922 <directory>src/main/resources</directory>
924 <exclude>extApps/*.*</exclude>
925 <exclude>${module.ajsc.namespace.name}/**</exclude>
929 <directory>src/main/ajsc/\${namespace}_${namespaceVersion}/\${namespace}/\${namespaceVersion}</directory>
931 <exclude>**/*.route</exclude>
932 <exclude>**/*.props</exclude>
933 <exclude>**/*.xslt</exclude>
934 <exclude>**/*.vm</exclude>
935 <exclude>**/*.jar</exclude>
936 <exclude>**/*.xml</exclude>
942 <groupId>org.apache.maven.plugins</groupId>
943 <artifactId>maven-compiler-plugin</artifactId>
944 <version>3.1</version>
947 <groupId>org.codehaus.groovy</groupId>
948 <artifactId>groovy-eclipse-compiler</artifactId>
949 <version>2.8.0-01</version>
950 <extensions>true</extensions>
954 <groupId>org.codehaus.mojo</groupId>
955 <artifactId>exec-maven-plugin</artifactId>
956 <version>1.2.1</version>
965 <executable>bash</executable>
967 <argument>runServer.sh</argument>
972 <groupId>org.codehaus.mojo</groupId>
973 <artifactId>build-helper-maven-plugin</artifactId>
974 <version>1.9</version>
977 <id>add-source-groovy-ajsc-arch-parent</id>
978 <phase>generate-sources</phase>
980 <goal>add-source</goal>
984 <source>src/main/groovy</source>
989 <id>add-test-source-groovy-ajsc-arch-parent</id>
990 <phase>generate-test-sources</phase>
992 <goal>add-test-source</goal>
996 <source>src/test/groovy</source>
1001 <id>regex-properties-ajsc-arch-parent</id>
1002 <phase>initialize</phase>
1004 <goal>regex-properties</goal>
1007 <regexPropertySettings>
1008 <regexPropertySetting>
1009 <name>replaceWinFilePath</name>
1010 <value>${runAjscHome}</value>
1012 <replacement>/</replacement>
1013 <failIfNoMatch>false</failIfNoMatch>
1014 </regexPropertySetting>
1015 <regexPropertySetting>
1016 <name>replaceWinBasedirPath</name>
1017 <value>${basedir}</value>
1019 <replacement>/</replacement>
1020 <failIfNoMatch>false</failIfNoMatch>
1021 </regexPropertySetting>
1022 </regexPropertySettings>
1028 <groupId>org.codehaus.mojo</groupId>
1029 <artifactId>properties-maven-plugin</artifactId>
1030 <version>1.0-alpha-2</version>
1033 <id>write-project-properties-ajsc-arch-parent</id>
1034 <phase>generate-resources</phase>
1036 <goal>write-project-properties</goal>
1040 ${project.build.outputDirectory}/build.properties
1047 <groupId>org.apache.maven.plugins</groupId>
1048 <artifactId>maven-assembly-plugin</artifactId>
1049 <version>2.4</version>
1052 <id>make-assembly-ajsc-arch-parent</id>
1053 <phase>package</phase>
1060 <finalName>${project.artifactId}</finalName>
1062 <descriptor>src/main/assemble/ajsc_runtime_assembly.xml</descriptor>
1067 <groupId>org.codehaus.groovy.maven</groupId>
1068 <artifactId>gmaven-plugin</artifactId>
1069 <version>1.0</version>
1072 <id>gmaven-ajsc-arch-parent</id>
1073 <phase>package</phase>
1075 <goal>execute</goal>
1078 <sourcepath>src/main/groovy</sourcepath>
1080 import ajsc.AssemblyService;
1081 ajsc.AssemblyService.getBasedir(project.basedir.getAbsolutePath(),"${distFilesRoot}")
1088 <groupId>org.apache.maven.plugins</groupId>
1089 <artifactId>maven-antrun-plugin</artifactId>
1090 <version>1.7</version>
1093 <id>prep_service_runtime-ajsc-arch-parent</id>
1094 <phase>generate-resources</phase>
1096 <target name="prep_service_runtime">
1097 <echo message="ENTERING 'copy_services_template' ant tasks" />
1098 <!-- <filter token="basedir" value="${basedir}" /> -->
1099 <!-- delete any prior stating stuff before package phase -->
1100 <delete dir="target/versioned-ajsc" includes="**/*" />
1101 <delete dir="target/versioned-runtime" includes="**/*" />
1102 <delete dir="target/CDP" includes="**/*" />
1104 <!-- This is where replacer plugin replaces tokens (Example: __module_ajsc_namespace_name__
1105 is replaced by module.ajsc.namespace.name) -->
1106 <copy todir="target/versioned-ajsc">
1107 <fileset dir="src/main/ajsc" includes="**/*" />
1110 <!-- Copying the CDP, bundleconfig, and StaticContent to the target
1111 directory for future use by replacer plugin -->
1112 <copy todir="target/CDP" failonerror="false">
1113 <fileset dir="CDP" includes="**/*.sh" />
1115 <copy flatten="true" file="CDP/SampleBlueprint.xml"
1117 tofile="target/CDP/${module.ajsc.namespace.name}Blueprint.xml" />
1118 <copy todir="target/staticContent" failonerror="false">
1119 <fileset dir="staticContent" includes="**/*" />
1121 <copy todir="target/bundleconfig" failonerror="false">
1122 <!-- filtering="true"> -->
1123 <fileset dir="bundleconfig" />
1126 <echo message="EXITING 'copy_services_template' ant tasks" />
1127 <echo message="ENTERING 'copy_runtime_template' ant tasks" />
1128 <copy todir="target/versioned-runtime">
1129 <fileset dir="src/main/runtime" includes="**/*" />
1132 file="target/versioned-runtime/context/__module.ajsc.namespace.name__#__module.ajsc.namespace.version__.context" />
1133 <copy flatten="true"
1134 file="src/main/runtime/context/__module.ajsc.namespace.name__#__module.ajsc.namespace.version__.context"
1135 tofile="target/versioned-runtime/context/${module.ajsc.namespace.name}#${module.ajsc.namespace.version}.context" />
1137 file="target/versioned-runtime/deploymentPackage/__module.ajsc.namespace.name__#__module.ajsc.namespace.version__.json" />
1138 <copy flatten="true"
1139 file="src/main/runtime/deploymentPackage/__module.ajsc.namespace.name__#__module.ajsc.namespace.version__.json"
1140 tofile="target/versioned-runtime/deploymentPackage/${module.ajsc.namespace.name}#${module.ajsc.namespace.version}.json" />
1142 file="target/versioned-runtime/shiroRole/contextadmin#__module.ajsc.namespace.name__.json" />
1143 <copy flatten="true"
1144 file="src/main/runtime/shiroRole/contextadmin#__module.ajsc.namespace.name__.json"
1145 tofile="target/versioned-runtime/shiroRole/contextadmin#${module.ajsc.namespace.name}.json" />
1147 file="target/versioned-runtime/shiroUserRole/ajsc#contextAdmin#__module.ajsc.namespace.name__.json" />
1148 <copy flatten="true"
1149 file="src/main/runtime/shiroUserRole/ajsc#contextadmin#__module.ajsc.namespace.name__.json"
1150 tofile="target/versioned-runtime/shiroUserRole/ajsc#contextadmin#${module.ajsc.namespace.name}.json" />
1151 <echo message="EXITING 'copy_runtime_template' ant tasks" />
1160 <phase>package</phase>
1164 srcdir="${basedir}/target/swm/package/nix/dist_files${distFilesRoot}"
1165 includes="**/*.sh,**/*.xml,**/*.properties,**/*.xsd" />
1173 <id>prep_home_directory_for_swm_pkgcreate-ajsc-arch-parent</id>
1174 <phase>package</phase>
1176 <target name="prep_home_directory_for_swm_pkgcreate">
1177 <ant antfile="${basedir}/antBuild/build.xml" target="prep_home_directory_for_swm_pkgcreate" />
1187 <groupId>org.apache.maven.plugins</groupId>
1188 <artifactId>maven-dependency-plugin</artifactId>
1189 <version>2.8</version>
1192 <id>copy-dependencies-ajsc-arch-parent</id>
1193 <phase>prepare-package</phase>
1195 <goal>copy-dependencies</goal>
1198 <includeScope>runtime</includeScope>
1199 <excludeArtifactIds>ajsc-bom,ajsc-core,ajsc-runner,ajsc-war</excludeArtifactIds>
1200 <outputDirectory>${project.build.directory}/userjars</outputDirectory>
1201 <silent>true</silent>
1205 <id>copy-dependencies-ajsc-arch-parent-commonLibs</id>
1206 <phase>prepare-package</phase>
1208 <goal>copy-dependencies</goal>
1211 <includeScope>provided</includeScope>
1212 <includeGroupIds>net.cingular.enterprise,com.att.aft,dom4j</includeGroupIds>
1213 <!-- <includeGroupIds>com.att.aft</includeGroupIds> -->
1214 <outputDirectory>${project.build.directory}/commonLibs</outputDirectory>
1215 <silent>true</silent>
1220 <phase>prepare-package</phase>
1222 <goal>copy-dependencies</goal>
1225 <includeArtifactIds>ajsc-runner</includeArtifactIds>
1226 <outputDirectory>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}/lib</outputDirectory>
1232 <artifactId>maven-resources-plugin</artifactId>
1233 <version>2.7</version>
1237 <phase>package</phase>
1239 <goal>copy-resources</goal>
1242 <outputDirectory>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}/etc</outputDirectory>
1245 <directory>src/main/config</directory>
1252 <phase>package</phase>
1254 <goal>copy-resources</goal>
1257 <outputDirectory>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}/bin</outputDirectory>
1260 <directory>src/main/scripts</directory>
1266 <id>copy-docker-file</id>
1267 <phase>prepare-package</phase>
1269 <goal>copy-resources</goal>
1272 <outputDirectory>${dockerLocation}</outputDirectory>
1273 <overwrite>true</overwrite>
1276 <directory>${basedir}/src/main/resources/docker</directory>
1277 <filtering>true</filtering>
1279 <include>**/*</include>
1290 <groupId>com.google.code.maven-replacer-plugin</groupId>
1291 <artifactId>replacer</artifactId>
1292 <version>1.5.2</version>
1295 <id>google-replacer-ajsc-arch-parent</id>
1296 <phase>prepare-package</phase>
1298 <goal>replace</goal>
1301 <basedir>${project.build.directory}</basedir>
1303 <include>staticContent/**/*.html</include>
1304 <include>CDP/**</include>
1305 <include>bundleconfig/**</include>
1306 <include>versioned-runtime/**/*.context</include>
1307 <include>versioned-runtime/**/*.json</include>
1308 <include>versioned-ajsc/**/*.route</include>
1309 <include>versioned-ajsc/**/*.groovy</include>
1310 <include>versioned-ajsc/**/*.xml</include>
1311 <include>classes/*.properties</include>
1312 <include>swm/package/nix/dist_files${distFilesRoot}/etc/*.properties</include>
1314 <escape>true</escape>
1317 <token>__module_ajsc_namespace_name__</token>
1318 <value>${module.ajsc.namespace.name}</value>
1321 <token>__module_ajsc_namespace_version__</token>
1322 <value>${module.ajsc.namespace.version}</value>
1325 <token>__ajscHome__</token>
1326 <value>${replaceWinFilePath}</value>
1329 <token>__projectGroupId__</token>
1330 <value>${project.groupId}</value>
1333 <token>__projectArtifactId__</token>
1334 <value>${project.artifactId}</value>
1337 <token>__projectVersion__</token>
1338 <value>${project.version}</value>
1341 <token>__basedir__</token>
1342 <value>${replaceWinBasedirPath}</value>
1353 <groupId>org.apache.maven.plugins</groupId>
1354 <artifactId>maven-surefire-plugin</artifactId>
1355 <version>2.14.1</version>
1358 <exclude>**/AbstractTest.java</exclude>