1 <!-- ============LICENSE_START=======================================================
2 org.onap.dmaap ================================================================================
3 Copyright © 2017 AT&T Intellectual Property. All rights reserved. ================================================================================
4 Licensed under the Apache License, Version 2.0 (the "License"); you may not
5 use this file except in compliance with the License. You may obtain a copy
6 of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required
7 by applicable law or agreed to in writing, software distributed under the
8 License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS
9 OF ANY KIND, either express or implied. See the License for the specific
10 language governing permissions and limitations under the License. ============LICENSE_END=========================================================
11 ECOMP is a trademark and service mark of AT&T Intellectual Property. -->
12 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
13 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
14 <modelVersion>4.0.0</modelVersion>
17 <groupId>org.onap.oparent</groupId>
18 <artifactId>oparent</artifactId>
19 <version>1.2.1</version>
22 <groupId>org.onap.dmaap.messagerouter.messageservice</groupId>
23 <artifactId>dmaapMR1</artifactId>
24 <version>1.1.11-SNAPSHOT</version>
25 <name>dmaap-messagerouter-messageservice</name>
26 <description>Message Router - Restful interface built for kafka</description>
29 <name>Apache License Version 2.0</name>
35 <name>Rajashree</name>
37 <organization>ATT</organization>
38 <organizationUrl>www.att.com</organizationUrl>
43 <organization>ATT</organization>
44 <organizationUrl>www.att.com</organizationUrl>
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 <!-- <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-javadoc-plugin</artifactId>
71 <version>2.10.4</version> <configuration> <additionalparam>-Xdoclint:none</additionalparam>
72 </configuration> <executions> <execution> <id>attach-javadocs</id> <goals>
73 <goal>jar</goal> </goals> </execution> </executions> </plugin> -->
75 <groupId>org.apache.maven.plugins</groupId>
76 <artifactId>maven-source-plugin</artifactId>
77 <version>3.0.0</version>
80 <id>attach-sources</id>
82 <goal>jar-no-fork</goal>
88 <groupId>org.apache.maven.plugins</groupId>
89 <artifactId>maven-release-plugin</artifactId>
90 <version>2.5.3</version>
92 <autoVersionSubmodules>true</autoVersionSubmodules>
93 <checkModificationExcludes>
94 </checkModificationExcludes>
98 <groupId>org.apache.maven.scm</groupId>
99 <artifactId>maven-scm-provider-gitexe</artifactId>
100 <version>1.9.4</version>
107 <groupId>com.blackducksoftware.integration</groupId>
108 <artifactId>hub-maven-plugin</artifactId>
109 <version>1.0.4</version>
110 <inherited>false</inherited>
112 <target>${project.basedir}</target>
116 <id>create-bdio-file</id>
117 <phase>package</phase>
119 <goal>createHubOutput</goal>
125 <!-- <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId>
126 <version>3.1</version> <configuration> <compilerId>groovy-eclipse-compiler</compilerId>
127 <verbose>true</verbose> <source>1.7</source> <target>1.7</target> </configuration>
128 <dependencies> <dependency> <groupId>org.codehaus.groovy</groupId> <artifactId>groovy-eclipse-compiler</artifactId>
129 <version>2.8.0-01</version> </dependency> <dependency> <groupId>org.codehaus.groovy</groupId>
130 <artifactId>groovy-eclipse-batch</artifactId> <version>2.1.5-03</version>
131 </dependency> </dependencies> </plugin> -->
133 <groupId>org.codehaus.groovy</groupId>
134 <artifactId>groovy-eclipse-compiler</artifactId>
135 <version>2.8.0-01</version>
136 <extensions>true</extensions>
143 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
144 <dockerLocation>${basedir}/target/swm/package/nix/dist_files/</dockerLocation>
145 <docker.image.prefix>simpledemo</docker.image.prefix>
146 <!-- <javax-mail-version>1.5.0</javax-mail-version> -->
147 <module.ajsc.namespace.name>dmaap</module.ajsc.namespace.name>
148 <module.ajsc.namespace.version>v1</module.ajsc.namespace.version>
149 <ajscRuntimeVersion>3.0.10-oss</ajscRuntimeVersion>
151 <!-- This will be the Absolute Root of the Project and should contain NO
153 <absoluteDistFilesRoot>/appl/${project.artifactId}</absoluteDistFilesRoot>
154 <!-- <absoluteDistFilesRoot>/opt/app/dmaap/${project.artifactId}</absoluteDistFilesRoot> -->
155 <!-- For Versioning upon installation, add /${project.version} to distFilesRoot.
156 For NO Versioning, leave as is -->
157 <!-- example: /appl/${project.artifactId}/${project.version}. Also, add
158 ${project.version} to ${runAjscHome} for running locally. -->
159 <distFilesRoot>/appl/${project.artifactId}</distFilesRoot>
160 <!-- <distFilesRoot>/opt/app/dmaap/${project.artifactId}</distFilesRoot> -->
161 <runAjscHome>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}</runAjscHome>
163 <!-- For SOA Cloud Installation <installOwnerUser>aft</installOwnerUser>
164 <installOwnerGroup>aft</installOwnerGroup> <ownerManagementGroup>com.att.acsi.saat.dt.dmaap.dev</ownerManagementGroup> -->
165 <!-- For SOA Cloud Installation -->
166 <installOwnerUser>msgrtr</installOwnerUser>
167 <installOwnerGroup>dmaap</installOwnerGroup>
168 <ownerManagementGroup>com.att.acsi.saat.dt.dmaap.dev</ownerManagementGroup>
169 <!-- Port Selection. A value of 0 will allow for dynamic port selection.
170 For local testing, you may choose to hardcode this value to something like
172 <serverPort>3904</serverPort>
173 <sslport>3905</sslport>
174 <onap.nexus.url>https://nexus.onap.org</onap.nexus.url>
175 <testRouteOffer>workstation</testRouteOffer>
176 <testEnv>DEV</testEnv>
177 <!-- <dmaapImg>${project.version}</dmaapImg> -->
178 <timestamp>${maven.build.timestamp}</timestamp>
179 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
180 <camel.version>2.21.1</camel.version>
181 <sitePath>/content/sites/site/org/onap/dmaap/messagerouter/messageservice/${project.artifactId}/${project.version}</sitePath>
182 <skip.docker.build>true</skip.docker.build>
183 <skip.docker.tag>true</skip.docker.tag>
184 <skip.docker.push>true</skip.docker.push>
185 <nexusproxy>https://nexus.onap.org</nexusproxy>
186 <docker.push.registry>nexus3.onap.org:10003</docker.push.registry>
187 <spring.version>3.2.18.RELEASE</spring.version>
190 <!-- Distribution management -->
191 <distributionManagement>
194 <url>dav:${nexusproxy}${sitePath}</url>
196 </distributionManagement>
198 <!-- End Distribution management -->
200 <!-- The standard build tasks for this project are inherited from the parent.
201 Please do not override the build tasks. However tasks and/or profiles can
202 be included here as well as additional dependencies for your service. Any
203 runtime or compile scope dependencies will be copied to the INSTALLATION_PATH/extJars
204 folder and will be made available on the AJSC classpath for your service.
205 Please, NOTE: DME2 and CSM related dependencies are EXTERNALIZED within the
206 CSI environment. Therefore, they are provided within this project as "provided"
207 dependencies. In order for the AJSC to run properly, locally, the CSM and
208 DME2 dependencies will be copied into the target/commonLibs folder and will
209 be made available to the classpath of the AJSC through the use of the system
210 property, "AJSC_EXTERNAL_LIB_FOLDERS". This system property needs to be set
211 in the "runAjsc" maven profile within the pom.xml (and, is defaulted to do
212 so). If you have a startup failure related to a missing dme2 class not found
213 exception, please contact the AJSC team for assistance. You can email support
214 at ajsc-Support <DL-ajsc-Support@att.com>. For more information regarding
215 the usage of the AJSC service pom.xml and management of dependencies, -->
218 <!-- cmn-CommonDataModel dependency added to resolve build issue not finding
221 <!-- <dependency> <groupId>csi-schemas-source</groupId> <artifactId>cmn-CommonDataModel</artifactId>
222 <version>112.0.50</version> </dependency> -->
223 <!-- TODO: add open source version here -->
227 <groupId>com.sun.mail</groupId>
228 <artifactId>javax.mail</artifactId>
229 <version>1.6.0</version>
231 <!-- javax activation is part of the JDK now -->
233 <groupId>javax.activation</groupId>
234 <artifactId>activation</artifactId>
239 <groupId>com.sun.xml.bind</groupId>
240 <artifactId>jaxb-core</artifactId>
241 <version>2.3.0.1</version>
242 <scope>compile</scope>
245 <groupId>com.sun.xml.bind</groupId>
246 <artifactId>jaxb-impl</artifactId>
247 <version>2.3.0.1</version>
248 <scope>compile</scope>
251 <artifactId>jsr181-api</artifactId>
252 <groupId>javax.jws</groupId>
258 <groupId>org.apache.cxf</groupId>
259 <artifactId>cxf-rt-transports-http</artifactId>
260 <version>3.2.5</version>
264 <groupId>com.att.cadi</groupId>
265 <artifactId>cadi-core</artifactId>
266 <version>1.3.0</version>
269 <groupId>com.att.aft</groupId>
270 <artifactId>dme2</artifactId>
271 <version>3.1.200-oss</version>
274 <groupId>org.springframework</groupId>
275 <artifactId>spring-expression</artifactId>
276 <version>4.3.18.RELEASE</version>
279 <groupId>org.springframework</groupId>
280 <artifactId>spring-messaging</artifactId>
281 <version>4.1.9.RELEASE</version>
283 <!-- <dependency> <groupId>com.sun.mail</groupId> <artifactId>javax.mail</artifactId>
284 <version>${javax-mail-version}</version> <exclusions> javax activation is
285 part of the JDK now <exclusion> <groupId>javax.activation</groupId> <artifactId>activation</artifactId>
286 </exclusion> </exclusions> </dependency> -->
289 <groupId>org.apache.zookeeper</groupId>
290 <artifactId>zookeeper</artifactId>
291 <version>3.4.10</version>
294 <groupId>org.grails</groupId>
295 <artifactId>grails-bootstrap</artifactId>
296 <version>2.5.4</version>
297 <scope>compile</scope>
300 <artifactId>ant</artifactId>
301 <groupId>org.apache.ant</groupId>
304 <artifactId>jna</artifactId>
305 <groupId>net.java.dev.jna</groupId>
308 <artifactId>ant-trax</artifactId>
309 <groupId>org.apache.ant</groupId>
312 <artifactId>gant_groovy1.8</artifactId>
313 <groupId>org.codehaus.gant</groupId>
316 <artifactId>ant-launcher</artifactId>
317 <groupId>org.apache.ant</groupId>
320 <artifactId>jline</artifactId>
321 <groupId>jline</groupId>
324 <artifactId>ivy</artifactId>
325 <groupId>org.apache.ivy</groupId>
328 <artifactId>jansi</artifactId>
329 <groupId>org.fusesource.jansi</groupId>
332 <artifactId>commons-logging</artifactId>
333 <groupId>commons-logging</groupId>
336 <artifactId>ant-junit</artifactId>
337 <groupId>org.apache.ant</groupId>
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.15</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.5</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 <!-- <build> <resources> <resource> <directory>${basedir}/ajsc-shared-config/etc</directory>
636 </resource> </resources> </build> -->
638 <!-- Use this profile to run the AJSC locally. This profile can be successfully
639 shutdown WITHIN eclipse even in a Windows environment. Debugging is also
640 available with this profile. -->
644 <skip.docker.build>false</skip.docker.build>
645 <skip.docker.tag>false</skip.docker.tag>
646 <skip.docker.push>false</skip.docker.push>
651 <groupId>org.codehaus.groovy.maven</groupId>
652 <artifactId>gmaven-plugin</artifactId>
655 <phase>validate</phase>
661 <ver>${project.version}</ver>
662 <timestamp>${maven.build.timestamp}</timestamp>
665 println project.properties['ver'];
666 if ( project.properties['ver'].endsWith("-SNAPSHOT") ) {
667 project.properties['dockertag1']=project.properties['ver'] + "-latest";
668 project.properties['dockertag2']=project.properties['ver'] + "-" + project.properties['timestamp'];
670 project.properties['dockertag1']=project.properties['ver'] + "-STAGING-latest";
671 project.properties['dockertag2']=project.properties['ver'] + "-STAGING-" + project.properties['timestamp'];
673 println 'docker tag 1: ' + project.properties['dockertag1'];
674 println 'docker tag 2: ' + project.properties['dockertag2'];
681 <groupId>io.fabric8</groupId>
682 <artifactId>docker-maven-plugin</artifactId>
683 <version>0.28.0</version>
685 <verbose>${docker.verbose}</verbose>
686 <apiVersion>${docker.apiVersion}</apiVersion>
687 <pullRegistry>${docker.pull.registry}</pullRegistry>
688 <pushRegistry>${docker.push.registry}</pushRegistry>
691 <name>onap/dmaap/dmaap-mr</name>
693 <cleanup>try</cleanup>
694 <dockerFileDir>${dockerLocation}</dockerFileDir>
695 <dockerFile>Dockerfile</dockerFile>
697 <tag>${dockertag1}</tag>
698 <tag>${dockertag2}</tag>
706 <id>generate-images</id>
707 <phase>install</phase>
714 <phase>deploy</phase>
728 <defaultGoal>initialize</defaultGoal>
731 <groupId>org.apache.maven.plugins</groupId>
732 <artifactId>maven-antrun-plugin</artifactId>
735 <phase>initialize</phase>
737 <target name="runLocal">
738 <ant antfile="${basedir}/antBuild/build.xml" target="runLocal" />
754 <defaultGoal>initialize</defaultGoal>
757 <groupId>org.codehaus.mojo</groupId>
758 <artifactId>exec-maven-plugin</artifactId>
759 <version>1.3.2</version>
762 <phase>initialize</phase>
767 <!-- In order to better mimic a SOA cloud installation of AJSC (and
768 to help eliminate Maven/Eclipse/AJSC classpath issues that may be difficult
769 to diagnose), within this profile used to run locally, we are NOT including
770 project dependencies. These will be loaded by AJSC from $AJSC_HOME/extJars.
771 The only jar needed to run AJSC is the ajsc-runner.jar, and therefore is
772 the only dependency required by this profile to run locally. -->
773 <includeProjectDependencies>false</includeProjectDependencies>
774 <includePluginDependencies>true</includePluginDependencies>
775 <executable>java</executable>
776 <mainClass>com.att.ajsc.runner.Runner</mainClass>
777 <executableDependency>
778 <groupId>com.att.ajsc</groupId>
779 <artifactId>ajsc-runner</artifactId>
780 </executableDependency>
781 <additionalClasspathElements>
782 <additionalClasspathElement>${basedir}/ajsc-shared-config/etc</additionalClasspathElement>
783 </additionalClasspathElements>
785 <environmentVariables>
786 <AJSC_HOME>${runAjscHome}</AJSC_HOME>
787 </environmentVariables>
789 <!-- Main AJSC System Properties below (necessary for proper startup) -->
793 <value>${runAjscHome}</value>
797 <value>${runAjscHome}</value>
800 <key>AJSC_CONF_HOME</key>
801 <value>${basedir}/bundleconfig-local</value>
804 <key>logback.configurationFile</key>
805 <value>${basedir}/ajsc-shared-config/etc/logback.xml</value>
808 <key>com.att.eelf.logging.file</key>
809 <value>logback.xml</value>
812 <key>com.att.eelf.logging.path</key>
813 <value>${basedir}/ajsc-shared-config/etc</value>
816 <key>logging.config</key>
817 <value>${basedir}/ajsc-shared-config/etc/logback.xml</value>
820 <key>AJSC_SHARED_CONFIG</key>
821 <value>${basedir}/ajsc-shared-config</value>
824 <!-- Please, NOTE: The following 2 system properties will normally
825 be set within the sys-props.properties file once deployed to a node. We are
826 setting them HERE to run locally to make more efficient use of maven variable
827 replacement for ${basedir} -->
828 <!-- AJSC_EXTERNAL_LIB_FOLDERS represents the particular jars that
829 will be externalized on a CSI node. This includes dme2 and csm related artifact. -->
831 <key>AJSC_EXTERNAL_LIB_FOLDERS</key>
832 <value>${basedir}/target/commonLibs</value>
834 <!-- AJSC_EXTERNAL_PROPERTIES_FOLDERS represents the particular
835 files that may need to be added to the classpath. These files will be externalized
836 on a CSI node. This includes dme2 and csm related artifact (such as csm-config-app.properties).
837 Failure to have these files on the classpath may result in errors thrown
838 by csm framework. -->
840 <key>AJSC_EXTERNAL_PROPERTIES_FOLDERS</key>
841 <value>${basedir}/ajsc-shared-config/etc</value>
845 <key>AJSC_SERVICE_NAMESPACE</key>
846 <value>${module.ajsc.namespace.name}</value>
849 <key>AJSC_SERVICE_VERSION</key>
850 <value>${module.ajsc.namespace.version}</value>
853 <key>SOACLOUD_SERVICE_VERSION</key>
854 <value>${project.version}</value>
857 <key>server.port</key>
858 <value>${serverPort}</value>
862 <!-- Command Line Arguments to add to the java command. Here, you
863 can specify the port as well as the Context you want your service to run
864 in. Use context=/ to run in an unnamed Context (Root Context). The default
865 configuration of the AJSC is to run under the / Context. Setting the port
866 here can aid during the development phase of your service. However, you can
867 leave this argument out entirely, and the AJSC will default to using an Ephemeral
870 <argument>context=/</argument>
871 <argument>port=${serverPort}</argument>
872 <argument>sslport=${sslport}</argument>
878 <executable>java</executable>
882 <groupId>com.att.ajsc</groupId>
883 <artifactId>ajsc-runner</artifactId>
884 <version>${ajscRuntimeVersion}</version>
893 <id>standardbuild</id>
902 <directory>src/main/resources</directory>
904 <exclude>extApps/*.*</exclude>
905 <exclude>${module.ajsc.namespace.name}/**</exclude>
909 <directory>src/main/ajsc/\${namespace}_${namespaceVersion}/\${namespace}/\${namespaceVersion}</directory>
911 <exclude>**/*.route</exclude>
912 <exclude>**/*.props</exclude>
913 <exclude>**/*.xslt</exclude>
914 <exclude>**/*.vm</exclude>
915 <exclude>**/*.jar</exclude>
916 <exclude>**/*.xml</exclude>
922 <groupId>org.apache.maven.plugins</groupId>
923 <artifactId>maven-compiler-plugin</artifactId>
924 <version>3.1</version>
927 <groupId>org.codehaus.groovy</groupId>
928 <artifactId>groovy-eclipse-compiler</artifactId>
929 <version>2.8.0-01</version>
930 <extensions>true</extensions>
934 <groupId>org.codehaus.mojo</groupId>
935 <artifactId>exec-maven-plugin</artifactId>
936 <version>1.2.1</version>
945 <executable>bash</executable>
947 <argument>runServer.sh</argument>
952 <groupId>org.codehaus.mojo</groupId>
953 <artifactId>build-helper-maven-plugin</artifactId>
954 <version>1.9</version>
957 <id>add-source-groovy-ajsc-arch-parent</id>
958 <phase>generate-sources</phase>
960 <goal>add-source</goal>
964 <source>src/main/groovy</source>
969 <id>add-test-source-groovy-ajsc-arch-parent</id>
970 <phase>generate-test-sources</phase>
972 <goal>add-test-source</goal>
976 <source>src/test/groovy</source>
981 <id>regex-properties-ajsc-arch-parent</id>
982 <phase>initialize</phase>
984 <goal>regex-properties</goal>
987 <regexPropertySettings>
988 <regexPropertySetting>
989 <name>replaceWinFilePath</name>
990 <value>${runAjscHome}</value>
992 <replacement>/</replacement>
993 <failIfNoMatch>false</failIfNoMatch>
994 </regexPropertySetting>
995 <regexPropertySetting>
996 <name>replaceWinBasedirPath</name>
997 <value>${basedir}</value>
999 <replacement>/</replacement>
1000 <failIfNoMatch>false</failIfNoMatch>
1001 </regexPropertySetting>
1002 </regexPropertySettings>
1008 <groupId>org.codehaus.mojo</groupId>
1009 <artifactId>properties-maven-plugin</artifactId>
1010 <version>1.0-alpha-2</version>
1013 <id>write-project-properties-ajsc-arch-parent</id>
1014 <phase>generate-resources</phase>
1016 <goal>write-project-properties</goal>
1020 ${project.build.outputDirectory}/build.properties
1027 <groupId>org.apache.maven.plugins</groupId>
1028 <artifactId>maven-assembly-plugin</artifactId>
1029 <version>2.4</version>
1032 <id>make-assembly-ajsc-arch-parent</id>
1033 <phase>package</phase>
1040 <finalName>${project.artifactId}</finalName>
1042 <descriptor>src/main/assemble/ajsc_runtime_assembly.xml</descriptor>
1047 <groupId>org.codehaus.groovy.maven</groupId>
1048 <artifactId>gmaven-plugin</artifactId>
1049 <version>1.0</version>
1052 <id>gmaven-ajsc-arch-parent</id>
1053 <phase>package</phase>
1055 <goal>execute</goal>
1058 <sourcepath>src/main/groovy</sourcepath>
1060 import ajsc.AssemblyService;
1061 ajsc.AssemblyService.getBasedir(project.basedir.getAbsolutePath(),"${distFilesRoot}")
1068 <groupId>org.apache.maven.plugins</groupId>
1069 <artifactId>maven-antrun-plugin</artifactId>
1070 <version>1.7</version>
1073 <id>prep_service_runtime-ajsc-arch-parent</id>
1074 <phase>generate-resources</phase>
1076 <target name="prep_service_runtime">
1077 <echo message="ENTERING 'copy_services_template' ant tasks" />
1078 <!-- <filter token="basedir" value="${basedir}" /> -->
1079 <!-- delete any prior stating stuff before package phase -->
1080 <delete dir="target/versioned-ajsc" includes="**/*" />
1081 <delete dir="target/versioned-runtime" includes="**/*" />
1082 <delete dir="target/CDP" includes="**/*" />
1084 <!-- This is where replacer plugin replaces tokens (Example: __module_ajsc_namespace_name__
1085 is replaced by module.ajsc.namespace.name) -->
1086 <copy todir="target/versioned-ajsc">
1087 <fileset dir="src/main/ajsc" includes="**/*" />
1090 <!-- Copying the CDP, bundleconfig, and StaticContent to the target
1091 directory for future use by replacer plugin -->
1092 <copy todir="target/CDP" failonerror="false">
1093 <fileset dir="CDP" includes="**/*.sh" />
1095 <copy flatten="true" file="CDP/SampleBlueprint.xml"
1097 tofile="target/CDP/${module.ajsc.namespace.name}Blueprint.xml" />
1098 <copy todir="target/staticContent" failonerror="false">
1099 <fileset dir="staticContent" includes="**/*" />
1101 <copy todir="target/bundleconfig" failonerror="false">
1102 <!-- filtering="true"> -->
1103 <fileset dir="bundleconfig" />
1106 <echo message="EXITING 'copy_services_template' ant tasks" />
1107 <echo message="ENTERING 'copy_runtime_template' ant tasks" />
1108 <copy todir="target/versioned-runtime">
1109 <fileset dir="src/main/runtime" includes="**/*" />
1112 file="target/versioned-runtime/context/__module.ajsc.namespace.name__#__module.ajsc.namespace.version__.context" />
1113 <copy flatten="true"
1114 file="src/main/runtime/context/__module.ajsc.namespace.name__#__module.ajsc.namespace.version__.context"
1115 tofile="target/versioned-runtime/context/${module.ajsc.namespace.name}#${module.ajsc.namespace.version}.context" />
1117 file="target/versioned-runtime/deploymentPackage/__module.ajsc.namespace.name__#__module.ajsc.namespace.version__.json" />
1118 <copy flatten="true"
1119 file="src/main/runtime/deploymentPackage/__module.ajsc.namespace.name__#__module.ajsc.namespace.version__.json"
1120 tofile="target/versioned-runtime/deploymentPackage/${module.ajsc.namespace.name}#${module.ajsc.namespace.version}.json" />
1122 file="target/versioned-runtime/shiroRole/contextadmin#__module.ajsc.namespace.name__.json" />
1123 <copy flatten="true"
1124 file="src/main/runtime/shiroRole/contextadmin#__module.ajsc.namespace.name__.json"
1125 tofile="target/versioned-runtime/shiroRole/contextadmin#${module.ajsc.namespace.name}.json" />
1127 file="target/versioned-runtime/shiroUserRole/ajsc#contextAdmin#__module.ajsc.namespace.name__.json" />
1128 <copy flatten="true"
1129 file="src/main/runtime/shiroUserRole/ajsc#contextadmin#__module.ajsc.namespace.name__.json"
1130 tofile="target/versioned-runtime/shiroUserRole/ajsc#contextadmin#${module.ajsc.namespace.name}.json" />
1131 <echo message="EXITING 'copy_runtime_template' ant tasks" />
1140 <phase>package</phase>
1144 srcdir="${basedir}/target/swm/package/nix/dist_files${distFilesRoot}"
1145 includes="**/*.sh,**/*.xml,**/*.properties,**/*.xsd" />
1153 <id>prep_home_directory_for_swm_pkgcreate-ajsc-arch-parent</id>
1154 <phase>package</phase>
1156 <target name="prep_home_directory_for_swm_pkgcreate">
1157 <ant antfile="${basedir}/antBuild/build.xml" target="prep_home_directory_for_swm_pkgcreate" />
1167 <groupId>org.apache.maven.plugins</groupId>
1168 <artifactId>maven-dependency-plugin</artifactId>
1169 <version>2.8</version>
1172 <id>copy-dependencies-ajsc-arch-parent</id>
1173 <phase>prepare-package</phase>
1175 <goal>copy-dependencies</goal>
1178 <includeScope>runtime</includeScope>
1179 <excludeArtifactIds>ajsc-bom,ajsc-core,ajsc-runner,ajsc-war</excludeArtifactIds>
1180 <outputDirectory>${project.build.directory}/userjars</outputDirectory>
1181 <silent>true</silent>
1185 <id>copy-dependencies-ajsc-arch-parent-commonLibs</id>
1186 <phase>prepare-package</phase>
1188 <goal>copy-dependencies</goal>
1191 <includeScope>provided</includeScope>
1192 <includeGroupIds>net.cingular.enterprise,com.att.aft,dom4j</includeGroupIds>
1193 <!-- <includeGroupIds>com.att.aft</includeGroupIds> -->
1194 <outputDirectory>${project.build.directory}/commonLibs</outputDirectory>
1195 <silent>true</silent>
1200 <phase>prepare-package</phase>
1202 <goal>copy-dependencies</goal>
1205 <includeArtifactIds>ajsc-runner</includeArtifactIds>
1206 <outputDirectory>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}/lib</outputDirectory>
1212 <artifactId>maven-resources-plugin</artifactId>
1213 <version>2.7</version>
1217 <phase>package</phase>
1219 <goal>copy-resources</goal>
1222 <outputDirectory>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}/etc</outputDirectory>
1225 <directory>src/main/config</directory>
1232 <phase>package</phase>
1234 <goal>copy-resources</goal>
1237 <outputDirectory>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}/bin</outputDirectory>
1240 <directory>src/main/scripts</directory>
1246 <id>copy-docker-file</id>
1247 <phase>prepare-package</phase>
1249 <goal>copy-resources</goal>
1252 <outputDirectory>${dockerLocation}</outputDirectory>
1253 <overwrite>true</overwrite>
1256 <directory>${basedir}/src/main/resources/docker</directory>
1257 <filtering>true</filtering>
1259 <include>**/*</include>
1270 <groupId>com.google.code.maven-replacer-plugin</groupId>
1271 <artifactId>replacer</artifactId>
1272 <version>1.5.2</version>
1275 <id>google-replacer-ajsc-arch-parent</id>
1276 <phase>prepare-package</phase>
1278 <goal>replace</goal>
1281 <basedir>${project.build.directory}</basedir>
1283 <include>staticContent/**/*.html</include>
1284 <include>CDP/**</include>
1285 <include>bundleconfig/**</include>
1286 <include>versioned-runtime/**/*.context</include>
1287 <include>versioned-runtime/**/*.json</include>
1288 <include>versioned-ajsc/**/*.route</include>
1289 <include>versioned-ajsc/**/*.groovy</include>
1290 <include>versioned-ajsc/**/*.xml</include>
1291 <include>classes/*.properties</include>
1292 <include>swm/package/nix/dist_files${distFilesRoot}/etc/*.properties</include>
1294 <escape>true</escape>
1297 <token>__module_ajsc_namespace_name__</token>
1298 <value>${module.ajsc.namespace.name}</value>
1301 <token>__module_ajsc_namespace_version__</token>
1302 <value>${module.ajsc.namespace.version}</value>
1305 <token>__ajscHome__</token>
1306 <value>${replaceWinFilePath}</value>
1309 <token>__projectGroupId__</token>
1310 <value>${project.groupId}</value>
1313 <token>__projectArtifactId__</token>
1314 <value>${project.artifactId}</value>
1317 <token>__projectVersion__</token>
1318 <value>${project.version}</value>
1321 <token>__basedir__</token>
1322 <value>${replaceWinBasedirPath}</value>
1333 <groupId>org.apache.maven.plugins</groupId>
1334 <artifactId>maven-surefire-plugin</artifactId>
1335 <version>2.14.1</version>
1338 <exclude>**/AbstractTest.java</exclude>