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>
51 <groupId>org.apache.maven.plugins</groupId>
52 <artifactId>maven-site-plugin</artifactId>
53 <version>3.6</version>
56 <groupId>org.apache.maven.wagon</groupId>
57 <artifactId>wagon-webdav-jackrabbit</artifactId>
58 <version>2.10</version>
64 <groupId>org.apache.maven.plugins</groupId>
65 <artifactId>maven-jar-plugin</artifactId>
66 <version>3.0.2</version>
69 <!-- <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-javadoc-plugin</artifactId>
70 <version>2.10.4</version> <configuration> <additionalparam>-Xdoclint:none</additionalparam>
71 </configuration> <executions> <execution> <id>attach-javadocs</id> <goals>
72 <goal>jar</goal> </goals> </execution> </executions> </plugin> -->
74 <groupId>org.apache.maven.plugins</groupId>
75 <artifactId>maven-source-plugin</artifactId>
76 <version>3.0.0</version>
79 <id>attach-sources</id>
81 <goal>jar-no-fork</goal>
87 <groupId>org.apache.maven.plugins</groupId>
88 <artifactId>maven-release-plugin</artifactId>
89 <version>2.5.3</version>
91 <autoVersionSubmodules>true</autoVersionSubmodules>
92 <checkModificationExcludes>
93 </checkModificationExcludes>
97 <groupId>org.apache.maven.scm</groupId>
98 <artifactId>maven-scm-provider-gitexe</artifactId>
99 <version>1.9.4</version>
105 <groupId>com.spotify</groupId>
106 <artifactId>docker-maven-plugin</artifactId>
107 <version>1.0.0</version>
109 <imageName>onap/dmaap/dmaap-mr</imageName>
110 <dockerDirectory>${dockerLocation}</dockerDirectory>
111 <serverId>docker-hub</serverId>
113 <imageTag>${dockertag1}</imageTag>
114 <imageTag>${dockertag2}</imageTag>
116 <forceTags>true</forceTags>
119 <targetPath>/</targetPath>
120 <directory>${dockerLocation}</directory>
121 <include>${project.build.finalName}.jar</include>
124 <targetPath>/</targetPath>
125 <directory>${project.build.directory}</directory>
126 <include>**/**</include>
133 <phase>install</phase>
138 <skipDockerBuild>${skip.docker.build}</skipDockerBuild>
143 <id>tag-image-project-version</id>
144 <phase>install</phase>
149 <image>onap/dmaap/dmaap-mr</image>
150 <newName>${docker.push.registry}/onap/dmaap/dmaap-mr:${dockertag2}</newName>
151 <skipDockerTag>${skip.docker.push}</skipDockerTag>
156 <id>tag-image-latest</id>
157 <phase>install</phase>
162 <image>onap/dmaap/dmaap-mr</image>
163 <newName>${docker.push.registry}/onap/dmaap/dmaap-mr:${dockertag1}</newName>
164 <skipDockerTag>${skip.docker.push}</skipDockerTag>
169 <id>push-image-latest</id>
170 <phase>deploy</phase>
175 <imageName>${docker.push.registry}/onap/dmaap/dmaap-mr:${dockertag2}</imageName>
176 <skipDockerPush>${skip.docker.push}</skipDockerPush>
182 <phase>deploy</phase>
187 <imageName>${docker.push.registry}/onap/dmaap/dmaap-mr:${dockertag1}</imageName>
188 <skipDockerPush>${skip.docker.push}</skipDockerPush>
194 <groupId>com.blackducksoftware.integration</groupId>
195 <artifactId>hub-maven-plugin</artifactId>
196 <version>1.0.4</version>
197 <inherited>false</inherited>
199 <target>${project.basedir}</target>
203 <id>create-bdio-file</id>
204 <phase>package</phase>
206 <goal>createHubOutput</goal>
212 <!-- <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId>
213 <version>3.1</version> <configuration> <compilerId>groovy-eclipse-compiler</compilerId>
214 <verbose>true</verbose> <source>1.7</source> <target>1.7</target> </configuration>
215 <dependencies> <dependency> <groupId>org.codehaus.groovy</groupId> <artifactId>groovy-eclipse-compiler</artifactId>
216 <version>2.8.0-01</version> </dependency> <dependency> <groupId>org.codehaus.groovy</groupId>
217 <artifactId>groovy-eclipse-batch</artifactId> <version>2.1.5-03</version>
218 </dependency> </dependencies> </plugin> -->
220 <groupId>org.codehaus.groovy</groupId>
221 <artifactId>groovy-eclipse-compiler</artifactId>
222 <version>2.8.0-01</version>
223 <extensions>true</extensions>
230 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
231 <dockerLocation>${basedir}/target/swm/package/nix/dist_files/</dockerLocation>
232 <docker.image.prefix>simpledemo</docker.image.prefix>
233 <!-- <javax-mail-version>1.5.0</javax-mail-version> -->
234 <module.ajsc.namespace.name>dmaap</module.ajsc.namespace.name>
235 <module.ajsc.namespace.version>v1</module.ajsc.namespace.version>
236 <ajscRuntimeVersion>3.0.10-oss</ajscRuntimeVersion>
238 <!-- This will be the Absolute Root of the Project and should contain NO
240 <absoluteDistFilesRoot>/appl/${project.artifactId}</absoluteDistFilesRoot>
241 <!-- <absoluteDistFilesRoot>/opt/app/dmaap/${project.artifactId}</absoluteDistFilesRoot> -->
242 <!-- For Versioning upon installation, add /${project.version} to distFilesRoot.
243 For NO Versioning, leave as is -->
244 <!-- example: /appl/${project.artifactId}/${project.version}. Also, add
245 ${project.version} to ${runAjscHome} for running locally. -->
246 <distFilesRoot>/appl/${project.artifactId}</distFilesRoot>
247 <!-- <distFilesRoot>/opt/app/dmaap/${project.artifactId}</distFilesRoot> -->
248 <runAjscHome>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}</runAjscHome>
250 <!-- For SOA Cloud Installation <installOwnerUser>aft</installOwnerUser>
251 <installOwnerGroup>aft</installOwnerGroup> <ownerManagementGroup>com.att.acsi.saat.dt.dmaap.dev</ownerManagementGroup> -->
252 <!-- For SOA Cloud Installation -->
253 <installOwnerUser>msgrtr</installOwnerUser>
254 <installOwnerGroup>dmaap</installOwnerGroup>
255 <ownerManagementGroup>com.att.acsi.saat.dt.dmaap.dev</ownerManagementGroup>
256 <!-- Port Selection. A value of 0 will allow for dynamic port selection.
257 For local testing, you may choose to hardcode this value to something like
259 <serverPort>3904</serverPort>
260 <sslport>3905</sslport>
261 <onap.nexus.url>https://nexus.onap.org</onap.nexus.url>
262 <testRouteOffer>workstation</testRouteOffer>
263 <testEnv>DEV</testEnv>
264 <!-- <dmaapImg>${project.version}</dmaapImg> -->
265 <timestamp>${maven.build.timestamp}</timestamp>
266 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
267 <camel.version>2.21.1</camel.version>
268 <sitePath>/content/sites/site/org/onap/dmaap/messagerouter/messageservice/${project.artifactId}/${project.version}</sitePath>
269 <skip.docker.build>true</skip.docker.build>
270 <skip.docker.push>true</skip.docker.push>
271 <nexusproxy>https://nexus.onap.org</nexusproxy>
272 <docker.push.registry>nexus3.onap.org:10003</docker.push.registry>
273 <spring.version>3.2.18.RELEASE</spring.version>
276 <!-- Distribution management -->
277 <distributionManagement>
280 <url>dav:${nexusproxy}${sitePath}</url>
282 </distributionManagement>
284 <!-- End Distribution management -->
286 <!-- The standard build tasks for this project are inherited from the parent.
287 Please do not override the build tasks. However tasks and/or profiles can
288 be included here as well as additional dependencies for your service. Any
289 runtime or compile scope dependencies will be copied to the INSTALLATION_PATH/extJars
290 folder and will be made available on the AJSC classpath for your service.
291 Please, NOTE: DME2 and CSM related dependencies are EXTERNALIZED within the
292 CSI environment. Therefore, they are provided within this project as "provided"
293 dependencies. In order for the AJSC to run properly, locally, the CSM and
294 DME2 dependencies will be copied into the target/commonLibs folder and will
295 be made available to the classpath of the AJSC through the use of the system
296 property, "AJSC_EXTERNAL_LIB_FOLDERS". This system property needs to be set
297 in the "runAjsc" maven profile within the pom.xml (and, is defaulted to do
298 so). If you have a startup failure related to a missing dme2 class not found
299 exception, please contact the AJSC team for assistance. You can email support
300 at ajsc-Support <DL-ajsc-Support@att.com>. For more information regarding
301 the usage of the AJSC service pom.xml and management of dependencies, -->
304 <!-- cmn-CommonDataModel dependency added to resolve build issue not finding
307 <!-- <dependency> <groupId>csi-schemas-source</groupId> <artifactId>cmn-CommonDataModel</artifactId>
308 <version>112.0.50</version> </dependency> -->
309 <!-- TODO: add open source version here -->
313 <groupId>com.sun.mail</groupId>
314 <artifactId>javax.mail</artifactId>
315 <version>1.6.0</version>
317 <!-- javax activation is part of the JDK now -->
319 <groupId>javax.activation</groupId>
320 <artifactId>activation</artifactId>
325 <groupId>com.sun.xml.bind</groupId>
326 <artifactId>jaxb-core</artifactId>
327 <version>2.3.0.1</version>
328 <scope>compile</scope>
331 <groupId>com.sun.xml.bind</groupId>
332 <artifactId>jaxb-impl</artifactId>
333 <version>2.3.0.1</version>
334 <scope>compile</scope>
337 <artifactId>jsr181-api</artifactId>
338 <groupId>javax.jws</groupId>
344 <groupId>org.apache.cxf</groupId>
345 <artifactId>cxf-rt-transports-http</artifactId>
346 <version>3.2.5</version>
350 <groupId>com.att.cadi</groupId>
351 <artifactId>cadi-core</artifactId>
352 <version>1.3.0</version>
355 <groupId>com.att.aft</groupId>
356 <artifactId>dme2</artifactId>
357 <version>3.1.200-oss</version>
360 <groupId>org.springframework</groupId>
361 <artifactId>spring-expression</artifactId>
362 <version>4.3.18.RELEASE</version>
365 <groupId>org.springframework</groupId>
366 <artifactId>spring-messaging</artifactId>
367 <version>4.1.9.RELEASE</version>
369 <!-- <dependency> <groupId>com.sun.mail</groupId> <artifactId>javax.mail</artifactId>
370 <version>${javax-mail-version}</version> <exclusions> javax activation is
371 part of the JDK now <exclusion> <groupId>javax.activation</groupId> <artifactId>activation</artifactId>
372 </exclusion> </exclusions> </dependency> -->
375 <groupId>org.apache.zookeeper</groupId>
376 <artifactId>zookeeper</artifactId>
377 <version>3.4.10</version>
380 <groupId>org.grails</groupId>
381 <artifactId>grails-bootstrap</artifactId>
382 <version>2.5.4</version>
383 <scope>compile</scope>
386 <artifactId>ant</artifactId>
387 <groupId>org.apache.ant</groupId>
390 <artifactId>jna</artifactId>
391 <groupId>net.java.dev.jna</groupId>
394 <artifactId>ant-trax</artifactId>
395 <groupId>org.apache.ant</groupId>
398 <artifactId>gant_groovy1.8</artifactId>
399 <groupId>org.codehaus.gant</groupId>
402 <artifactId>ant-launcher</artifactId>
403 <groupId>org.apache.ant</groupId>
406 <artifactId>jline</artifactId>
407 <groupId>jline</groupId>
410 <artifactId>ivy</artifactId>
411 <groupId>org.apache.ivy</groupId>
414 <artifactId>jansi</artifactId>
415 <groupId>org.fusesource.jansi</groupId>
418 <artifactId>commons-logging</artifactId>
419 <groupId>commons-logging</groupId>
422 <artifactId>ant-junit</artifactId>
423 <groupId>org.apache.ant</groupId>
428 <groupId>org.springframework</groupId>
429 <artifactId>spring-webmvc</artifactId>
430 <version>4.3.18.RELEASE</version>
433 <groupId>org.springframework</groupId>
434 <artifactId>spring-core</artifactId>
435 <version>4.3.18.RELEASE</version>
438 <groupId>org.springframework</groupId>
439 <artifactId>spring-beans</artifactId>
440 <version>4.3.18.RELEASE</version>
444 <groupId>org.springframework</groupId>
445 <artifactId>spring-context</artifactId>
446 <version>4.3.18.RELEASE</version>
449 <groupId>commons-io</groupId>
450 <artifactId>commons-io</artifactId>
451 <version>2.4</version>
454 <groupId>org.apache.commons</groupId>
455 <artifactId>commons-io</artifactId>
456 <version>1.3.2</version>
459 <groupId>org.onap.dmaap.messagerouter.msgrtr</groupId>
460 <artifactId>msgrtr</artifactId>
461 <version>1.1.15</version>
464 <groupId>org.slf4j</groupId>
465 <artifactId>slf4j-log4j12</artifactId>
468 <groupId>com.att.ajsc</groupId>
469 <artifactId>ajsc-core</artifactId>
472 <groupId>org.apache.tomcat</groupId>
473 <artifactId>tomcat-catalina</artifactId>
477 <groupId>org.apache.tomcat.embed</groupId>
478 <artifactId>tomcat-embed-core</artifactId>
481 <groupId>org.apache.tomcat</groupId>
482 <artifactId>tomcat-util</artifactId>
484 <!-- <exclusion> <groupId>com.att.nsa</groupId> <artifactId>saToolkit</artifactId>
487 <groupId>com.att.nsa</groupId>
488 <artifactId>tomcat-util</artifactId>
492 <groupId>commons-beanutils</groupId>
493 <artifactId>commons-beanutils</artifactId>
498 <groupId>org.mockito</groupId>
499 <artifactId>mockito-core</artifactId>
500 <version>1.10.19</version>
504 <groupId>org.powermock</groupId>
505 <artifactId>powermock-module-junit4</artifactId>
506 <version>1.6.4</version>
510 <groupId>org.powermock</groupId>
511 <artifactId>powermock-api-mockito</artifactId>
512 <version>1.6.4</version>
515 <!-- <dependency> <groupId>org.codehaus.jackson</groupId> <artifactId>jackson-jaxrs</artifactId>
516 <version>1.9.13</version> </dependency> <dependency> <groupId>org.codehaus.jackson</groupId>
517 <artifactId>jackson-mapper-asl</artifactId> <version>1.9.13</version> </dependency>
518 <dependency> <groupId>org.codehaus.jackson</groupId> <artifactId>jackson-core-asl</artifactId>
519 <version>1.9.13</version> </dependency> -->
522 <groupId>com.fasterxml.jackson.jaxrs</groupId>
523 <artifactId>jackson-jaxrs-json-provider</artifactId>
524 <version>2.2.3</version>
528 <groupId>com.fasterxml.jackson.core</groupId>
529 <artifactId>jackson-core</artifactId>
530 <version>2.8.11</version>
534 <groupId>com.fasterxml.jackson.core</groupId>
535 <artifactId>jackson-databind</artifactId>
536 <version>2.8.11.1</version>
539 <groupId>org.grails</groupId>
540 <artifactId>grails-web</artifactId>
541 <version>2.5.4</version>
544 <groupId>org.grails</groupId>
545 <artifactId>grails-web-jsp</artifactId>
550 <groupId>org.codehaus.groovy</groupId>
551 <artifactId>groovy-all</artifactId>
552 <version>2.4.8</version>
553 <scope>compile</scope>
556 <artifactId>jline</artifactId>
557 <groupId>jline</groupId>
563 <groupId>junit</groupId>
564 <artifactId>junit</artifactId>
565 <version>4.11</version>
570 <groupId>org.json</groupId>
571 <artifactId>json</artifactId>
572 <version>20131018</version>
575 <!-- CXF JAX-RS extension -->
577 <groupId>org.apache.cxf</groupId>
578 <artifactId>cxf-rt-rs-extension-providers</artifactId>
579 <version>3.2.2</version>
580 <!-- <exclusions> <exclusion> <groupId>org.apache.cxf</groupId> <artifactId>cxf-rt-transports-http</artifactId>
581 </exclusion> </exclusions> -->
584 <groupId>org.apache.cxf</groupId>
585 <artifactId>cxf-core</artifactId>
589 <!-- <dependency> <groupId>org.apache.cxf</groupId> <artifactId>cxf-rt-transports-http</artifactId>
590 <version>3.1.14</version> </dependency> -->
592 <groupId>org.codehaus.jettison</groupId>
593 <artifactId>jettison</artifactId>
594 <version>1.3.7</version>
597 <!-- <dependency> <groupId>dom4j</groupId> <artifactId>dom4j</artifactId>
598 <version>1.6.1</version> <scope>provided</scope> </dependency> -->
600 <groupId>com.att.ajsc</groupId>
601 <artifactId>ajsc-archetype-parent</artifactId>
602 <version>3.0.10-oss</version>
607 <groupId>org.onap.aaf.authz</groupId>
608 <artifactId>aaf-cadi-aaf</artifactId>
609 <version>2.1.5</version>
612 <groupId>backport-util-concurrent</groupId>
613 <artifactId>backport-util-concurrent</artifactId>
614 <version>3.1</version>
617 <groupId>org.apache.camel</groupId>
618 <artifactId>camel-core</artifactId>
619 <version>${camel.version}</version>
622 <groupId>org.apache.camel</groupId>
623 <artifactId>camel-quartz</artifactId>
624 <version>${camel.version}</version>
627 <groupId>org.apache.camel</groupId>
628 <artifactId>camel-spring</artifactId>
629 <version>${camel.version}</version>
632 <groupId>org.apache.camel</groupId>
633 <artifactId>camel-restlet</artifactId>
634 <version>${camel.version}</version>
637 <artifactId>org.restlet</artifactId>
638 <groupId>org.restlet.jse</groupId>
643 <groupId>org.apache.camel</groupId>
644 <artifactId>camel-servlet</artifactId>
645 <version>${camel.version}</version>
646 <!-- <exclusions> <exclusion> <groupId>commons-httpclient</groupId> <artifactId>commons-httpclient</artifactId>
647 </exclusion> </exclusions> -->
649 <!-- <dependency> <groupId>org.apache.httpcomponents</groupId> <artifactId>httpclient</artifactId>
650 <version>4.0</version> </dependency> -->
653 <groupId>org.apache.camel</groupId>
654 <artifactId>camel-http4</artifactId>
655 <version>${camel.version}</version>
658 <groupId>org.apache.geronimo.specs</groupId>
659 <artifactId>geronimo-servlet_2.5_spec</artifactId>
664 <groupId>org.apache.camel</groupId>
665 <artifactId>camel-groovy</artifactId>
666 <version>${camel.version}</version>
669 <groupId>org.apache.camel</groupId>
670 <artifactId>camel-twitter</artifactId>
671 <version>${camel.version}</version>
674 <groupId>org.apache.camel</groupId>
675 <artifactId>camel-mail</artifactId>
676 <version>${camel.version}</version>
679 <groupId>org.apache.camel</groupId>
680 <artifactId>camel-smpp</artifactId>
681 <version>${camel.version}</version>
684 <groupId>org.apache.camel</groupId>
685 <artifactId>camel-jms</artifactId>
686 <version>${camel.version}</version>
689 <groupId>org.apache.camel</groupId>
690 <artifactId>camel-script</artifactId>
691 <version>${camel.version}</version>
694 <groupId>org.apache.camel</groupId>
695 <artifactId>camel-xmpp</artifactId>
696 <version>${camel.version}</version>
699 <groupId>org.igniterealtime.smack</groupId>
700 <artifactId>smack-tcp</artifactId>
701 <version>4.1.0-rc1</version>
704 <groupId>org.apache.camel</groupId>
705 <artifactId>camel-velocity</artifactId>
706 <version>${camel.version}</version>
709 <groupId>com.att.ajsc</groupId>
710 <artifactId>ajsc-runner</artifactId>
711 <version>3.0.10-oss</version>
712 <scope>runtime</scope>
715 <groupId>com.att.ajsc</groupId>
716 <artifactId>ajsc-core</artifactId>
717 <version>3.0.10-oss</version>
718 <scope>provided</scope>
721 <!-- <build> <resources> <resource> <directory>${basedir}/ajsc-shared-config/etc</directory>
722 </resource> </resources> </build> -->
724 <!-- Use this profile to run the AJSC locally. This profile can be successfully
725 shutdown WITHIN eclipse even in a Windows environment. Debugging is also
726 available with this profile. -->
730 <skip.docker.build>false</skip.docker.build>
731 <skip.docker.tag>false</skip.docker.tag>
732 <skip.docker.push>false</skip.docker.push>
737 <groupId>org.codehaus.groovy.maven</groupId>
738 <artifactId>gmaven-plugin</artifactId>
741 <phase>validate</phase>
747 <ver>${project.version}</ver>
748 <timestamp>${maven.build.timestamp}</timestamp>
751 println project.properties['ver'];
753 if ( project.properties['ver'] != null ) {
754 versionArray = project.properties['ver'].split('\\.');
756 if ( project.properties['ver'].endsWith("-SNAPSHOT") ) {
757 project.properties['dockertag1']=project.properties['ver'] + "-latest";
758 project.properties['dockertag2']=project.properties['ver'] + "-" + project.properties['timestamp'];
760 project.properties['dockertag1']=versionArray[0] + '.' + versionArray[1] + "-STAGING-latest";
761 project.properties['dockertag2']=project.properties['ver'] + "-STAGING-" + project.properties['timestamp'];
763 println 'docker tag 1: ' + project.properties['dockertag1'];
764 println 'docker tag 2: ' + project.properties['dockertag2'];
777 <defaultGoal>initialize</defaultGoal>
780 <groupId>org.apache.maven.plugins</groupId>
781 <artifactId>maven-antrun-plugin</artifactId>
784 <phase>initialize</phase>
786 <target name="runLocal">
787 <ant antfile="${basedir}/antBuild/build.xml" target="runLocal" />
803 <defaultGoal>initialize</defaultGoal>
806 <groupId>org.codehaus.mojo</groupId>
807 <artifactId>exec-maven-plugin</artifactId>
808 <version>1.3.2</version>
811 <phase>initialize</phase>
816 <!-- In order to better mimic a SOA cloud installation of AJSC (and
817 to help eliminate Maven/Eclipse/AJSC classpath issues that may be difficult
818 to diagnose), within this profile used to run locally, we are NOT including
819 project dependencies. These will be loaded by AJSC from $AJSC_HOME/extJars.
820 The only jar needed to run AJSC is the ajsc-runner.jar, and therefore is
821 the only dependency required by this profile to run locally. -->
822 <includeProjectDependencies>false</includeProjectDependencies>
823 <includePluginDependencies>true</includePluginDependencies>
824 <executable>java</executable>
825 <mainClass>com.att.ajsc.runner.Runner</mainClass>
826 <executableDependency>
827 <groupId>com.att.ajsc</groupId>
828 <artifactId>ajsc-runner</artifactId>
829 </executableDependency>
830 <additionalClasspathElements>
831 <additionalClasspathElement>${basedir}/ajsc-shared-config/etc</additionalClasspathElement>
832 </additionalClasspathElements>
834 <environmentVariables>
835 <AJSC_HOME>${runAjscHome}</AJSC_HOME>
836 </environmentVariables>
838 <!-- Main AJSC System Properties below (necessary for proper startup) -->
842 <value>${runAjscHome}</value>
846 <value>${runAjscHome}</value>
849 <key>AJSC_CONF_HOME</key>
850 <value>${basedir}/bundleconfig-local</value>
853 <key>logback.configurationFile</key>
854 <value>${basedir}/ajsc-shared-config/etc/logback.xml</value>
857 <key>com.att.eelf.logging.file</key>
858 <value>logback.xml</value>
861 <key>com.att.eelf.logging.path</key>
862 <value>${basedir}/ajsc-shared-config/etc</value>
865 <key>logging.config</key>
866 <value>${basedir}/ajsc-shared-config/etc/logback.xml</value>
869 <key>AJSC_SHARED_CONFIG</key>
870 <value>${basedir}/ajsc-shared-config</value>
873 <!-- Please, NOTE: The following 2 system properties will normally
874 be set within the sys-props.properties file once deployed to a node. We are
875 setting them HERE to run locally to make more efficient use of maven variable
876 replacement for ${basedir} -->
877 <!-- AJSC_EXTERNAL_LIB_FOLDERS represents the particular jars that
878 will be externalized on a CSI node. This includes dme2 and csm related artifact. -->
880 <key>AJSC_EXTERNAL_LIB_FOLDERS</key>
881 <value>${basedir}/target/commonLibs</value>
883 <!-- AJSC_EXTERNAL_PROPERTIES_FOLDERS represents the particular
884 files that may need to be added to the classpath. These files will be externalized
885 on a CSI node. This includes dme2 and csm related artifact (such as csm-config-app.properties).
886 Failure to have these files on the classpath may result in errors thrown
887 by csm framework. -->
889 <key>AJSC_EXTERNAL_PROPERTIES_FOLDERS</key>
890 <value>${basedir}/ajsc-shared-config/etc</value>
894 <key>AJSC_SERVICE_NAMESPACE</key>
895 <value>${module.ajsc.namespace.name}</value>
898 <key>AJSC_SERVICE_VERSION</key>
899 <value>${module.ajsc.namespace.version}</value>
902 <key>SOACLOUD_SERVICE_VERSION</key>
903 <value>${project.version}</value>
906 <key>server.port</key>
907 <value>${serverPort}</value>
911 <!-- Command Line Arguments to add to the java command. Here, you
912 can specify the port as well as the Context you want your service to run
913 in. Use context=/ to run in an unnamed Context (Root Context). The default
914 configuration of the AJSC is to run under the / Context. Setting the port
915 here can aid during the development phase of your service. However, you can
916 leave this argument out entirely, and the AJSC will default to using an Ephemeral
919 <argument>context=/</argument>
920 <argument>port=${serverPort}</argument>
921 <argument>sslport=${sslport}</argument>
927 <executable>java</executable>
931 <groupId>com.att.ajsc</groupId>
932 <artifactId>ajsc-runner</artifactId>
933 <version>${ajscRuntimeVersion}</version>
942 <id>standardbuild</id>
951 <directory>src/main/resources</directory>
953 <exclude>extApps/*.*</exclude>
954 <exclude>${module.ajsc.namespace.name}/**</exclude>
958 <directory>src/main/ajsc/\${namespace}_${namespaceVersion}/\${namespace}/\${namespaceVersion}</directory>
960 <exclude>**/*.route</exclude>
961 <exclude>**/*.props</exclude>
962 <exclude>**/*.xslt</exclude>
963 <exclude>**/*.vm</exclude>
964 <exclude>**/*.jar</exclude>
965 <exclude>**/*.xml</exclude>
971 <groupId>org.apache.maven.plugins</groupId>
972 <artifactId>maven-compiler-plugin</artifactId>
973 <version>3.1</version>
976 <groupId>org.codehaus.groovy</groupId>
977 <artifactId>groovy-eclipse-compiler</artifactId>
978 <version>2.8.0-01</version>
979 <extensions>true</extensions>
983 <groupId>org.codehaus.mojo</groupId>
984 <artifactId>exec-maven-plugin</artifactId>
985 <version>1.2.1</version>
994 <executable>bash</executable>
996 <argument>runServer.sh</argument>
1001 <groupId>org.codehaus.mojo</groupId>
1002 <artifactId>build-helper-maven-plugin</artifactId>
1003 <version>1.9</version>
1006 <id>add-source-groovy-ajsc-arch-parent</id>
1007 <phase>generate-sources</phase>
1009 <goal>add-source</goal>
1013 <source>src/main/groovy</source>
1018 <id>add-test-source-groovy-ajsc-arch-parent</id>
1019 <phase>generate-test-sources</phase>
1021 <goal>add-test-source</goal>
1025 <source>src/test/groovy</source>
1030 <id>regex-properties-ajsc-arch-parent</id>
1031 <phase>initialize</phase>
1033 <goal>regex-properties</goal>
1036 <regexPropertySettings>
1037 <regexPropertySetting>
1038 <name>replaceWinFilePath</name>
1039 <value>${runAjscHome}</value>
1041 <replacement>/</replacement>
1042 <failIfNoMatch>false</failIfNoMatch>
1043 </regexPropertySetting>
1044 <regexPropertySetting>
1045 <name>replaceWinBasedirPath</name>
1046 <value>${basedir}</value>
1048 <replacement>/</replacement>
1049 <failIfNoMatch>false</failIfNoMatch>
1050 </regexPropertySetting>
1051 </regexPropertySettings>
1057 <groupId>org.codehaus.mojo</groupId>
1058 <artifactId>properties-maven-plugin</artifactId>
1059 <version>1.0-alpha-2</version>
1062 <id>write-project-properties-ajsc-arch-parent</id>
1063 <phase>generate-resources</phase>
1065 <goal>write-project-properties</goal>
1069 ${project.build.outputDirectory}/build.properties
1076 <groupId>org.apache.maven.plugins</groupId>
1077 <artifactId>maven-assembly-plugin</artifactId>
1078 <version>2.4</version>
1081 <id>make-assembly-ajsc-arch-parent</id>
1082 <phase>package</phase>
1089 <finalName>${project.artifactId}</finalName>
1091 <descriptor>src/main/assemble/ajsc_runtime_assembly.xml</descriptor>
1096 <groupId>org.codehaus.groovy.maven</groupId>
1097 <artifactId>gmaven-plugin</artifactId>
1098 <version>1.0</version>
1101 <id>gmaven-ajsc-arch-parent</id>
1102 <phase>package</phase>
1104 <goal>execute</goal>
1107 <sourcepath>src/main/groovy</sourcepath>
1109 import ajsc.AssemblyService;
1110 ajsc.AssemblyService.getBasedir(project.basedir.getAbsolutePath(),"${distFilesRoot}")
1117 <groupId>org.apache.maven.plugins</groupId>
1118 <artifactId>maven-antrun-plugin</artifactId>
1119 <version>1.7</version>
1122 <id>prep_service_runtime-ajsc-arch-parent</id>
1123 <phase>generate-resources</phase>
1125 <target name="prep_service_runtime">
1126 <echo message="ENTERING 'copy_services_template' ant tasks" />
1127 <!-- <filter token="basedir" value="${basedir}" /> -->
1128 <!-- delete any prior stating stuff before package phase -->
1129 <delete dir="target/versioned-ajsc" includes="**/*" />
1130 <delete dir="target/versioned-runtime" includes="**/*" />
1131 <delete dir="target/CDP" includes="**/*" />
1133 <!-- This is where replacer plugin replaces tokens (Example: __module_ajsc_namespace_name__
1134 is replaced by module.ajsc.namespace.name) -->
1135 <copy todir="target/versioned-ajsc">
1136 <fileset dir="src/main/ajsc" includes="**/*" />
1139 <!-- Copying the CDP, bundleconfig, and StaticContent to the target
1140 directory for future use by replacer plugin -->
1141 <copy todir="target/CDP" failonerror="false">
1142 <fileset dir="CDP" includes="**/*.sh" />
1144 <copy flatten="true" file="CDP/SampleBlueprint.xml"
1146 tofile="target/CDP/${module.ajsc.namespace.name}Blueprint.xml" />
1147 <copy todir="target/staticContent" failonerror="false">
1148 <fileset dir="staticContent" includes="**/*" />
1150 <copy todir="target/bundleconfig" failonerror="false">
1151 <!-- filtering="true"> -->
1152 <fileset dir="bundleconfig" />
1155 <echo message="EXITING 'copy_services_template' ant tasks" />
1156 <echo message="ENTERING 'copy_runtime_template' ant tasks" />
1157 <copy todir="target/versioned-runtime">
1158 <fileset dir="src/main/runtime" includes="**/*" />
1161 file="target/versioned-runtime/context/__module.ajsc.namespace.name__#__module.ajsc.namespace.version__.context" />
1162 <copy flatten="true"
1163 file="src/main/runtime/context/__module.ajsc.namespace.name__#__module.ajsc.namespace.version__.context"
1164 tofile="target/versioned-runtime/context/${module.ajsc.namespace.name}#${module.ajsc.namespace.version}.context" />
1166 file="target/versioned-runtime/deploymentPackage/__module.ajsc.namespace.name__#__module.ajsc.namespace.version__.json" />
1167 <copy flatten="true"
1168 file="src/main/runtime/deploymentPackage/__module.ajsc.namespace.name__#__module.ajsc.namespace.version__.json"
1169 tofile="target/versioned-runtime/deploymentPackage/${module.ajsc.namespace.name}#${module.ajsc.namespace.version}.json" />
1171 file="target/versioned-runtime/shiroRole/contextadmin#__module.ajsc.namespace.name__.json" />
1172 <copy flatten="true"
1173 file="src/main/runtime/shiroRole/contextadmin#__module.ajsc.namespace.name__.json"
1174 tofile="target/versioned-runtime/shiroRole/contextadmin#${module.ajsc.namespace.name}.json" />
1176 file="target/versioned-runtime/shiroUserRole/ajsc#contextAdmin#__module.ajsc.namespace.name__.json" />
1177 <copy flatten="true"
1178 file="src/main/runtime/shiroUserRole/ajsc#contextadmin#__module.ajsc.namespace.name__.json"
1179 tofile="target/versioned-runtime/shiroUserRole/ajsc#contextadmin#${module.ajsc.namespace.name}.json" />
1180 <echo message="EXITING 'copy_runtime_template' ant tasks" />
1189 <phase>package</phase>
1193 srcdir="${basedir}/target/swm/package/nix/dist_files${distFilesRoot}"
1194 includes="**/*.sh,**/*.xml,**/*.properties,**/*.xsd" />
1202 <id>prep_home_directory_for_swm_pkgcreate-ajsc-arch-parent</id>
1203 <phase>package</phase>
1205 <target name="prep_home_directory_for_swm_pkgcreate">
1206 <ant antfile="${basedir}/antBuild/build.xml" target="prep_home_directory_for_swm_pkgcreate" />
1216 <groupId>org.apache.maven.plugins</groupId>
1217 <artifactId>maven-dependency-plugin</artifactId>
1218 <version>2.8</version>
1221 <id>copy-dependencies-ajsc-arch-parent</id>
1222 <phase>prepare-package</phase>
1224 <goal>copy-dependencies</goal>
1227 <includeScope>runtime</includeScope>
1228 <excludeArtifactIds>ajsc-bom,ajsc-core,ajsc-runner,ajsc-war</excludeArtifactIds>
1229 <outputDirectory>${project.build.directory}/userjars</outputDirectory>
1230 <silent>true</silent>
1234 <id>copy-dependencies-ajsc-arch-parent-commonLibs</id>
1235 <phase>prepare-package</phase>
1237 <goal>copy-dependencies</goal>
1240 <includeScope>provided</includeScope>
1241 <includeGroupIds>net.cingular.enterprise,com.att.aft,dom4j</includeGroupIds>
1242 <!-- <includeGroupIds>com.att.aft</includeGroupIds> -->
1243 <outputDirectory>${project.build.directory}/commonLibs</outputDirectory>
1244 <silent>true</silent>
1249 <phase>prepare-package</phase>
1251 <goal>copy-dependencies</goal>
1254 <includeArtifactIds>ajsc-runner</includeArtifactIds>
1255 <outputDirectory>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}/lib</outputDirectory>
1261 <artifactId>maven-resources-plugin</artifactId>
1262 <version>2.7</version>
1266 <phase>package</phase>
1268 <goal>copy-resources</goal>
1271 <outputDirectory>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}/etc</outputDirectory>
1274 <directory>src/main/config</directory>
1281 <phase>package</phase>
1283 <goal>copy-resources</goal>
1286 <outputDirectory>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}/bin</outputDirectory>
1289 <directory>src/main/scripts</directory>
1295 <id>copy-docker-file</id>
1296 <phase>prepare-package</phase>
1298 <goal>copy-resources</goal>
1301 <outputDirectory>${dockerLocation}</outputDirectory>
1302 <overwrite>true</overwrite>
1305 <directory>${basedir}/src/main/resources/docker</directory>
1306 <filtering>true</filtering>
1308 <include>**/*</include>
1319 <groupId>com.google.code.maven-replacer-plugin</groupId>
1320 <artifactId>replacer</artifactId>
1321 <version>1.5.2</version>
1324 <id>google-replacer-ajsc-arch-parent</id>
1325 <phase>prepare-package</phase>
1327 <goal>replace</goal>
1330 <basedir>${project.build.directory}</basedir>
1332 <include>staticContent/**/*.html</include>
1333 <include>CDP/**</include>
1334 <include>bundleconfig/**</include>
1335 <include>versioned-runtime/**/*.context</include>
1336 <include>versioned-runtime/**/*.json</include>
1337 <include>versioned-ajsc/**/*.route</include>
1338 <include>versioned-ajsc/**/*.groovy</include>
1339 <include>versioned-ajsc/**/*.xml</include>
1340 <include>classes/*.properties</include>
1341 <include>swm/package/nix/dist_files${distFilesRoot}/etc/*.properties</include>
1343 <escape>true</escape>
1346 <token>__module_ajsc_namespace_name__</token>
1347 <value>${module.ajsc.namespace.name}</value>
1350 <token>__module_ajsc_namespace_version__</token>
1351 <value>${module.ajsc.namespace.version}</value>
1354 <token>__ajscHome__</token>
1355 <value>${replaceWinFilePath}</value>
1358 <token>__projectGroupId__</token>
1359 <value>${project.groupId}</value>
1362 <token>__projectArtifactId__</token>
1363 <value>${project.artifactId}</value>
1366 <token>__projectVersion__</token>
1367 <value>${project.version}</value>
1370 <token>__basedir__</token>
1371 <value>${replaceWinBasedirPath}</value>
1382 <groupId>org.apache.maven.plugins</groupId>
1383 <artifactId>maven-surefire-plugin</artifactId>
1384 <version>2.14.1</version>
1387 <exclude>**/AbstractTest.java</exclude>