1 <!-- ============LICENSE_START====================================================
3 ================================================================================
4 Copyright © 2017 AT&T Intellectual Property. All rights reserved.
5 Licensed under the Apache License, Version 2.0 (the "License"); you may not
6 use this file except in compliance with the License. You may obtain a copy
7 of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required
8 by applicable law or agreed to in writing, software distributed under the
9 License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS
10 OF ANY KIND, either express or implied. See the License for the specific
11 language governing permissions and limitations under the License.
12 ============LICENSE_END=========================================================
13 ECOMP is a trademark and service mark of AT&T Intellectual Property. -->
14 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
15 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
16 <modelVersion>4.0.0</modelVersion>
19 <groupId>org.onap.oparent</groupId>
20 <artifactId>oparent</artifactId>
21 <version>3.2.0</version>
24 <groupId>org.onap.dmaap.messagerouter.messageservice</groupId>
25 <artifactId>dmaapMR1</artifactId>
26 <version>1.3.0-SNAPSHOT</version>
27 <name>dmaap-messagerouter-messageservice</name>
28 <description>Message Router - Restful interface built for kafka</description>
31 <name>Apache License Version 2.0</name>
36 <name>Rajashree</name>
38 <organization>ATT</organization>
39 <organizationUrl>www.att.com</organizationUrl>
44 <organization>ATT</organization>
45 <organizationUrl>www.att.com</organizationUrl>
49 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
50 <dockerLocation>${basedir}/target/swm/package/nix/dist_files/</dockerLocation>
51 <docker.image.prefix>simpledemo</docker.image.prefix>
52 <module.ajsc.namespace.name>dmaap</module.ajsc.namespace.name>
53 <module.ajsc.namespace.version>v1</module.ajsc.namespace.version>
54 <ajscRuntimeVersion>3.0.11-oss</ajscRuntimeVersion>
56 <!-- This will be the Absolute Root of the Project and should contain NO Versioning -->
57 <absoluteDistFilesRoot>/appl/${project.artifactId}</absoluteDistFilesRoot>
58 <!-- <absoluteDistFilesRoot>/opt/app/dmaap/${project.artifactId}</absoluteDistFilesRoot> -->
59 <!-- For Versioning upon installation, add /${project.version} to distFilesRoot.
60 For NO Versioning, leave as is -->
61 <!-- example: /appl/${project.artifactId}/${project.version}. Also, add
62 ${project.version} to ${runAjscHome} for running locally. -->
63 <distFilesRoot>/appl/${project.artifactId}</distFilesRoot>
64 <!-- <distFilesRoot>/opt/app/dmaap/${project.artifactId}</distFilesRoot> -->
65 <runAjscHome>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}</runAjscHome>
66 <serverPort>3904</serverPort>
67 <sslport>3905</sslport>
68 <onap.nexus.url>https://nexus.onap.org</onap.nexus.url>
69 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
70 <camel.version>2.21.5</camel.version>
71 <camel.version.latest>3.5.0</camel.version.latest>
72 <sitePath>/content/sites/site/org/onap/dmaap/messagerouter/messageservice/${project.artifactId}/${project.version}</sitePath>
73 <skip.docker.build>false</skip.docker.build>
74 <skip.docker.tag>false</skip.docker.tag>
75 <skip.docker.push>false</skip.docker.push>
76 <docker.push.registry>nexus3.onap.org:10003</docker.push.registry>
77 <nexusproxy>https://nexus.onap.org</nexusproxy>
78 <spring.version>3.2.18.RELEASE</spring.version>
79 <sonar.language>java</sonar.language>
80 <sonar.skip>false</sonar.skip>
81 <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
82 <sonar.coverage.jacoco.xmlReportPaths>${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths>
83 <sonar.projectVersion>${project.version}</sonar.projectVersion>
84 <log4j.version>2.13.3</log4j.version>
85 <maven.compiler.target>8</maven.compiler.target>
86 <maven.compiler.source>8</maven.compiler.source>
87 <skip.deploy>false</skip.deploy>
93 <artifactId>maven-checkstyle-plugin</artifactId>
96 <id>onap-java-style</id>
98 <consoleOutput>false</consoleOutput>
104 <groupId>org.apache.maven.plugins</groupId>
105 <artifactId>maven-site-plugin</artifactId>
108 <groupId>org.apache.maven.plugins</groupId>
109 <artifactId>maven-jar-plugin</artifactId>
110 <version>3.0.2</version>
113 <groupId>org.apache.maven.plugins</groupId>
114 <artifactId>maven-source-plugin</artifactId>
115 <version>3.0.0</version>
118 <id>attach-sources</id>
120 <goal>jar-no-fork</goal>
126 <groupId>org.apache.maven.plugins</groupId>
127 <artifactId>maven-release-plugin</artifactId>
128 <version>2.5.3</version>
130 <autoVersionSubmodules>true</autoVersionSubmodules>
131 <checkModificationExcludes>
132 </checkModificationExcludes>
136 <groupId>org.apache.maven.scm</groupId>
137 <artifactId>maven-scm-provider-gitexe</artifactId>
138 <version>1.9.4</version>
143 <groupId>com.blackducksoftware.integration</groupId>
144 <artifactId>hub-maven-plugin</artifactId>
145 <version>1.0.4</version>
146 <inherited>false</inherited>
148 <target>${project.basedir}</target>
152 <id>create-bdio-file</id>
153 <phase>package</phase>
155 <goal>createHubOutput</goal>
161 <groupId>org.codehaus.groovy</groupId>
162 <artifactId>groovy-eclipse-compiler</artifactId>
163 <version>2.8.0-01</version>
164 <extensions>true</extensions>
167 <artifactId>maven-deploy-plugin</artifactId>
168 <version>3.0.0-M1</version>
170 <skip>${skip.deploy}</skip>
176 <!-- Distribution management -->
177 <distributionManagement>
180 <url>dav:${nexusproxy}${sitePath}</url>
182 </distributionManagement>
184 <!-- End Distribution management -->
186 <!-- The standard build tasks for this project are inherited from the parent.
187 Please do not override the build tasks. However tasks and/or profiles can
188 be included here as well as additional dependencies for your service. Any
189 runtime or compile scope dependencies will be copied to the INSTALLATION_PATH/extJars
190 folder and will be made available on the AJSC classpath for your service.
191 Please, NOTE: DME2 and CSM related dependencies are EXTERNALIZED within the
192 CSI environment. Therefore, they are provided within this project as "provided"
193 dependencies. In order for the AJSC to run properly, locally, the CSM and
194 DME2 dependencies will be copied into the target/commonLibs folder and will
195 be made available to the classpath of the AJSC through the use of the system
196 property, "AJSC_EXTERNAL_LIB_FOLDERS". This system property needs to be set
197 in the "runAjsc" maven profile within the pom.xml (and, is defaulted to do
198 so). If you have a startup failure related to a missing dme2 class not found
199 exception, please contact the AJSC team for assistance. You can email support
200 at ajsc-Support <DL-ajsc-Support@att.com>. For more information regarding
201 the usage of the AJSC service pom.xml and management of dependencies, -->
204 <groupId>org.springframework.boot</groupId>
205 <artifactId>spring-boot-starter-actuator</artifactId>
206 <version>2.4.0</version>
209 <artifactId>logback-classic</artifactId>
210 <groupId>ch.qos.logback</groupId>
214 <!-- Micormeter core dependecy -->
216 <groupId>io.micrometer</groupId>
217 <artifactId>micrometer-core</artifactId>
218 <version>1.7.1</version>
220 <!-- Micrometer Prometheus registry -->
222 <groupId>io.micrometer</groupId>
223 <artifactId>micrometer-registry-prometheus</artifactId>
224 <version>1.6.1</version>
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>
257 <groupId>org.apache.cxf</groupId>
258 <artifactId>cxf-rt-transports-http</artifactId>
259 <version>3.2.5</version>
262 <groupId>com.att.aft</groupId>
263 <artifactId>dme2</artifactId>
264 <version>3.1.200-oss</version>
267 <groupId>javax.jms</groupId>
268 <artifactId>jms</artifactId>
273 <groupId>org.springframework</groupId>
274 <artifactId>spring-test</artifactId>
275 <version>3.2.12.RELEASE</version>
279 <groupId>org.springframework</groupId>
280 <artifactId>spring-expression</artifactId>
281 <version>4.3.18.RELEASE</version>
284 <groupId>org.springframework</groupId>
285 <artifactId>spring-messaging</artifactId>
286 <version>4.1.9.RELEASE</version>
289 <groupId>org.apache.zookeeper</groupId>
290 <artifactId>zookeeper</artifactId>
291 <version>3.7.0</version>
294 <groupId>com.101tec</groupId>
295 <artifactId>zkclient</artifactId>
296 <version>0.11</version>
298 <!-- Log4j2 logger -->
300 <groupId>org.apache.logging.log4j</groupId>
301 <artifactId>log4j-api</artifactId>
302 <version>${log4j.version}</version>
305 <groupId>org.apache.logging.log4j</groupId>
306 <artifactId>log4j-core</artifactId>
307 <version>${log4j.version}</version>
310 <groupId>org.slf4j</groupId>
311 <artifactId>slf4j-log4j12</artifactId>
312 <version>1.7.32</version>
316 <artifactId>*</artifactId>
321 <groupId>org.hamcrest</groupId>
322 <artifactId>hamcrest-library</artifactId>
323 <version>1.3</version>
327 <groupId>org.apache.kafka</groupId>
328 <artifactId>kafka_2.13</artifactId>
329 <version>2.8.0</version>
332 <groupId>commons-codec</groupId>
333 <artifactId>commons-codec</artifactId>
334 <version>1.14</version>
337 <groupId>jline</groupId>
338 <artifactId>jline</artifactId>
339 <version>2.12.1</version>
342 <groupId>commons-io</groupId>
343 <artifactId>commons-io</artifactId>
344 <version>2.7</version>
347 <groupId>org.quartz-scheduler</groupId>
348 <artifactId>quartz</artifactId>
349 <version>2.3.2</version>
352 <groupId>com.fasterxml.woodstox</groupId>
353 <artifactId>woodstox-core</artifactId>
354 <version>5.3.0</version>
357 <groupId>org.grails</groupId>
358 <artifactId>grails-bootstrap</artifactId>
359 <version>4.0.1</version>
360 <scope>compile</scope>
363 <artifactId>ant</artifactId>
364 <groupId>org.apache.ant</groupId>
367 <artifactId>jna</artifactId>
368 <groupId>net.java.dev.jna</groupId>
371 <artifactId>ant-trax</artifactId>
372 <groupId>org.apache.ant</groupId>
375 <artifactId>gant_groovy1.8</artifactId>
376 <groupId>org.codehaus.gant</groupId>
379 <artifactId>ant-launcher</artifactId>
380 <groupId>org.apache.ant</groupId>
383 <artifactId>jline</artifactId>
384 <groupId>jline</groupId>
387 <artifactId>ivy</artifactId>
388 <groupId>org.apache.ivy</groupId>
391 <artifactId>jansi</artifactId>
392 <groupId>org.fusesource.jansi</groupId>
395 <artifactId>commons-logging</artifactId>
396 <groupId>commons-logging</groupId>
399 <artifactId>ant-junit</artifactId>
400 <groupId>org.apache.ant</groupId>
405 <groupId>commons-fileupload</groupId>
406 <artifactId>commons-fileupload</artifactId>
407 <version>1.4</version>
410 <groupId>org.springframework</groupId>
411 <artifactId>spring-context</artifactId>
412 <version>4.3.18.RELEASE</version>
415 <groupId>org.springframework</groupId>
416 <artifactId>spring-webmvc</artifactId>
417 <version>5.3.3</version>
420 <groupId>org.springframework</groupId>
421 <artifactId>spring-core</artifactId>
422 <version>4.3.18.RELEASE</version>
425 <groupId>org.springframework</groupId>
426 <artifactId>spring-beans</artifactId>
427 <version>4.3.18.RELEASE</version>
430 <groupId>commons-io</groupId>
431 <artifactId>commons-io</artifactId>
432 <version>2.11.0</version>
435 <groupId>com.att.eelf</groupId>
436 <artifactId>eelf-core</artifactId>
437 <version>1.0.0</version>
440 <groupId>org.mockito</groupId>
441 <artifactId>mockito-core</artifactId>
444 <groupId>org.powermock</groupId>
445 <artifactId>powermock-module-junit4</artifactId>
448 <groupId>org.powermock</groupId>
449 <artifactId>powermock-api-mockito</artifactId>
453 <!-- our NSA server library -->
455 <groupId>com.att.nsa</groupId>
456 <artifactId>nsaServerLibrary</artifactId>
457 <version>1.0.10</version>
460 <groupId>org.apache.tomcat</groupId>
461 <artifactId>tomcat-catalina</artifactId>
464 <groupId>org.apache.tomcat.embed</groupId>
465 <artifactId>tomcat-embed-core</artifactId>
468 <groupId>org.apache.tomcat</groupId>
469 <artifactId>tomcat-util</artifactId>
472 <groupId>javax.mail</groupId>
473 <artifactId>mail</artifactId>
478 <groupId>com.att.nsa</groupId>
479 <artifactId>saToolkit</artifactId>
480 <version>0.0.1</version>
483 <groupId>org.apache.curator</groupId>
484 <artifactId>curator-recipes</artifactId>
485 <version>4.0.1</version>
488 <groupId>org.apache.curator</groupId>
489 <artifactId>curator-test</artifactId>
490 <version>4.0.1</version>
493 <groupId>javax.inject</groupId>
494 <artifactId>javax.inject</artifactId>
498 <groupId>org.mockito</groupId>
499 <artifactId>mockito-core</artifactId>
500 <version>3.9.0</version>
504 <groupId>org.powermock</groupId>
505 <artifactId>powermock-core</artifactId>
506 <version>2.0.7</version>
510 <groupId>org.powermock</groupId>
511 <artifactId>powermock-module-junit4</artifactId>
512 <version>2.0.7</version>
516 <groupId>org.powermock</groupId>
517 <artifactId>powermock-module-junit4-rule</artifactId>
518 <version>2.0.7</version>
522 <groupId>org.powermock</groupId>
523 <artifactId>powermock-api-support</artifactId>
524 <version>2.0.7</version>
528 <groupId>org.powermock</groupId>
529 <artifactId>powermock-api-mockito2</artifactId>
530 <version>2.0.7</version>
533 <groupId>com.fasterxml.jackson.jaxrs</groupId>
534 <artifactId>jackson-jaxrs-json-provider</artifactId>
535 <version>2.2.3</version>
538 <groupId>com.fasterxml.jackson.core</groupId>
539 <artifactId>jackson-core</artifactId>
542 <groupId>com.fasterxml.jackson.core</groupId>
543 <artifactId>jackson-databind</artifactId>
546 <groupId>org.grails</groupId>
547 <artifactId>grails-web</artifactId>
548 <version>2.5.4</version>
551 <groupId>org.grails</groupId>
552 <artifactId>grails-web-jsp</artifactId>
557 <groupId>org.codehaus.groovy</groupId>
558 <artifactId>groovy-all</artifactId>
559 <version>3.0.8</version>
563 <artifactId>jline</artifactId>
564 <groupId>jline</groupId>
567 <artifactId>testng</artifactId>
568 <groupId>org.testng</groupId>
573 <groupId>junit</groupId>
574 <artifactId>junit</artifactId>
575 <version>4.13.2</version>
579 <groupId>org.json</groupId>
580 <artifactId>json</artifactId>
581 <version>20131018</version>
583 <!-- CXF JAX-RS extension -->
585 <groupId>org.apache.cxf</groupId>
586 <artifactId>cxf-rt-rs-extension-providers</artifactId>
587 <version>3.2.2</version>
590 <groupId>org.apache.cxf</groupId>
591 <artifactId>cxf-core</artifactId>
596 <groupId>org.codehaus.jettison</groupId>
597 <artifactId>jettison</artifactId>
598 <version>1.3.7</version>
601 <groupId>com.att.ajsc</groupId>
602 <artifactId>ajsc-archetype-parent</artifactId>
603 <version>3.0.11-oss</version>
607 <groupId>org.onap.aaf.authz</groupId>
608 <artifactId>aaf-cadi-aaf</artifactId>
609 <version>2.7.4</version>
612 <artifactId>log4j</artifactId>
613 <groupId>log4j</groupId>
618 <groupId>backport-util-concurrent</groupId>
619 <artifactId>backport-util-concurrent</artifactId>
620 <version>3.1</version>
623 <groupId>org.apache.camel</groupId>
624 <artifactId>camel-core</artifactId>
625 <version>3.4.0</version>
628 <groupId>org.apache.camel</groupId>
629 <artifactId>camel-quartz</artifactId>
630 <version>${camel.version}</version>
633 <groupId>org.apache.camel</groupId>
634 <artifactId>camel-spring</artifactId>
635 <version>${camel.version.latest}</version>
638 <groupId>org.apache.camel</groupId>
639 <artifactId>camel-restlet</artifactId>
640 <version>${camel.version}</version>
643 <artifactId>org.restlet</artifactId>
644 <groupId>org.restlet.jse</groupId>
649 <groupId>org.apache.camel</groupId>
650 <artifactId>camel-servlet</artifactId>
651 <version>${camel.version}</version>
654 <groupId>org.apache.httpcomponents</groupId>
655 <artifactId>httpcore</artifactId>
656 <version>4.4.1</version>
659 <groupId>org.apache.camel</groupId>
660 <artifactId>camel-http4</artifactId>
661 <version>${camel.version}</version>
664 <groupId>org.apache.geronimo.specs</groupId>
665 <artifactId>geronimo-servlet_2.5_spec</artifactId>
670 <groupId>org.apache.camel</groupId>
671 <artifactId>camel-groovy</artifactId>
672 <version>${camel.version.latest}</version>
675 <groupId>org.apache.camel</groupId>
676 <artifactId>camel-twitter</artifactId>
677 <version>${camel.version}</version>
680 <groupId>org.apache.camel</groupId>
681 <artifactId>camel-mail</artifactId>
682 <version>${camel.version}</version>
685 <groupId>org.apache.camel</groupId>
686 <artifactId>camel-smpp</artifactId>
687 <version>${camel.version}</version>
690 <groupId>org.apache.camel</groupId>
691 <artifactId>camel-jms</artifactId>
692 <version>${camel.version}</version>
695 <groupId>org.apache.camel</groupId>
696 <artifactId>camel-script</artifactId>
697 <version>${camel.version}</version>
700 <groupId>org.apache.camel</groupId>
701 <artifactId>camel-xmpp</artifactId>
702 <version>${camel.version}</version>
705 <groupId>org.igniterealtime.smack</groupId>
706 <artifactId>smack-tcp</artifactId>
707 <version>4.4.2</version>
710 <groupId>org.apache.camel</groupId>
711 <artifactId>camel-velocity</artifactId>
712 <version>${camel.version.latest}</version>
715 <groupId>com.att.ajsc</groupId>
716 <artifactId>ajsc-runner</artifactId>
717 <version>3.0.11-oss</version>
718 <scope>runtime</scope>
721 <groupId>com.att.ajsc</groupId>
722 <artifactId>ajsc-core</artifactId>
723 <version>3.0.11-oss</version>
724 <scope>provided</scope>
727 <!-- <groupId>org.apache.kafka</groupId>-->
728 <!-- <artifactId>kafka_2.12</artifactId>-->
729 <!-- <version>2.8.0</version>-->
730 <!-- <scope>test</scope>-->
733 <!-- <artifactId>metrics-core</artifactId>-->
734 <!-- <groupId>com.yammer.metrics</groupId>-->
736 <!-- </exclusions>-->
737 <!-- </dependency>-->
739 <groupId>io.dropwizard.metrics</groupId>
740 <artifactId>metrics-core</artifactId>
741 <version>4.2.3</version>
745 <groupId>org.slf4j</groupId>
746 <artifactId>slf4j-api</artifactId>
747 <version>1.7.32</version>
751 <!-- Use this profile to run the AJSC locally. This profile can be successfully
752 shutdown WITHIN eclipse even in a Windows environment. Debugging is also
753 available with this profile. -->
757 <skipTests>true</skipTests>
762 <groupId>org.codehaus.groovy.maven</groupId>
763 <artifactId>gmaven-plugin</artifactId>
766 <phase>validate</phase>
772 <ver>${project.version}</ver>
773 <timestamp>${maven.build.timestamp}</timestamp>
776 println project.properties['ver'];
777 if ( project.properties['ver'].endsWith("-SNAPSHOT") ) {
778 project.properties['dockertag1']=project.properties['ver'] + "-latest";
779 project.properties['dockertag2']=project.properties['ver'] + "-" + project.properties['timestamp'];
781 project.properties['dockertag1']=project.properties['ver'] + "-STAGING-latest";
782 project.properties['dockertag2']=project.properties['ver'] + "-STAGING-" + project.properties['timestamp'];
784 println 'docker tag 1: ' + project.properties['dockertag1'];
785 println 'docker tag 2: ' + project.properties['dockertag2'];
792 <groupId>io.fabric8</groupId>
793 <artifactId>docker-maven-plugin</artifactId>
794 <version>0.33.0</version>
796 <skipBuild>${skip.docker.build}</skipBuild>
797 <skipPush>${skip.docker.push}</skipPush>
798 <pullRegistry>${docker.pull.registry}</pullRegistry>
799 <pushRegistry>${docker.push.registry}</pushRegistry>
802 <name>onap/dmaap/dmaap-mr</name>
804 <cleanup>try</cleanup>
805 <dockerFileDir>${dockerLocation}</dockerFileDir>
806 <dockerFile>Dockerfile</dockerFile>
808 <tag>${dockertag1}</tag>
809 <tag>${dockertag2}</tag>
817 <id>generate-images</id>
818 <phase>install</phase>
825 <phase>deploy</phase>
836 <id>standardbuild</id>
845 <directory>src/main/resources</directory>
847 <exclude>extApps/*.*</exclude>
848 <exclude>${module.ajsc.namespace.name}/**</exclude>
852 <directory>src/main/ajsc/\${namespace}_${namespaceVersion}/\${namespace}/\${namespaceVersion}</directory>
854 <exclude>**/*.route</exclude>
855 <exclude>**/*.props</exclude>
856 <exclude>**/*.xslt</exclude>
857 <exclude>**/*.vm</exclude>
858 <exclude>**/*.jar</exclude>
859 <exclude>**/*.xml</exclude>
865 <groupId>org.apache.maven.plugins</groupId>
866 <artifactId>maven-compiler-plugin</artifactId>
867 <version>3.1</version>
870 <groupId>org.codehaus.groovy</groupId>
871 <artifactId>groovy-eclipse-compiler</artifactId>
872 <version>2.8.0-01</version>
873 <extensions>true</extensions>
876 <groupId>org.codehaus.mojo</groupId>
877 <artifactId>exec-maven-plugin</artifactId>
878 <version>1.2.1</version>
887 <executable>bash</executable>
889 <argument>runServer.sh</argument>
894 <groupId>org.codehaus.mojo</groupId>
895 <artifactId>build-helper-maven-plugin</artifactId>
896 <version>1.9</version>
899 <id>add-source-groovy-ajsc-arch-parent</id>
900 <phase>generate-sources</phase>
902 <goal>add-source</goal>
906 <source>src/main/groovy</source>
911 <id>add-test-source-groovy-ajsc-arch-parent</id>
912 <phase>generate-test-sources</phase>
914 <goal>add-test-source</goal>
918 <source>src/test/groovy</source>
923 <id>regex-properties-ajsc-arch-parent</id>
924 <phase>initialize</phase>
926 <goal>regex-properties</goal>
929 <regexPropertySettings>
930 <regexPropertySetting>
931 <name>replaceWinFilePath</name>
932 <value>${runAjscHome}</value>
934 <replacement>/</replacement>
935 <failIfNoMatch>false</failIfNoMatch>
936 </regexPropertySetting>
937 <regexPropertySetting>
938 <name>replaceWinBasedirPath</name>
939 <value>${basedir}</value>
941 <replacement>/</replacement>
942 <failIfNoMatch>false</failIfNoMatch>
943 </regexPropertySetting>
944 </regexPropertySettings>
950 <groupId>org.codehaus.mojo</groupId>
951 <artifactId>properties-maven-plugin</artifactId>
952 <version>1.0-alpha-2</version>
955 <id>write-project-properties-ajsc-arch-parent</id>
956 <phase>generate-resources</phase>
958 <goal>write-project-properties</goal>
962 ${project.build.outputDirectory}/build.properties
969 <groupId>org.apache.maven.plugins</groupId>
970 <artifactId>maven-assembly-plugin</artifactId>
971 <version>2.4</version>
974 <id>make-assembly-ajsc-arch-parent</id>
975 <phase>package</phase>
982 <finalName>${project.artifactId}</finalName>
984 <descriptor>src/main/assemble/ajsc_runtime_assembly.xml</descriptor>
989 <groupId>org.codehaus.groovy.maven</groupId>
990 <artifactId>gmaven-plugin</artifactId>
991 <version>1.0</version>
994 <id>gmaven-ajsc-arch-parent</id>
995 <phase>package</phase>
1000 <sourcepath>src/main/groovy</sourcepath>
1002 import ajsc.AssemblyService;
1003 ajsc.AssemblyService.getBasedir(project.basedir.getAbsolutePath(),"${distFilesRoot}")
1010 <groupId>org.apache.maven.plugins</groupId>
1011 <artifactId>maven-antrun-plugin</artifactId>
1012 <version>1.7</version>
1015 <id>prep_service_runtime-ajsc-arch-parent</id>
1016 <phase>generate-resources</phase>
1018 <target name="prep_service_runtime">
1019 <echo message="ENTERING 'copy_services_template' ant tasks" />
1020 <!-- <filter token="basedir" value="${basedir}" /> -->
1021 <!-- delete any prior stating stuff before package phase -->
1022 <delete dir="target/versioned-ajsc" includes="**/*" />
1023 <delete dir="target/versioned-runtime" includes="**/*" />
1024 <delete dir="target/CDP" includes="**/*" />
1026 <!-- This is where replacer plugin replaces tokens (Example: __module_ajsc_namespace_name__
1027 is replaced by module.ajsc.namespace.name) -->
1028 <copy todir="target/versioned-ajsc">
1029 <fileset dir="src/main/ajsc" includes="**/*" />
1032 <!-- Copying the CDP, bundleconfig, and StaticContent to the target
1033 directory for future use by replacer plugin -->
1034 <copy todir="target/CDP" failonerror="false">
1035 <fileset dir="CDP" includes="**/*.sh" />
1037 <copy flatten="true" file="CDP/SampleBlueprint.xml"
1039 tofile="target/CDP/${module.ajsc.namespace.name}Blueprint.xml" />
1040 <copy todir="target/staticContent" failonerror="false">
1041 <fileset dir="staticContent" includes="**/*" />
1043 <copy todir="target/bundleconfig" failonerror="false">
1044 <!-- filtering="true"> -->
1045 <fileset dir="bundleconfig" />
1048 <echo message="EXITING 'copy_services_template' ant tasks" />
1049 <echo message="ENTERING 'copy_runtime_template' ant tasks" />
1050 <copy todir="target/versioned-runtime">
1051 <fileset dir="src/main/runtime" includes="**/*" />
1054 file="target/versioned-runtime/context/__module.ajsc.namespace.name__#__module.ajsc.namespace.version__.context" />
1055 <copy flatten="true"
1056 file="src/main/runtime/context/__module.ajsc.namespace.name__#__module.ajsc.namespace.version__.context"
1057 tofile="target/versioned-runtime/context/${module.ajsc.namespace.name}#${module.ajsc.namespace.version}.context" />
1059 file="target/versioned-runtime/deploymentPackage/__module.ajsc.namespace.name__#__module.ajsc.namespace.version__.json" />
1060 <copy flatten="true"
1061 file="src/main/runtime/deploymentPackage/__module.ajsc.namespace.name__#__module.ajsc.namespace.version__.json"
1062 tofile="target/versioned-runtime/deploymentPackage/${module.ajsc.namespace.name}#${module.ajsc.namespace.version}.json" />
1064 file="target/versioned-runtime/shiroRole/contextadmin#__module.ajsc.namespace.name__.json" />
1065 <copy flatten="true"
1066 file="src/main/runtime/shiroRole/contextadmin#__module.ajsc.namespace.name__.json"
1067 tofile="target/versioned-runtime/shiroRole/contextadmin#${module.ajsc.namespace.name}.json" />
1069 file="target/versioned-runtime/shiroUserRole/ajsc#contextAdmin#__module.ajsc.namespace.name__.json" />
1070 <copy flatten="true"
1071 file="src/main/runtime/shiroUserRole/ajsc#contextadmin#__module.ajsc.namespace.name__.json"
1072 tofile="target/versioned-runtime/shiroUserRole/ajsc#contextadmin#${module.ajsc.namespace.name}.json" />
1073 <echo message="EXITING 'copy_runtime_template' ant tasks" />
1082 <phase>package</phase>
1086 srcdir="${basedir}/target/swm/package/nix/dist_files${distFilesRoot}"
1087 includes="**/*.sh,**/*.xml,**/*.properties,**/*.xsd" />
1095 <id>prep_home_directory_for_swm_pkgcreate-ajsc-arch-parent</id>
1096 <phase>package</phase>
1098 <target name="prep_home_directory_for_swm_pkgcreate">
1099 <ant antfile="${basedir}/antBuild/build.xml" target="prep_home_directory_for_swm_pkgcreate" />
1109 <groupId>org.apache.maven.plugins</groupId>
1110 <artifactId>maven-dependency-plugin</artifactId>
1111 <version>2.8</version>
1114 <id>copy-dependencies-ajsc-arch-parent</id>
1115 <phase>prepare-package</phase>
1117 <goal>copy-dependencies</goal>
1120 <includeScope>runtime</includeScope>
1121 <excludeArtifactIds>ajsc-bom,ajsc-core,ajsc-runner,ajsc-war</excludeArtifactIds>
1122 <outputDirectory>${project.build.directory}/userjars</outputDirectory>
1123 <silent>true</silent>
1128 <phase>prepare-package</phase>
1130 <goal>copy-dependencies</goal>
1133 <includeArtifactIds>ajsc-runner</includeArtifactIds>
1134 <outputDirectory>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}/lib</outputDirectory>
1140 <artifactId>maven-resources-plugin</artifactId>
1141 <version>2.7</version>
1145 <phase>package</phase>
1147 <goal>copy-resources</goal>
1150 <outputDirectory>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}/etc</outputDirectory>
1153 <directory>src/main/config</directory>
1159 <id>copy-docker-file</id>
1160 <phase>prepare-package</phase>
1162 <goal>copy-resources</goal>
1165 <outputDirectory>${dockerLocation}</outputDirectory>
1166 <overwrite>true</overwrite>
1169 <directory>${basedir}/src/main/resources/docker</directory>
1170 <filtering>true</filtering>
1172 <include>**/*</include>
1181 <!-- <groupId>com.google.code.maven-replacer-plugin</groupId>-->
1182 <!-- <artifactId>replacer</artifactId>-->
1183 <!-- <version>1.5.2</version>-->
1184 <!-- <executions>-->
1186 <!-- <id>google-replacer-ajsc-arch-parent</id>-->
1187 <!-- <phase>prepare-package</phase>-->
1189 <!-- <goal>replace</goal>-->
1191 <!-- <configuration>-->
1192 <!-- <basedir>${project.build.directory}</basedir>-->
1194 <!-- <include>staticContent/**/*.html</include>-->
1195 <!-- <include>CDP/**</include>-->
1196 <!-- <include>bundleconfig/**</include>-->
1197 <!-- <include>versioned-runtime/**/*.context</include>-->
1198 <!-- <include>versioned-runtime/**/*.json</include>-->
1199 <!-- <include>versioned-ajsc/**/*.route</include>-->
1200 <!-- <include>versioned-ajsc/**/*.groovy</include>-->
1201 <!-- <include>versioned-ajsc/**/*.xml</include>-->
1202 <!-- <include>classes/*.properties</include>-->
1203 <!-- <include>swm/package/nix/dist_files${distFilesRoot}/etc/*.properties</include>-->
1205 <!-- <escape>true</escape>-->
1206 <!-- <replacements>-->
1207 <!-- <replacement>-->
1208 <!-- <token>__module_ajsc_namespace_name__</token>-->
1209 <!-- <value>${module.ajsc.namespace.name}</value>-->
1210 <!-- </replacement>-->
1211 <!-- <replacement>-->
1212 <!-- <token>__module_ajsc_namespace_version__</token>-->
1213 <!-- <value>${module.ajsc.namespace.version}</value>-->
1214 <!-- </replacement>-->
1215 <!-- <replacement>-->
1216 <!-- <token>__ajscHome__</token>-->
1217 <!-- <value>${replaceWinFilePath}</value>-->
1218 <!-- </replacement>-->
1219 <!-- <replacement>-->
1220 <!-- <token>__projectGroupId__</token>-->
1221 <!-- <value>${project.groupId}</value>-->
1222 <!-- </replacement>-->
1223 <!-- <replacement>-->
1224 <!-- <token>__projectArtifactId__</token>-->
1225 <!-- <value>${project.artifactId}</value>-->
1226 <!-- </replacement>-->
1227 <!-- <replacement>-->
1228 <!-- <token>__projectVersion__</token>-->
1229 <!-- <value>${project.version}</value>-->
1230 <!-- </replacement>-->
1231 <!-- <replacement>-->
1232 <!-- <token>__basedir__</token>-->
1233 <!-- <value>${replaceWinBasedirPath}</value>-->
1234 <!-- </replacement>-->
1235 <!-- </replacements>-->
1236 <!-- </configuration>-->
1237 <!-- </execution>-->
1238 <!-- </executions>-->
1244 <groupId>org.apache.maven.plugins</groupId>
1245 <artifactId>maven-surefire-plugin</artifactId>
1246 <version>2.14.1</version>
1249 <exclude>**/AbstractTest.java</exclude>
1252 --illegal-access=permit