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.1</version>
24 <groupId>org.onap.dmaap.messagerouter.messageservice</groupId>
25 <artifactId>dmaapMR1</artifactId>
26 <version>1.4.5-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>
35 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
36 <dockerLocation>${basedir}/target/swm/package/nix/dist_files/</dockerLocation>
37 <docker.image.prefix>simpledemo</docker.image.prefix>
38 <module.ajsc.namespace.name>dmaap</module.ajsc.namespace.name>
39 <module.ajsc.namespace.version>v1</module.ajsc.namespace.version>
40 <ajscRuntimeVersion>3.0.11-oss</ajscRuntimeVersion>
42 <!-- This will be the Absolute Root of the Project and should contain NO Versioning -->
43 <absoluteDistFilesRoot>/appl/${project.artifactId}</absoluteDistFilesRoot>
44 <!-- <absoluteDistFilesRoot>/opt/app/dmaap/${project.artifactId}</absoluteDistFilesRoot> -->
45 <!-- For Versioning upon installation, add /${project.version} to distFilesRoot.
46 For NO Versioning, leave as is -->
47 <!-- example: /appl/${project.artifactId}/${project.version}. Also, add
48 ${project.version} to ${runAjscHome} for running locally. -->
49 <distFilesRoot>/appl/${project.artifactId}</distFilesRoot>
50 <!-- <distFilesRoot>/opt/app/dmaap/${project.artifactId}</distFilesRoot> -->
51 <runAjscHome>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}</runAjscHome>
52 <serverPort>3904</serverPort>
53 <sslport>3905</sslport>
54 <onap.nexus.url>https://nexus.onap.org</onap.nexus.url>
55 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
56 <camel.version>2.21.5</camel.version>
57 <camel.version.latest>3.17.0</camel.version.latest>
58 <skip.docker.build>false</skip.docker.build>
59 <skip.docker.tag>false</skip.docker.tag>
60 <skip.docker.push>false</skip.docker.push>
61 <docker.push.registry>nexus3.onap.org:10003</docker.push.registry>
62 <nexusproxy>https://nexus.onap.org</nexusproxy>
63 <spring.version>5.3.20</spring.version>
64 <sonar.language>java</sonar.language>
65 <sonar.skip>false</sonar.skip>
66 <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
67 <sonar.projectVersion>${project.version}</sonar.projectVersion>
68 <log4j.version>2.17.1</log4j.version>
69 <maven.compiler.target>8</maven.compiler.target>
70 <maven.compiler.source>8</maven.compiler.source>
71 <skip.deploy>false</skip.deploy>
77 <artifactId>maven-checkstyle-plugin</artifactId>
80 <id>onap-java-style</id>
82 <consoleOutput>false</consoleOutput>
88 <groupId>org.apache.maven.plugins</groupId>
89 <artifactId>maven-site-plugin</artifactId>
92 <groupId>org.apache.maven.plugins</groupId>
93 <artifactId>maven-jar-plugin</artifactId>
94 <version>3.0.2</version>
97 <groupId>org.apache.maven.plugins</groupId>
98 <artifactId>maven-source-plugin</artifactId>
99 <version>3.0.0</version>
102 <id>attach-sources</id>
104 <goal>jar-no-fork</goal>
110 <groupId>org.apache.maven.plugins</groupId>
111 <artifactId>maven-release-plugin</artifactId>
112 <version>2.5.3</version>
114 <autoVersionSubmodules>true</autoVersionSubmodules>
115 <checkModificationExcludes>
116 </checkModificationExcludes>
120 <groupId>org.apache.maven.scm</groupId>
121 <artifactId>maven-scm-provider-gitexe</artifactId>
122 <version>1.9.4</version>
127 <groupId>com.blackducksoftware.integration</groupId>
128 <artifactId>hub-maven-plugin</artifactId>
129 <version>1.0.4</version>
130 <inherited>false</inherited>
132 <target>${project.basedir}</target>
136 <id>create-bdio-file</id>
137 <phase>package</phase>
139 <goal>createHubOutput</goal>
145 <groupId>org.codehaus.groovy</groupId>
146 <artifactId>groovy-eclipse-compiler</artifactId>
147 <version>2.8.0-01</version>
148 <extensions>true</extensions>
151 <artifactId>maven-deploy-plugin</artifactId>
152 <version>3.0.0-M1</version>
154 <skip>${skip.deploy}</skip>
160 <!-- Distribution management -->
161 <distributionManagement>
164 <url>dav:${nexusproxy}${sitePath}</url>
166 </distributionManagement>
168 <!-- End Distribution management -->
170 <!-- The standard build tasks for this project are inherited from the parent.
171 Please do not override the build tasks. However tasks and/or profiles can
172 be included here as well as additional dependencies for your service. Any
173 runtime or compile scope dependencies will be copied to the INSTALLATION_PATH/extJars
174 folder and will be made available on the AJSC classpath for your service.
175 Please, NOTE: DME2 and CSM related dependencies are EXTERNALIZED within the
176 CSI environment. Therefore, they are provided within this project as "provided"
177 dependencies. In order for the AJSC to run properly, locally, the CSM and
178 DME2 dependencies will be copied into the target/commonLibs folder and will
179 be made available to the classpath of the AJSC through the use of the system
180 property, "AJSC_EXTERNAL_LIB_FOLDERS". This system property needs to be set
181 in the "runAjsc" maven profile within the pom.xml (and, is defaulted to do
182 so). If you have a startup failure related to a missing dme2 class not found
183 exception, please contact the AJSC team for assistance. You can email support
184 at ajsc-Support <DL-ajsc-Support@att.com>. For more information regarding
185 the usage of the AJSC service pom.xml and management of dependencies, -->
188 <groupId>org.springframework.boot</groupId>
189 <artifactId>spring-boot-starter-actuator</artifactId>
190 <version>2.4.0</version>
193 <artifactId>logback-classic</artifactId>
194 <groupId>ch.qos.logback</groupId>
198 <!-- Micormeter core dependecy -->
200 <groupId>io.micrometer</groupId>
201 <artifactId>micrometer-core</artifactId>
202 <version>1.7.1</version>
204 <!-- Micrometer Prometheus registry -->
206 <groupId>io.micrometer</groupId>
207 <artifactId>micrometer-registry-prometheus</artifactId>
208 <version>1.6.1</version>
211 <groupId>com.sun.mail</groupId>
212 <artifactId>javax.mail</artifactId>
213 <version>1.6.0</version>
215 <!-- javax activation is part of the JDK now -->
217 <groupId>javax.activation</groupId>
218 <artifactId>activation</artifactId>
223 <groupId>com.sun.xml.bind</groupId>
224 <artifactId>jaxb-core</artifactId>
225 <version>2.3.0.1</version>
226 <scope>compile</scope>
229 <groupId>com.sun.xml.bind</groupId>
230 <artifactId>jaxb-impl</artifactId>
231 <version>2.3.0.1</version>
232 <scope>compile</scope>
235 <artifactId>jsr181-api</artifactId>
236 <groupId>javax.jws</groupId>
241 <groupId>org.apache.cxf</groupId>
242 <artifactId>cxf-rt-transports-http</artifactId>
243 <version>3.2.5</version>
246 <groupId>com.att.aft</groupId>
247 <artifactId>dme2</artifactId>
248 <version>3.1.200-oss</version>
251 <groupId>javax.jms</groupId>
252 <artifactId>jms</artifactId>
257 <groupId>org.springframework</groupId>
258 <artifactId>spring-test</artifactId>
259 <version>3.2.12.RELEASE</version>
263 <groupId>org.springframework</groupId>
264 <artifactId>spring-expression</artifactId>
265 <version>4.3.18.RELEASE</version>
268 <groupId>org.springframework</groupId>
269 <artifactId>spring-messaging</artifactId>
270 <version>4.1.9.RELEASE</version>
273 <groupId>org.apache.zookeeper</groupId>
274 <artifactId>zookeeper</artifactId>
275 <version>3.7.0</version>
278 <artifactId>slf4j-log4j12</artifactId>
279 <groupId>org.slf4j</groupId>
284 <groupId>com.101tec</groupId>
285 <artifactId>zkclient</artifactId>
286 <version>0.11</version>
288 <!-- Log4j2 logger -->
290 <groupId>org.apache.logging.log4j</groupId>
291 <artifactId>log4j-api</artifactId>
292 <version>${log4j.version}</version>
295 <groupId>org.apache.logging.log4j</groupId>
296 <artifactId>log4j-core</artifactId>
297 <version>${log4j.version}</version>
300 <groupId>org.slf4j</groupId>
301 <artifactId>slf4j-log4j12</artifactId>
302 <version>1.7.32</version>
306 <artifactId>*</artifactId>
311 <groupId>org.hamcrest</groupId>
312 <artifactId>hamcrest-library</artifactId>
313 <version>1.3</version>
317 <groupId>org.apache.kafka</groupId>
318 <artifactId>kafka_2.13</artifactId>
319 <version>2.8.0</version>
322 <groupId>commons-codec</groupId>
323 <artifactId>commons-codec</artifactId>
324 <version>1.14</version>
327 <groupId>jline</groupId>
328 <artifactId>jline</artifactId>
329 <version>2.12.1</version>
332 <groupId>org.quartz-scheduler</groupId>
333 <artifactId>quartz</artifactId>
334 <version>2.3.2</version>
337 <groupId>com.fasterxml.woodstox</groupId>
338 <artifactId>woodstox-core</artifactId>
339 <version>6.2.8</version>
342 <groupId>org.grails</groupId>
343 <artifactId>grails-bootstrap</artifactId>
344 <version>4.0.1</version>
345 <scope>compile</scope>
348 <artifactId>ant</artifactId>
349 <groupId>org.apache.ant</groupId>
352 <artifactId>jna</artifactId>
353 <groupId>net.java.dev.jna</groupId>
356 <artifactId>ant-trax</artifactId>
357 <groupId>org.apache.ant</groupId>
360 <artifactId>gant_groovy1.8</artifactId>
361 <groupId>org.codehaus.gant</groupId>
364 <artifactId>ant-launcher</artifactId>
365 <groupId>org.apache.ant</groupId>
368 <artifactId>jline</artifactId>
369 <groupId>jline</groupId>
372 <artifactId>ivy</artifactId>
373 <groupId>org.apache.ivy</groupId>
376 <artifactId>jansi</artifactId>
377 <groupId>org.fusesource.jansi</groupId>
380 <artifactId>commons-logging</artifactId>
381 <groupId>commons-logging</groupId>
384 <artifactId>ant-junit</artifactId>
385 <groupId>org.apache.ant</groupId>
390 <groupId>commons-fileupload</groupId>
391 <artifactId>commons-fileupload</artifactId>
392 <version>1.4</version>
395 <groupId>org.springframework</groupId>
396 <artifactId>spring-context</artifactId>
397 <version>${spring.version}</version>
400 <groupId>org.springframework</groupId>
401 <artifactId>spring-webmvc</artifactId>
402 <version>${spring.version}</version>
405 <groupId>org.springframework</groupId>
406 <artifactId>spring-core</artifactId>
407 <version>${spring.version}</version>
410 <groupId>org.springframework</groupId>
411 <artifactId>spring-beans</artifactId>
412 <version>${spring.version}</version>
415 <groupId>commons-io</groupId>
416 <artifactId>commons-io</artifactId>
417 <version>2.11.0</version>
420 <groupId>com.att.eelf</groupId>
421 <artifactId>eelf-core</artifactId>
422 <version>2.0.0-oss</version>
425 <groupId>org.mockito</groupId>
426 <artifactId>mockito-core</artifactId>
429 <groupId>org.powermock</groupId>
430 <artifactId>powermock-module-junit4</artifactId>
433 <groupId>org.powermock</groupId>
434 <artifactId>powermock-api-mockito</artifactId>
438 <!-- our NSA server library -->
440 <groupId>com.att.nsa</groupId>
441 <artifactId>nsaServerLibrary</artifactId>
442 <version>1.0.10</version>
445 <groupId>org.apache.tomcat</groupId>
446 <artifactId>tomcat-catalina</artifactId>
449 <groupId>org.apache.tomcat.embed</groupId>
450 <artifactId>tomcat-embed-core</artifactId>
453 <groupId>org.apache.tomcat</groupId>
454 <artifactId>tomcat-util</artifactId>
457 <groupId>javax.mail</groupId>
458 <artifactId>mail</artifactId>
463 <groupId>com.att.nsa</groupId>
464 <artifactId>saToolkit</artifactId>
465 <version>1.2.0-oss</version>
468 <groupId>org.apache.curator</groupId>
469 <artifactId>curator-recipes</artifactId>
470 <version>4.0.1</version>
473 <groupId>org.apache.curator</groupId>
474 <artifactId>curator-test</artifactId>
475 <version>4.0.1</version>
478 <groupId>javax.inject</groupId>
479 <artifactId>javax.inject</artifactId>
483 <groupId>org.mockito</groupId>
484 <artifactId>mockito-core</artifactId>
485 <version>3.9.0</version>
489 <groupId>org.powermock</groupId>
490 <artifactId>powermock-core</artifactId>
491 <version>2.0.7</version>
495 <groupId>org.powermock</groupId>
496 <artifactId>powermock-module-junit4</artifactId>
497 <version>2.0.7</version>
501 <groupId>org.powermock</groupId>
502 <artifactId>powermock-module-junit4-rule</artifactId>
503 <version>2.0.7</version>
507 <groupId>org.powermock</groupId>
508 <artifactId>powermock-api-support</artifactId>
509 <version>2.0.7</version>
513 <groupId>org.powermock</groupId>
514 <artifactId>powermock-api-mockito2</artifactId>
515 <version>2.0.7</version>
518 <groupId>com.fasterxml.jackson.jaxrs</groupId>
519 <artifactId>jackson-jaxrs-json-provider</artifactId>
520 <version>2.2.3</version>
523 <groupId>com.fasterxml.jackson.core</groupId>
524 <artifactId>jackson-core</artifactId>
527 <groupId>com.fasterxml.jackson.core</groupId>
528 <artifactId>jackson-databind</artifactId>
529 <version>2.13.4</version>
532 <groupId>org.grails</groupId>
533 <artifactId>grails-web</artifactId>
534 <version>2.5.4</version>
537 <groupId>org.grails</groupId>
538 <artifactId>grails-web-jsp</artifactId>
543 <groupId>org.codehaus.groovy</groupId>
544 <artifactId>groovy-all</artifactId>
545 <version>3.0.8</version>
549 <artifactId>jline</artifactId>
550 <groupId>jline</groupId>
553 <artifactId>testng</artifactId>
554 <groupId>org.testng</groupId>
559 <groupId>junit</groupId>
560 <artifactId>junit</artifactId>
561 <version>4.13.2</version>
565 <groupId>org.json</groupId>
566 <artifactId>json</artifactId>
567 <version>20131018</version>
569 <!-- CXF JAX-RS extension -->
571 <groupId>org.apache.cxf</groupId>
572 <artifactId>cxf-rt-rs-extension-providers</artifactId>
573 <version>3.2.2</version>
576 <groupId>org.apache.cxf</groupId>
577 <artifactId>cxf-core</artifactId>
582 <groupId>org.codehaus.jettison</groupId>
583 <artifactId>jettison</artifactId>
584 <version>1.3.7</version>
587 <groupId>com.att.ajsc</groupId>
588 <artifactId>ajsc-archetype-parent</artifactId>
589 <version>3.0.11-oss</version>
593 <groupId>org.onap.aaf.authz</groupId>
594 <artifactId>aaf-cadi-aaf</artifactId>
595 <version>2.7.4</version>
598 <artifactId>log4j</artifactId>
599 <groupId>log4j</groupId>
604 <groupId>backport-util-concurrent</groupId>
605 <artifactId>backport-util-concurrent</artifactId>
606 <version>3.1</version>
609 <groupId>org.apache.camel</groupId>
610 <artifactId>camel-core</artifactId>
611 <version>3.4.0</version>
614 <groupId>org.apache.camel</groupId>
615 <artifactId>camel-quartz</artifactId>
616 <version>${camel.version}</version>
619 <groupId>org.apache.camel</groupId>
620 <artifactId>camel-spring</artifactId>
621 <version>${camel.version.latest}</version>
624 <groupId>org.apache.camel</groupId>
625 <artifactId>camel-restlet</artifactId>
626 <version>${camel.version}</version>
629 <artifactId>org.restlet</artifactId>
630 <groupId>org.restlet.jse</groupId>
635 <groupId>org.apache.camel</groupId>
636 <artifactId>camel-servlet</artifactId>
637 <version>${camel.version}</version>
640 <groupId>org.apache.httpcomponents</groupId>
641 <artifactId>httpcore</artifactId>
642 <version>4.4.1</version>
645 <groupId>org.apache.camel</groupId>
646 <artifactId>camel-http4</artifactId>
647 <version>${camel.version}</version>
650 <groupId>org.apache.geronimo.specs</groupId>
651 <artifactId>geronimo-servlet_2.5_spec</artifactId>
656 <groupId>org.apache.camel</groupId>
657 <artifactId>camel-groovy</artifactId>
658 <version>${camel.version.latest}</version>
661 <groupId>org.apache.camel</groupId>
662 <artifactId>camel-twitter</artifactId>
663 <version>${camel.version}</version>
666 <groupId>org.apache.camel</groupId>
667 <artifactId>camel-mail</artifactId>
668 <version>${camel.version}</version>
671 <groupId>org.apache.camel</groupId>
672 <artifactId>camel-smpp</artifactId>
673 <version>${camel.version}</version>
676 <groupId>org.apache.camel</groupId>
677 <artifactId>camel-jms</artifactId>
678 <version>${camel.version}</version>
681 <groupId>org.apache.camel</groupId>
682 <artifactId>camel-script</artifactId>
683 <version>${camel.version}</version>
686 <groupId>org.apache.camel</groupId>
687 <artifactId>camel-xmpp</artifactId>
688 <version>${camel.version}</version>
691 <groupId>org.igniterealtime.smack</groupId>
692 <artifactId>smack-tcp</artifactId>
693 <version>4.4.2</version>
696 <groupId>org.apache.camel</groupId>
697 <artifactId>camel-velocity</artifactId>
698 <version>${camel.version.latest}</version>
701 <groupId>com.att.ajsc</groupId>
702 <artifactId>ajsc-runner</artifactId>
703 <version>3.0.11-oss</version>
704 <scope>runtime</scope>
707 <groupId>com.att.ajsc</groupId>
708 <artifactId>ajsc-core</artifactId>
709 <version>3.0.11-oss</version>
710 <scope>provided</scope>
713 <groupId>io.dropwizard.metrics</groupId>
714 <artifactId>metrics-core</artifactId>
715 <version>4.2.3</version>
719 <groupId>org.slf4j</groupId>
720 <artifactId>slf4j-api</artifactId>
721 <version>1.7.32</version>
724 <groupId>com.github.stefanbirkner</groupId>
725 <artifactId>system-rules</artifactId>
726 <version>1.17.2</version>
731 <!-- Use this profile to run the AJSC locally. This profile can be successfully
732 shutdown WITHIN eclipse even in a Windows environment. Debugging is also
733 available with this profile. -->
737 <skipTests>true</skipTests>
742 <groupId>org.codehaus.groovy.maven</groupId>
743 <artifactId>gmaven-plugin</artifactId>
746 <phase>validate</phase>
752 <ver>${project.version}</ver>
753 <timestamp>${maven.build.timestamp}</timestamp>
756 println project.properties['ver'];
757 if ( project.properties['ver'].endsWith("-SNAPSHOT") ) {
758 project.properties['dockertag1']=project.properties['ver'] + "-latest";
759 project.properties['dockertag2']=project.properties['ver'] + "-" + project.properties['timestamp'];
761 project.properties['dockertag1']=project.properties['ver'] + "-STAGING-latest";
762 project.properties['dockertag2']=project.properties['ver'] + "-STAGING-" + project.properties['timestamp'];
764 println 'docker tag 1: ' + project.properties['dockertag1'];
765 println 'docker tag 2: ' + project.properties['dockertag2'];
772 <groupId>io.fabric8</groupId>
773 <artifactId>docker-maven-plugin</artifactId>
774 <version>0.33.0</version>
776 <skipBuild>${skip.docker.build}</skipBuild>
777 <skipPush>${skip.docker.push}</skipPush>
778 <pullRegistry>${docker.pull.registry}</pullRegistry>
779 <pushRegistry>${docker.push.registry}</pushRegistry>
782 <name>onap/dmaap/dmaap-mr</name>
784 <cleanup>try</cleanup>
785 <dockerFileDir>${dockerLocation}</dockerFileDir>
786 <dockerFile>Dockerfile</dockerFile>
788 <tag>${dockertag1}</tag>
789 <tag>${dockertag2}</tag>
797 <id>generate-images</id>
798 <phase>install</phase>
805 <phase>deploy</phase>
816 <id>standardbuild</id>
825 <directory>src/main/resources</directory>
827 <exclude>extApps/*.*</exclude>
828 <exclude>${module.ajsc.namespace.name}/**</exclude>
832 <directory>src/main/ajsc/\${namespace}_${namespaceVersion}/\${namespace}/\${namespaceVersion}</directory>
834 <exclude>**/*.route</exclude>
835 <exclude>**/*.props</exclude>
836 <exclude>**/*.xslt</exclude>
837 <exclude>**/*.vm</exclude>
838 <exclude>**/*.jar</exclude>
839 <exclude>**/*.xml</exclude>
845 <groupId>org.apache.maven.plugins</groupId>
846 <artifactId>maven-compiler-plugin</artifactId>
847 <version>3.1</version>
850 <groupId>org.codehaus.groovy</groupId>
851 <artifactId>groovy-eclipse-compiler</artifactId>
852 <version>2.8.0-01</version>
853 <extensions>true</extensions>
856 <groupId>org.codehaus.mojo</groupId>
857 <artifactId>exec-maven-plugin</artifactId>
858 <version>1.2.1</version>
867 <executable>bash</executable>
869 <argument>runServer.sh</argument>
874 <groupId>org.codehaus.mojo</groupId>
875 <artifactId>build-helper-maven-plugin</artifactId>
876 <version>1.9</version>
879 <id>add-source-groovy-ajsc-arch-parent</id>
880 <phase>generate-sources</phase>
882 <goal>add-source</goal>
886 <source>src/main/groovy</source>
891 <id>add-test-source-groovy-ajsc-arch-parent</id>
892 <phase>generate-test-sources</phase>
894 <goal>add-test-source</goal>
898 <source>src/test/groovy</source>
903 <id>regex-properties-ajsc-arch-parent</id>
904 <phase>initialize</phase>
906 <goal>regex-properties</goal>
909 <regexPropertySettings>
910 <regexPropertySetting>
911 <name>replaceWinFilePath</name>
912 <value>${runAjscHome}</value>
914 <replacement>/</replacement>
915 <failIfNoMatch>false</failIfNoMatch>
916 </regexPropertySetting>
917 <regexPropertySetting>
918 <name>replaceWinBasedirPath</name>
919 <value>${basedir}</value>
921 <replacement>/</replacement>
922 <failIfNoMatch>false</failIfNoMatch>
923 </regexPropertySetting>
924 </regexPropertySettings>
930 <groupId>org.codehaus.mojo</groupId>
931 <artifactId>properties-maven-plugin</artifactId>
932 <version>1.0-alpha-2</version>
935 <id>write-project-properties-ajsc-arch-parent</id>
936 <phase>generate-resources</phase>
938 <goal>write-project-properties</goal>
942 ${project.build.outputDirectory}/build.properties
949 <groupId>org.apache.maven.plugins</groupId>
950 <artifactId>maven-assembly-plugin</artifactId>
951 <version>2.4</version>
954 <id>make-assembly-ajsc-arch-parent</id>
955 <phase>package</phase>
962 <finalName>${project.artifactId}</finalName>
964 <descriptor>src/main/assemble/ajsc_runtime_assembly.xml</descriptor>
969 <groupId>org.codehaus.groovy.maven</groupId>
970 <artifactId>gmaven-plugin</artifactId>
971 <version>1.0</version>
974 <id>gmaven-ajsc-arch-parent</id>
975 <phase>package</phase>
980 <sourcepath>src/main/groovy</sourcepath>
982 import ajsc.AssemblyService;
983 ajsc.AssemblyService.getBasedir(project.basedir.getAbsolutePath(),"${distFilesRoot}")
990 <groupId>org.apache.maven.plugins</groupId>
991 <artifactId>maven-antrun-plugin</artifactId>
992 <version>1.7</version>
995 <id>prep_service_runtime-ajsc-arch-parent</id>
996 <phase>generate-resources</phase>
998 <target name="prep_service_runtime">
999 <echo message="ENTERING 'copy_services_template' ant tasks" />
1000 <!-- <filter token="basedir" value="${basedir}" /> -->
1001 <!-- delete any prior stating stuff before package phase -->
1002 <delete dir="target/versioned-ajsc" includes="**/*" />
1003 <delete dir="target/versioned-runtime" includes="**/*" />
1004 <delete dir="target/CDP" includes="**/*" />
1006 <!-- This is where replacer plugin replaces tokens (Example: __module_ajsc_namespace_name__
1007 is replaced by module.ajsc.namespace.name) -->
1008 <copy todir="target/versioned-ajsc">
1009 <fileset dir="src/main/ajsc" includes="**/*" />
1012 <!-- Copying the CDP, bundleconfig, and StaticContent to the target
1013 directory for future use by replacer plugin -->
1014 <copy todir="target/CDP" failonerror="false">
1015 <fileset dir="CDP" includes="**/*.sh" />
1017 <copy flatten="true" file="CDP/SampleBlueprint.xml"
1019 tofile="target/CDP/${module.ajsc.namespace.name}Blueprint.xml" />
1020 <copy todir="target/staticContent" failonerror="false">
1021 <fileset dir="staticContent" includes="**/*" />
1023 <copy todir="target/bundleconfig" failonerror="false">
1024 <!-- filtering="true"> -->
1025 <fileset dir="bundleconfig" />
1028 <echo message="EXITING 'copy_services_template' ant tasks" />
1029 <echo message="ENTERING 'copy_runtime_template' ant tasks" />
1030 <copy todir="target/versioned-runtime">
1031 <fileset dir="src/main/runtime" includes="**/*" />
1034 file="target/versioned-runtime/context/__module.ajsc.namespace.name__#__module.ajsc.namespace.version__.context" />
1035 <copy flatten="true"
1036 file="src/main/runtime/context/__module.ajsc.namespace.name__#__module.ajsc.namespace.version__.context"
1037 tofile="target/versioned-runtime/context/${module.ajsc.namespace.name}#${module.ajsc.namespace.version}.context" />
1039 file="target/versioned-runtime/deploymentPackage/__module.ajsc.namespace.name__#__module.ajsc.namespace.version__.json" />
1040 <copy flatten="true"
1041 file="src/main/runtime/deploymentPackage/__module.ajsc.namespace.name__#__module.ajsc.namespace.version__.json"
1042 tofile="target/versioned-runtime/deploymentPackage/${module.ajsc.namespace.name}#${module.ajsc.namespace.version}.json" />
1044 file="target/versioned-runtime/shiroRole/contextadmin#__module.ajsc.namespace.name__.json" />
1045 <copy flatten="true"
1046 file="src/main/runtime/shiroRole/contextadmin#__module.ajsc.namespace.name__.json"
1047 tofile="target/versioned-runtime/shiroRole/contextadmin#${module.ajsc.namespace.name}.json" />
1049 file="target/versioned-runtime/shiroUserRole/ajsc#contextAdmin#__module.ajsc.namespace.name__.json" />
1050 <copy flatten="true"
1051 file="src/main/runtime/shiroUserRole/ajsc#contextadmin#__module.ajsc.namespace.name__.json"
1052 tofile="target/versioned-runtime/shiroUserRole/ajsc#contextadmin#${module.ajsc.namespace.name}.json" />
1053 <echo message="EXITING 'copy_runtime_template' ant tasks" />
1062 <phase>package</phase>
1066 srcdir="${basedir}/target/swm/package/nix/dist_files${distFilesRoot}"
1067 includes="**/*.sh,**/*.xml,**/*.properties,**/*.xsd" />
1075 <id>prep_home_directory_for_swm_pkgcreate-ajsc-arch-parent</id>
1076 <phase>package</phase>
1078 <target name="prep_home_directory_for_swm_pkgcreate">
1079 <ant antfile="${basedir}/antBuild/build.xml" target="prep_home_directory_for_swm_pkgcreate" />
1089 <groupId>org.apache.maven.plugins</groupId>
1090 <artifactId>maven-dependency-plugin</artifactId>
1091 <version>2.8</version>
1094 <id>copy-dependencies-ajsc-arch-parent</id>
1095 <phase>prepare-package</phase>
1097 <goal>copy-dependencies</goal>
1100 <includeScope>runtime</includeScope>
1101 <excludeArtifactIds>ajsc-bom,ajsc-core,ajsc-runner,ajsc-war</excludeArtifactIds>
1102 <outputDirectory>${project.build.directory}/userjars</outputDirectory>
1103 <silent>true</silent>
1108 <phase>prepare-package</phase>
1110 <goal>copy-dependencies</goal>
1113 <includeArtifactIds>ajsc-runner</includeArtifactIds>
1114 <outputDirectory>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}/lib</outputDirectory>
1120 <artifactId>maven-resources-plugin</artifactId>
1121 <version>2.7</version>
1125 <phase>package</phase>
1127 <goal>copy-resources</goal>
1130 <outputDirectory>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}/etc</outputDirectory>
1133 <directory>src/main/config</directory>
1139 <id>copy-docker-file</id>
1140 <phase>prepare-package</phase>
1142 <goal>copy-resources</goal>
1145 <outputDirectory>${dockerLocation}</outputDirectory>
1146 <overwrite>true</overwrite>
1149 <directory>${basedir}/src/main/resources/docker</directory>
1150 <filtering>true</filtering>
1152 <include>**/*</include>
1164 <groupId>org.apache.maven.plugins</groupId>
1165 <artifactId>maven-surefire-plugin</artifactId>
1166 <version>2.19.1</version>
1169 <exclude>**/AbstractTest.java</exclude>
1172 ${surefireArgLine} --illegal-access=permit