DMAAP-MR - Merge MR repos
[dmaap/messagerouter/messageservice.git] / pom.xml
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>
15
16         <parent>
17                 <groupId>org.onap.oparent</groupId>
18                 <artifactId>oparent</artifactId>
19                 <version>3.2.0</version>
20         </parent>
21
22         <groupId>org.onap.dmaap.messagerouter.messageservice</groupId>
23         <artifactId>dmaapMR1</artifactId>
24         <version>1.3.0-SNAPSHOT</version>
25         <name>dmaap-messagerouter-messageservice</name>
26         <description>Message Router - Restful interface built for kafka</description>
27         <licenses>
28                 <license>
29                         <name>Apache License Version 2.0</name>
30                 </license>
31         </licenses>
32
33         <developers>
34                 <developer>
35                         <name>Rajashree</name>
36                         <email></email>
37                         <organization>ATT</organization>
38                         <organizationUrl>www.att.com</organizationUrl>
39                 </developer>
40                 <developer>
41                         <name>Ramkumar</name>
42                         <email></email>
43                         <organization>ATT</organization>
44                         <organizationUrl>www.att.com</organizationUrl>
45                 </developer>
46         </developers>
47
48         <properties>
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                 <!-- <javax-mail-version>1.5.0</javax-mail-version> -->
53                 <module.ajsc.namespace.name>dmaap</module.ajsc.namespace.name>
54                 <module.ajsc.namespace.version>v1</module.ajsc.namespace.version>
55                 <ajscRuntimeVersion>3.0.11-oss</ajscRuntimeVersion>
56
57                 <!-- This will be the Absolute Root of the Project and should contain NO
58                         Versioning -->
59                 <absoluteDistFilesRoot>/appl/${project.artifactId}</absoluteDistFilesRoot>
60                 <!-- <absoluteDistFilesRoot>/opt/app/dmaap/${project.artifactId}</absoluteDistFilesRoot> -->
61                 <!-- For Versioning upon installation, add /${project.version} to distFilesRoot.
62                         For NO Versioning, leave as is -->
63                 <!-- example: /appl/${project.artifactId}/${project.version}. Also, add
64                         ${project.version} to ${runAjscHome} for running locally. -->
65                 <distFilesRoot>/appl/${project.artifactId}</distFilesRoot>
66                 <!-- <distFilesRoot>/opt/app/dmaap/${project.artifactId}</distFilesRoot> -->
67                 <runAjscHome>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}</runAjscHome>
68
69                 <!-- For SOA Cloud Installation <installOwnerUser>aft</installOwnerUser>
70                         <installOwnerGroup>aft</installOwnerGroup> <ownerManagementGroup>com.att.acsi.saat.dt.dmaap.dev</ownerManagementGroup> -->
71                 <!-- For SOA Cloud Installation -->
72                 <installOwnerUser>msgrtr</installOwnerUser>
73                 <installOwnerGroup>dmaap</installOwnerGroup>
74                 <ownerManagementGroup>com.att.acsi.saat.dt.dmaap.dev</ownerManagementGroup>
75                 <!-- Port Selection. A value of 0 will allow for dynamic port selection.
76                         For local testing, you may choose to hardcode this value to something like
77                         8080 -->
78                 <serverPort>3904</serverPort>
79                 <sslport>3905</sslport>
80                 <onap.nexus.url>https://nexus.onap.org</onap.nexus.url>
81                 <testRouteOffer>workstation</testRouteOffer>
82                 <testEnv>DEV</testEnv>
83                 <!-- <dmaapImg>${project.version}</dmaapImg> -->
84                 <timestamp>${maven.build.timestamp}</timestamp>
85                 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
86                 <camel.version>2.21.5</camel.version>
87                 <camel.version.latest>3.5.0</camel.version.latest>
88                 <sitePath>/content/sites/site/org/onap/dmaap/messagerouter/messageservice/${project.artifactId}/${project.version}</sitePath>
89                 <skip.docker.build>true</skip.docker.build>
90                 <skip.docker.tag>true</skip.docker.tag>
91                 <skip.docker.push>true</skip.docker.push>
92                 <nexusproxy>https://nexus.onap.org</nexusproxy>
93                 <docker.push.registry>nexus3.onap.org:10003</docker.push.registry>
94                 <spring.version>3.2.18.RELEASE</spring.version>
95                 <sonar.language>java</sonar.language>
96                 <sonar.skip>false</sonar.skip>
97                 <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
98                 <sonar.coverage.jacoco.xmlReportPaths>${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths>
99                 <sonar.projectVersion>${project.version}</sonar.projectVersion>
100                 <log4j.version>2.13.3</log4j.version>
101                 <maven.compiler.target>8</maven.compiler.target>
102                 <maven.compiler.source>8</maven.compiler.source>
103         </properties>
104
105         <build>
106                 <plugins>
107                         <plugin>
108                         <artifactId>maven-checkstyle-plugin</artifactId>
109                         <executions>
110                                 <execution>
111                                         <id>onap-java-style</id>
112                                         <configuration>
113                                                 <consoleOutput>false</consoleOutput>
114                                         </configuration>
115                                 </execution>
116                         </executions>
117                 </plugin>
118                         <plugin>
119                                 <groupId>org.apache.maven.plugins</groupId>
120                                 <artifactId>maven-site-plugin</artifactId>
121                                 <version>3.6</version>
122                                 <dependencies>
123                                         <dependency>
124                                                 <groupId>org.apache.maven.wagon</groupId>
125                                                 <artifactId>wagon-webdav-jackrabbit</artifactId>
126                                                 <version>2.10</version>
127                                         </dependency>
128                                 </dependencies>
129                         </plugin>
130
131                         <plugin>
132                                 <groupId>org.apache.maven.plugins</groupId>
133                                 <artifactId>maven-jar-plugin</artifactId>
134                                 <version>3.0.2</version>
135                         </plugin>
136                         <plugin>
137                                 <groupId>org.apache.maven.plugins</groupId>
138                                 <artifactId>maven-source-plugin</artifactId>
139                                 <version>3.0.0</version>
140                                 <executions>
141                                         <execution>
142                                                 <id>attach-sources</id>
143                                                 <goals>
144                                                         <goal>jar-no-fork</goal>
145                                                 </goals>
146                                         </execution>
147                                 </executions>
148                         </plugin>
149                         <plugin>
150                                 <groupId>org.apache.maven.plugins</groupId>
151                                 <artifactId>maven-release-plugin</artifactId>
152                                 <version>2.5.3</version>
153                                 <configuration>
154                                         <autoVersionSubmodules>true</autoVersionSubmodules>
155                                         <checkModificationExcludes>
156                                         </checkModificationExcludes>
157                                 </configuration>
158                                 <dependencies>
159                                         <dependency>
160                                                 <groupId>org.apache.maven.scm</groupId>
161                                                 <artifactId>maven-scm-provider-gitexe</artifactId>
162                                                 <version>1.9.4</version>
163                                         </dependency>
164                                 </dependencies>
165                         </plugin>
166
167
168                         <plugin>
169                                 <groupId>com.blackducksoftware.integration</groupId>
170                                 <artifactId>hub-maven-plugin</artifactId>
171                                 <version>1.0.4</version>
172                                 <inherited>false</inherited>
173                                 <configuration>
174                                         <target>${project.basedir}</target>
175                                 </configuration>
176                                 <executions>
177                                         <execution>
178                                                 <id>create-bdio-file</id>
179                                                 <phase>package</phase>
180                                                 <goals>
181                                                         <goal>createHubOutput</goal>
182                                                 </goals>
183                                         </execution>
184                                 </executions>
185                         </plugin>
186                         <plugin>
187                                 <groupId>org.codehaus.groovy</groupId>
188                                 <artifactId>groovy-eclipse-compiler</artifactId>
189                                 <version>2.8.0-01</version>
190                                 <extensions>true</extensions>
191                         </plugin>
192
193                 </plugins>
194         </build>
195
196         <!-- Distribution management -->
197         <distributionManagement>
198                 <site>
199                         <id>ecomp-site</id>
200                         <url>dav:${nexusproxy}${sitePath}</url>
201                 </site>
202         </distributionManagement>
203
204         <!-- End Distribution management -->
205
206         <!-- The standard build tasks for this project are inherited from the parent.
207                 Please do not override the build tasks. However tasks and/or profiles can
208                 be included here as well as additional dependencies for your service. Any
209                 runtime or compile scope dependencies will be copied to the INSTALLATION_PATH/extJars
210                 folder and will be made available on the AJSC classpath for your service.
211                 Please, NOTE: DME2 and CSM related dependencies are EXTERNALIZED within the
212                 CSI environment. Therefore, they are provided within this project as "provided"
213                 dependencies. In order for the AJSC to run properly, locally, the CSM and
214                 DME2 dependencies will be copied into the target/commonLibs folder and will
215                 be made available to the classpath of the AJSC through the use of the system
216                 property, "AJSC_EXTERNAL_LIB_FOLDERS". This system property needs to be set
217                 in the "runAjsc" maven profile within the pom.xml (and, is defaulted to do
218                 so). If you have a startup failure related to a missing dme2 class not found
219                 exception, please contact the AJSC team for assistance. You can email support
220                 at ajsc-Support <DL-ajsc-Support@att.com>. For more information regarding
221                 the usage of the AJSC service pom.xml and management of dependencies, -->
222         <dependencies>
223
224                 <!-- cmn-CommonDataModel dependency added to resolve build issue not finding
225                         version 100.0.64 -->
226
227                 <!-- <dependency> <groupId>csi-schemas-source</groupId> <artifactId>cmn-CommonDataModel</artifactId>
228                         <version>112.0.50</version> </dependency> -->
229                 <!-- TODO: add open source version here -->
230                 <dependency>
231                         <groupId>org.springframework.boot</groupId>
232                         <artifactId>spring-boot-starter-actuator</artifactId>
233                         <version>2.4.0</version>
234                 </dependency>
235                 <!-- Micormeter core dependecy  -->
236                 <dependency>
237                         <groupId>io.micrometer</groupId>
238                         <artifactId>micrometer-core</artifactId>
239                         <version>1.7.1</version>
240                 </dependency>
241                 <!-- Micrometer Prometheus registry  -->
242                 <dependency>
243                         <groupId>io.micrometer</groupId>
244                         <artifactId>micrometer-registry-prometheus</artifactId>
245                         <version>1.6.1</version>
246                 </dependency>
247                 <dependency>
248                         <groupId>com.sun.mail</groupId>
249                         <artifactId>javax.mail</artifactId>
250                         <version>1.6.0</version>
251                         <exclusions>
252                                 <!-- javax activation is part of the JDK now -->
253                                 <exclusion>
254                                         <groupId>javax.activation</groupId>
255                                         <artifactId>activation</artifactId>
256                                 </exclusion>
257                         </exclusions>
258                 </dependency>
259                 <dependency>
260                         <groupId>com.sun.xml.bind</groupId>
261                         <artifactId>jaxb-core</artifactId>
262                         <version>2.3.0.1</version>
263                         <scope>compile</scope>
264                 </dependency>
265                 <dependency>
266                         <groupId>com.sun.xml.bind</groupId>
267                         <artifactId>jaxb-impl</artifactId>
268                         <version>2.3.0.1</version>
269                         <scope>compile</scope>
270                         <exclusions>
271                                 <exclusion>
272                                         <artifactId>jsr181-api</artifactId>
273                                         <groupId>javax.jws</groupId>
274                                 </exclusion>
275                         </exclusions>
276                 </dependency>
277
278                 <dependency>
279                         <groupId>org.apache.cxf</groupId>
280                         <artifactId>cxf-rt-transports-http</artifactId>
281                         <version>3.2.5</version>
282                 </dependency>
283                 <dependency>
284                         <groupId>com.att.aft</groupId>
285                         <artifactId>dme2</artifactId>
286                         <version>3.1.200-oss</version>
287                         <exclusions>
288                                 <exclusion>
289                                         <groupId>javax.jms</groupId>
290                                         <artifactId>jms</artifactId>
291                                 </exclusion>
292                         </exclusions>
293                 </dependency>
294                 <dependency>
295                         <groupId>org.springframework</groupId>
296                         <artifactId>spring-test</artifactId>
297                         <version>3.2.12.RELEASE</version>
298                         <scope>test</scope>
299                 </dependency>
300                 <dependency>
301                         <groupId>org.springframework</groupId>
302                         <artifactId>spring-expression</artifactId>
303                         <version>4.3.18.RELEASE</version>
304                 </dependency>
305                 <dependency>
306                         <groupId>org.springframework</groupId>
307                         <artifactId>spring-messaging</artifactId>
308                         <version>4.1.9.RELEASE</version>
309                 </dependency>
310                 <dependency>
311                         <groupId>org.apache.zookeeper</groupId>
312                         <artifactId>zookeeper</artifactId>
313                         <version>3.4.14</version>
314                 </dependency>
315                 <dependency>
316                         <groupId>org.slf4j</groupId>
317                         <artifactId>slf4j-api</artifactId>
318                         <version>1.6.1</version>
319                 </dependency>
320                 <!-- Log4j2 logger -->
321                 <dependency>
322                         <groupId>org.apache.logging.log4j</groupId>
323                         <artifactId>log4j-api</artifactId>
324                         <version>${log4j.version}</version>
325                 </dependency>
326                 <dependency>
327                         <groupId>org.apache.logging.log4j</groupId>
328                         <artifactId>log4j-core</artifactId>
329                         <version>${log4j.version}</version>
330                 </dependency>
331                 <dependency>
332                         <groupId>org.slf4j</groupId>
333                         <artifactId>slf4j-log4j12</artifactId>
334                         <version>1.6.1</version>
335                         <exclusions>
336                                 <exclusion>
337                                         <groupId>*</groupId>
338                                         <artifactId>*</artifactId>
339                                 </exclusion>
340                         </exclusions>
341                 </dependency>
342                 <dependency>
343                         <groupId>org.hamcrest</groupId>
344                         <artifactId>hamcrest-library</artifactId>
345                         <version>1.3</version>
346                         <scope>test</scope>
347                 </dependency>
348                 <dependency>
349                         <groupId>org.apache.kafka</groupId>
350                         <artifactId>kafka_2.11</artifactId>
351                         <version>0.11.0.3</version>
352                 </dependency>
353                 <dependency>
354                         <groupId>commons-codec</groupId>
355                         <artifactId>commons-codec</artifactId>
356                         <version>1.14</version>
357                 </dependency>
358                 <dependency>
359                         <groupId>jline</groupId>
360                         <artifactId>jline</artifactId>
361                         <version>2.12.1</version>
362                 </dependency>
363                 <dependency>
364                         <groupId>commons-io</groupId>
365                         <artifactId>commons-io</artifactId>
366                         <version>2.7</version>
367                 </dependency>
368                 <dependency>
369                         <groupId>org.quartz-scheduler</groupId>
370                         <artifactId>quartz</artifactId>
371                         <version>2.3.2</version>
372                 </dependency>
373                 <dependency>
374                         <groupId>com.fasterxml.woodstox</groupId>
375                         <artifactId>woodstox-core</artifactId>
376                         <version>5.3.0</version>
377                 </dependency>
378                 <dependency>
379                         <groupId>org.grails</groupId>
380                         <artifactId>grails-bootstrap</artifactId>
381                         <version>4.0.1</version>
382                         <scope>compile</scope>
383                         <exclusions>
384                                 <exclusion>
385                                         <artifactId>ant</artifactId>
386                                         <groupId>org.apache.ant</groupId>
387                                 </exclusion>
388                                 <exclusion>
389                                         <artifactId>jna</artifactId>
390                                         <groupId>net.java.dev.jna</groupId>
391                                 </exclusion>
392                                 <exclusion>
393                                         <artifactId>ant-trax</artifactId>
394                                         <groupId>org.apache.ant</groupId>
395                                 </exclusion>
396                                 <exclusion>
397                                         <artifactId>gant_groovy1.8</artifactId>
398                                         <groupId>org.codehaus.gant</groupId>
399                                 </exclusion>
400                                 <exclusion>
401                                         <artifactId>ant-launcher</artifactId>
402                                         <groupId>org.apache.ant</groupId>
403                                 </exclusion>
404                                 <exclusion>
405                                         <artifactId>jline</artifactId>
406                                         <groupId>jline</groupId>
407                                 </exclusion>
408                                 <exclusion>
409                                         <artifactId>ivy</artifactId>
410                                         <groupId>org.apache.ivy</groupId>
411                                 </exclusion>
412                                 <exclusion>
413                                         <artifactId>jansi</artifactId>
414                                         <groupId>org.fusesource.jansi</groupId>
415                                 </exclusion>
416                                 <exclusion>
417                                         <artifactId>commons-logging</artifactId>
418                                         <groupId>commons-logging</groupId>
419                                 </exclusion>
420                                 <exclusion>
421                                         <artifactId>ant-junit</artifactId>
422                                         <groupId>org.apache.ant</groupId>
423                                 </exclusion>
424                         </exclusions>
425                 </dependency>
426                 <dependency>
427                         <groupId>commons-fileupload</groupId>
428                         <artifactId>commons-fileupload</artifactId>
429                         <version>1.4</version>
430                 </dependency>
431                 <dependency>
432                         <groupId>org.springframework</groupId>
433                         <artifactId>spring-context</artifactId>
434                         <version>4.3.18.RELEASE</version>
435                 </dependency>
436                 <dependency>
437                         <groupId>org.springframework</groupId>
438                         <artifactId>spring-webmvc</artifactId>
439                         <version>4.3.18.RELEASE</version>
440                 </dependency>
441                 <dependency>
442                         <groupId>org.springframework</groupId>
443                         <artifactId>spring-core</artifactId>
444                         <version>4.3.18.RELEASE</version>
445                 </dependency>
446                 <dependency>
447                         <groupId>org.springframework</groupId>
448                         <artifactId>spring-beans</artifactId>
449                         <version>4.3.18.RELEASE</version>
450                 </dependency>
451
452
453                 <dependency>
454                         <groupId>org.apache.commons</groupId>
455                         <artifactId>commons-io</artifactId>
456                         <version>1.3.2</version>
457                 </dependency>
458                 <dependency>
459                         <groupId>com.att.eelf</groupId>
460                         <artifactId>eelf-core</artifactId>
461                         <version>1.0.0</version>
462                         <exclusions>
463                                 <exclusion>
464                                         <groupId>org.mockito</groupId>
465                                         <artifactId>mockito-core</artifactId>
466                                 </exclusion>
467                                 <exclusion>
468                                         <groupId>org.powermock</groupId>
469                                         <artifactId>powermock-module-junit4</artifactId>
470                                 </exclusion>
471                                 <exclusion>
472                                         <groupId>org.powermock</groupId>
473                                         <artifactId>powermock-api-mockito</artifactId>
474                                 </exclusion>
475                         </exclusions>
476                 </dependency>
477
478                 <!-- our NSA server library -->
479                 <dependency>
480                         <groupId>com.att.nsa</groupId>
481                         <artifactId>nsaServerLibrary</artifactId>
482                         <version>1.0.10</version>
483                         <exclusions>
484                                 <exclusion>
485                                         <groupId>org.apache.tomcat</groupId>
486                                         <artifactId>tomcat-catalina</artifactId>
487                                 </exclusion>
488                                 <exclusion>
489                                         <groupId>org.apache.tomcat.embed</groupId>
490                                         <artifactId>tomcat-embed-core</artifactId>
491                                 </exclusion>
492                                 <exclusion>
493                                         <groupId>org.apache.tomcat</groupId>
494                                         <artifactId>tomcat-util</artifactId>
495                                 </exclusion>
496                                 <exclusion>
497                                         <groupId>javax.mail</groupId>
498                                         <artifactId>mail</artifactId>
499                                 </exclusion>
500                         </exclusions>
501                 </dependency>
502                 <dependency>
503                         <groupId>com.att.nsa</groupId>
504                         <artifactId>saToolkit</artifactId>
505                         <version>0.0.1</version>
506                 </dependency>
507                 <dependency>
508                         <groupId>org.apache.curator</groupId>
509                         <artifactId>curator-recipes</artifactId>
510                         <version>4.0.1</version>
511                 </dependency>
512
513                 <dependency>
514                         <groupId>org.apache.curator</groupId>
515                         <artifactId>curator-test</artifactId>
516                         <version>4.0.1</version>
517                 </dependency>
518                 <dependency>
519                         <groupId>javax.inject</groupId>
520                         <artifactId>javax.inject</artifactId>
521                         <version>1</version>
522                 </dependency>
523                 <dependency>
524                         <groupId>org.mockito</groupId>
525                         <artifactId>mockito-core</artifactId>
526                         <version>3.9.0</version>
527                         <scope>test</scope>
528                 </dependency>
529                 <dependency>
530                         <groupId>org.powermock</groupId>
531                         <artifactId>powermock-core</artifactId>
532                         <version>2.0.7</version>
533                         <scope>test</scope>
534                 </dependency>
535                 <dependency>
536                         <groupId>org.powermock</groupId>
537                         <artifactId>powermock-module-junit4</artifactId>
538                         <version>2.0.7</version>
539                         <scope>test</scope>
540                 </dependency>
541                 <dependency>
542                         <groupId>org.powermock</groupId>
543                         <artifactId>powermock-module-junit4-rule</artifactId>
544                         <version>2.0.7</version>
545                         <scope>test</scope>
546                 </dependency>
547                 <dependency>
548                         <groupId>org.powermock</groupId>
549                         <artifactId>powermock-api-support</artifactId>
550                         <version>2.0.7</version>
551                         <scope>test</scope>
552                 </dependency>
553                 <dependency>
554                         <groupId>org.powermock</groupId>
555                         <artifactId>powermock-api-mockito2</artifactId>
556                         <version>2.0.7</version>
557                 </dependency>
558                 <dependency>
559                         <groupId>com.fasterxml.jackson.jaxrs</groupId>
560                         <artifactId>jackson-jaxrs-json-provider</artifactId>
561                         <version>2.2.3</version>
562                 </dependency>
563
564                 <dependency>
565                         <groupId>com.fasterxml.jackson.core</groupId>
566                         <artifactId>jackson-core</artifactId>
567                         <version>2.11.2</version>
568                 </dependency>
569
570                 <dependency>
571                         <groupId>com.fasterxml.jackson.core</groupId>
572                         <artifactId>jackson-databind</artifactId>
573                         <version>2.11.2</version>
574                 </dependency>
575                 <dependency>
576                         <groupId>org.grails</groupId>
577                         <artifactId>grails-web</artifactId>
578                         <version>2.5.4</version>
579                         <exclusions>
580                                 <exclusion>
581                                         <groupId>org.grails</groupId>
582                                         <artifactId>grails-web-jsp</artifactId>
583                                 </exclusion>
584                         </exclusions>
585                 </dependency>
586                 <dependency>
587                         <groupId>org.codehaus.groovy</groupId>
588                         <artifactId>groovy-all</artifactId>
589                         <version>2.4.8</version>
590                         <scope>compile</scope>
591                         <exclusions>
592                                 <exclusion>
593                                         <artifactId>jline</artifactId>
594                                         <groupId>jline</groupId>
595                                 </exclusion>
596                         </exclusions>
597                 </dependency>
598
599                 <dependency>
600                         <groupId>junit</groupId>
601                         <artifactId>junit</artifactId>
602                         <version>4.11</version>
603                         <scope>test</scope>
604                 </dependency>
605
606                 <dependency>
607                         <groupId>org.json</groupId>
608                         <artifactId>json</artifactId>
609                         <version>20131018</version>
610                 </dependency>
611
612                 <!-- CXF JAX-RS extension -->
613                 <dependency>
614                         <groupId>org.apache.cxf</groupId>
615                         <artifactId>cxf-rt-rs-extension-providers</artifactId>
616                         <version>3.2.2</version>
617                         <exclusions>
618                                 <exclusion>
619                                         <groupId>org.apache.cxf</groupId>
620                                         <artifactId>cxf-core</artifactId>
621                                 </exclusion>
622                         </exclusions>
623                 </dependency>
624                 <dependency>
625                         <groupId>org.codehaus.jettison</groupId>
626                         <artifactId>jettison</artifactId>
627                         <version>1.3.7</version>
628                 </dependency>
629                 <dependency>
630                         <groupId>com.att.ajsc</groupId>
631                         <artifactId>ajsc-archetype-parent</artifactId>
632                         <version>3.0.11-oss</version>
633                         <type>pom</type>
634                 </dependency>
635
636                 <dependency>
637                         <groupId>org.onap.aaf.authz</groupId>
638                         <artifactId>aaf-cadi-aaf</artifactId>
639                         <version>2.7.4</version>
640                 </dependency>
641                 <dependency>
642                         <groupId>backport-util-concurrent</groupId>
643                         <artifactId>backport-util-concurrent</artifactId>
644                         <version>3.1</version>
645                 </dependency>
646                 <dependency>
647                         <groupId>org.apache.camel</groupId>
648                         <artifactId>camel-core</artifactId>
649                         <version>3.4.0</version>
650                 </dependency>
651                 <dependency>
652                         <groupId>org.apache.camel</groupId>
653                         <artifactId>camel-quartz</artifactId>
654                         <version>${camel.version}</version>
655                 </dependency>
656                 <dependency>
657                         <groupId>org.apache.camel</groupId>
658                         <artifactId>camel-spring</artifactId>
659                         <version>${camel.version.latest}</version>
660                 </dependency>
661                 <dependency>
662                         <groupId>org.apache.camel</groupId>
663                         <artifactId>camel-restlet</artifactId>
664                         <version>${camel.version}</version>
665                         <exclusions>
666                                 <exclusion>
667                                         <artifactId>org.restlet</artifactId>
668                                         <groupId>org.restlet.jse</groupId>
669                                 </exclusion>
670                         </exclusions>
671                 </dependency>
672                 <dependency>
673                         <groupId>org.apache.camel</groupId>
674                         <artifactId>camel-servlet</artifactId>
675                         <version>${camel.version}</version>
676                 </dependency>
677                 <dependency>
678                         <groupId>org.apache.httpcomponents</groupId>
679                         <artifactId>httpcore</artifactId>
680                         <version>4.4.1</version>
681                 </dependency>
682                 <dependency>
683                         <groupId>org.apache.camel</groupId>
684                         <artifactId>camel-http4</artifactId>
685                         <version>${camel.version}</version>
686                         <exclusions>
687                                 <exclusion>
688                                         <groupId>org.apache.geronimo.specs</groupId>
689                                         <artifactId>geronimo-servlet_2.5_spec</artifactId>
690                                 </exclusion>
691                         </exclusions>
692                 </dependency>
693                 <dependency>
694                         <groupId>org.apache.camel</groupId>
695                         <artifactId>camel-groovy</artifactId>
696                         <version>${camel.version.latest}</version>
697                 </dependency>
698                 <dependency>
699                         <groupId>org.apache.camel</groupId>
700                         <artifactId>camel-twitter</artifactId>
701                         <version>${camel.version}</version>
702                 </dependency>
703                 <dependency>
704                         <groupId>org.apache.camel</groupId>
705                         <artifactId>camel-mail</artifactId>
706                         <version>${camel.version}</version>
707                 </dependency>
708                 <dependency>
709                         <groupId>org.apache.camel</groupId>
710                         <artifactId>camel-smpp</artifactId>
711                         <version>${camel.version}</version>
712                 </dependency>
713                 <dependency>
714                         <groupId>org.apache.camel</groupId>
715                         <artifactId>camel-jms</artifactId>
716                         <version>${camel.version}</version>
717                 </dependency>
718                 <dependency>
719                         <groupId>org.apache.camel</groupId>
720                         <artifactId>camel-script</artifactId>
721                         <version>${camel.version}</version>
722                 </dependency>
723                 <dependency>
724                         <groupId>org.apache.camel</groupId>
725                         <artifactId>camel-xmpp</artifactId>
726                         <version>${camel.version}</version>
727                 </dependency>
728                 <dependency>
729                         <groupId>org.igniterealtime.smack</groupId>
730                         <artifactId>smack-tcp</artifactId>
731                         <version>4.1.0-rc1</version>
732                 </dependency>
733                 <dependency>
734                         <groupId>org.apache.camel</groupId>
735                         <artifactId>camel-velocity</artifactId>
736                         <version>${camel.version.latest}</version>
737                 </dependency>
738                 <dependency>
739                         <groupId>com.att.ajsc</groupId>
740                         <artifactId>ajsc-runner</artifactId>
741                         <version>3.0.11-oss</version>
742                         <scope>runtime</scope>
743                 </dependency>
744                 <dependency>
745                         <groupId>com.att.ajsc</groupId>
746                         <artifactId>ajsc-core</artifactId>
747                         <version>3.0.11-oss</version>
748                         <scope>provided</scope>
749                 </dependency>
750
751         </dependencies>
752         <profiles>
753                 <!-- Use this profile to run the AJSC locally. This profile can be successfully
754                         shutdown WITHIN eclipse even in a Windows environment. Debugging is also
755                         available with this profile. -->
756                 <profile>
757                         <id>docker</id>
758                         <properties>
759                                 <skip.docker.build>false</skip.docker.build>
760                                 <skip.docker.tag>false</skip.docker.tag>
761                                 <skip.docker.push>false</skip.docker.push>
762                         </properties>
763                         <build>
764                                 <plugins>
765                                         <plugin>
766                                                 <groupId>org.codehaus.groovy.maven</groupId>
767                                                 <artifactId>gmaven-plugin</artifactId>
768                                                 <executions>
769                                                         <execution>
770                                                                 <phase>validate</phase>
771                                                                 <goals>
772                                                                         <goal>execute</goal>
773                                                                 </goals>
774                                                                 <configuration>
775                                                                         <properties>
776                                                                                 <ver>${project.version}</ver>
777                                                                                 <timestamp>${maven.build.timestamp}</timestamp>
778                                                                         </properties>
779                                                                         <source>
780                                                                                 println project.properties['ver'];
781                                                                                 if ( project.properties['ver'].endsWith("-SNAPSHOT") ) {
782                                                                                         project.properties['dockertag1']=project.properties['ver'] + "-latest";
783                                                                                         project.properties['dockertag2']=project.properties['ver'] + "-" + project.properties['timestamp'];
784                                                                                 } else {
785                                                                                         project.properties['dockertag1']=project.properties['ver'] + "-STAGING-latest";
786                                                                                         project.properties['dockertag2']=project.properties['ver'] + "-STAGING-" + project.properties['timestamp'];
787                                                                                 }
788                                                                                 println 'docker tag 1: ' + project.properties['dockertag1'];
789                                                                                 println 'docker tag 2: ' + project.properties['dockertag2'];
790                                                                         </source>
791                                                                 </configuration>
792                                                         </execution>
793                                                 </executions>
794                                         </plugin>
795                                         <plugin>
796                                                 <groupId>io.fabric8</groupId>
797                                                 <artifactId>docker-maven-plugin</artifactId>
798                                                 <version>0.28.0</version>
799                                                 <configuration>
800                                                         <verbose>${docker.verbose}</verbose>
801                                                         <apiVersion>${docker.apiVersion}</apiVersion>
802                                                         <pullRegistry>${docker.pull.registry}</pullRegistry>
803                                                         <pushRegistry>${docker.push.registry}</pushRegistry>
804                                                         <images>
805                                                                 <image>
806                                                                         <name>onap/dmaap/dmaap-mr</name>
807                                                                         <build>
808                                                                                 <cleanup>try</cleanup>
809                                                                                 <dockerFileDir>${dockerLocation}</dockerFileDir>
810                                                                                 <dockerFile>Dockerfile</dockerFile>
811                                                                                 <tags>
812                                                                                         <tag>${dockertag1}</tag>
813                                                                                         <tag>${dockertag2}</tag>
814                                                                                 </tags>
815                                                                         </build>
816                                                                 </image>
817                                                         </images>
818                                                 </configuration>
819                                                 <executions>
820                                                         <execution>
821                                                                 <id>generate-images</id>
822                                                                 <phase>install</phase>
823                                                                 <goals>
824                                                                         <goal>build</goal>
825                                                                 </goals>
826                                                         </execution>
827                                                         <execution>
828                                                                 <id>push-images</id>
829                                                                 <phase>deploy</phase>
830                                                                 <goals>
831                                                                         <goal>push</goal>
832                                                                 </goals>
833                                                         </execution>
834                                                 </executions>
835                                         </plugin>
836                                 </plugins>
837                         </build>
838                 </profile>
839
840                 <profile>
841                         <id>runLocal</id>
842                         <build>
843                                 <defaultGoal>initialize</defaultGoal>
844                                 <plugins>
845                                         <plugin>
846                                                 <groupId>org.apache.maven.plugins</groupId>
847                                                 <artifactId>maven-antrun-plugin</artifactId>
848                                                 <executions>
849                                                         <execution>
850                                                                 <phase>initialize</phase>
851                                                                 <configuration>
852                                                                         <target name="runLocal">
853                                                                                 <ant antfile="${basedir}/antBuild/build.xml" target="runLocal" />
854                                                                         </target>
855                                                                 </configuration>
856                                                                 <goals>
857                                                                         <goal>run</goal>
858                                                                 </goals>
859                                                         </execution>
860                                                 </executions>
861                                         </plugin>
862                                 </plugins>
863                         </build>
864                 </profile>
865
866                 <profile>
867                         <id>runAjsc</id>
868                         <build>
869                                 <defaultGoal>initialize</defaultGoal>
870                                 <plugins>
871                                         <plugin>
872                                                 <groupId>org.codehaus.mojo</groupId>
873                                                 <artifactId>exec-maven-plugin</artifactId>
874                                                 <version>1.3.2</version>
875                                                 <executions>
876                                                         <execution>
877                                                                 <phase>initialize</phase>
878                                                                 <goals>
879                                                                         <goal>java</goal>
880                                                                 </goals>
881                                                                 <configuration>
882                                                                         <!-- In order to better mimic a SOA cloud installation of AJSC (and
883                                                                                 to help eliminate Maven/Eclipse/AJSC classpath issues that may be difficult
884                                                                                 to diagnose), within this profile used to run locally, we are NOT including
885                                                                                 project dependencies. These will be loaded by AJSC from $AJSC_HOME/extJars.
886                                                                                 The only jar needed to run AJSC is the ajsc-runner.jar, and therefore is
887                                                                                 the only dependency required by this profile to run locally. -->
888                                                                         <includeProjectDependencies>false</includeProjectDependencies>
889                                                                         <includePluginDependencies>true</includePluginDependencies>
890                                                                         <executable>java</executable>
891                                                                         <mainClass>com.att.ajsc.runner.Runner</mainClass>
892                                                                         <executableDependency>
893                                                                                 <groupId>com.att.ajsc</groupId>
894                                                                                 <artifactId>ajsc-runner</artifactId>
895                                                                         </executableDependency>
896                                                                         <additionalClasspathElements>
897                                                                                 <additionalClasspathElement>${basedir}/ajsc-shared-config/etc</additionalClasspathElement>
898                                                                         </additionalClasspathElements>
899
900                                                                         <environmentVariables>
901                                                                                 <AJSC_HOME>${runAjscHome}</AJSC_HOME>
902                                                                         </environmentVariables>
903
904                                                                         <!-- Main AJSC System Properties below (necessary for proper startup) -->
905                                                                         <systemProperties>
906                                                                                 <systemProperty>
907                                                                                         <key>AJSC_HOME</key>
908                                                                                         <value>${runAjscHome}</value>
909                                                                                 </systemProperty>
910                                                                                 <systemProperty>
911                                                                                         <key>AJSC_HOME</key>
912                                                                                         <value>${runAjscHome}</value>
913                                                                                 </systemProperty>
914                                                                                 <systemProperty>
915                                                                                         <key>AJSC_CONF_HOME</key>
916                                                                                         <value>${basedir}/bundleconfig-local</value>
917                                                                                 </systemProperty>
918                                                                                 <systemProperty>
919                                                                                         <key>logback.configurationFile</key>
920                                                                                         <value>${basedir}/ajsc-shared-config/etc/logback.xml</value>
921                                                                                 </systemProperty>
922                                                                                 <systemProperty>
923                                                                                         <key>com.att.eelf.logging.file</key>
924                                                                                         <value>logback.xml</value>
925                                                                                 </systemProperty>
926                                                                                 <systemProperty>
927                                                                                         <key>com.att.eelf.logging.path</key>
928                                                                                         <value>${basedir}/ajsc-shared-config/etc</value>
929                                                                                 </systemProperty>
930                                                                                 <systemProperty>
931                                                                                         <key>logging.config</key>
932                                                                                         <value>${basedir}/ajsc-shared-config/etc/logback.xml</value>
933                                                                                 </systemProperty>
934                                                                                 <systemProperty>
935                                                                                         <key>AJSC_SHARED_CONFIG</key>
936                                                                                         <value>${basedir}/ajsc-shared-config</value>
937                                                                                 </systemProperty>
938
939                                                                                 <!-- Please, NOTE: The following 2 system properties will normally
940                                                                                         be set within the sys-props.properties file once deployed to a node. We are
941                                                                                         setting them HERE to run locally to make more efficient use of maven variable
942                                                                                         replacement for ${basedir} -->
943                                                                                 <!-- AJSC_EXTERNAL_LIB_FOLDERS represents the particular jars that
944                                                                                         will be externalized on a CSI node. This includes dme2 and csm related artifact. -->
945                                                                                 <sysproperty>
946                                                                                         <key>AJSC_EXTERNAL_LIB_FOLDERS</key>
947                                                                                         <value>${basedir}/target/commonLibs</value>
948                                                                                 </sysproperty>
949                                                                                 <!-- AJSC_EXTERNAL_PROPERTIES_FOLDERS represents the particular
950                                                                                         files that may need to be added to the classpath. These files will be externalized
951                                                                                         on a CSI node. This includes dme2 and csm related artifact (such as csm-config-app.properties).
952                                                                                         Failure to have these files on the classpath may result in errors thrown
953                                                                                         by csm framework. -->
954                                                                                 <sysproperty>
955                                                                                         <key>AJSC_EXTERNAL_PROPERTIES_FOLDERS</key>
956                                                                                         <value>${basedir}/ajsc-shared-config/etc</value>
957                                                                                 </sysproperty>
958
959                                                                                 <systemProperty>
960                                                                                         <key>AJSC_SERVICE_NAMESPACE</key>
961                                                                                         <value>${module.ajsc.namespace.name}</value>
962                                                                                 </systemProperty>
963                                                                                 <systemProperty>
964                                                                                         <key>AJSC_SERVICE_VERSION</key>
965                                                                                         <value>${module.ajsc.namespace.version}</value>
966                                                                                 </systemProperty>
967                                                                                 <systemProperty>
968                                                                                         <key>SOACLOUD_SERVICE_VERSION</key>
969                                                                                         <value>${project.version}</value>
970                                                                                 </systemProperty>
971                                                                                 <systemProperty>
972                                                                                         <key>server.port</key>
973                                                                                         <value>${serverPort}</value>
974                                                                                 </systemProperty>
975                                                                         </systemProperties>
976
977                                                                         <!-- Command Line Arguments to add to the java command. Here, you
978                                                                                 can specify the port as well as the Context you want your service to run
979                                                                                 in. Use context=/ to run in an unnamed Context (Root Context). The default
980                                                                                 configuration of the AJSC is to run under the / Context. Setting the port
981                                                                                 here can aid during the development phase of your service. However, you can
982                                                                                 leave this argument out entirely, and the AJSC will default to using an Ephemeral
983                                                                                 port. -->
984                                                                         <arguments>
985                                                                                 <argument>context=/</argument>
986                                                                                 <argument>port=${serverPort}</argument>
987                                                                                 <argument>sslport=${sslport}</argument>
988                                                                         </arguments>
989                                                                 </configuration>
990                                                         </execution>
991                                                 </executions>
992                                                 <configuration>
993                                                         <executable>java</executable>
994                                                 </configuration>
995                                                 <dependencies>
996                                                         <dependency>
997                                                                 <groupId>com.att.ajsc</groupId>
998                                                                 <artifactId>ajsc-runner</artifactId>
999                                                                 <version>${ajscRuntimeVersion}</version>
1000                                                         </dependency>
1001                                                 </dependencies>
1002                                         </plugin>
1003
1004                                 </plugins>
1005                         </build>
1006                 </profile>
1007                 <profile>
1008                         <id>standardbuild</id>
1009                         <activation>
1010                                 <file>
1011                                         <exists>src</exists>
1012                                 </file>
1013                         </activation>
1014                         <build>
1015                                 <resources>
1016                                         <resource>
1017                                                 <directory>src/main/resources</directory>
1018                                                 <excludes>
1019                                                         <exclude>extApps/*.*</exclude>
1020                                                         <exclude>${module.ajsc.namespace.name}/**</exclude>
1021                                                 </excludes>
1022                                         </resource>
1023                                         <resource>
1024                                                 <directory>src/main/ajsc/\${namespace}_${namespaceVersion}/\${namespace}/\${namespaceVersion}</directory>
1025                                                 <excludes>
1026                                                         <exclude>**/*.route</exclude>
1027                                                         <exclude>**/*.props</exclude>
1028                                                         <exclude>**/*.xslt</exclude>
1029                                                         <exclude>**/*.vm</exclude>
1030                                                         <exclude>**/*.jar</exclude>
1031                                                         <exclude>**/*.xml</exclude>
1032                                                 </excludes>
1033                                         </resource>
1034                                 </resources>
1035                                 <plugins>
1036                                         <plugin>
1037                                                 <groupId>org.apache.maven.plugins</groupId>
1038                                                 <artifactId>maven-compiler-plugin</artifactId>
1039                                                 <version>3.1</version>
1040                                         </plugin>
1041                                         <plugin>
1042                                                 <groupId>org.codehaus.groovy</groupId>
1043                                                 <artifactId>groovy-eclipse-compiler</artifactId>
1044                                                 <version>2.8.0-01</version>
1045                                                 <extensions>true</extensions>
1046                                         </plugin>
1047
1048                                         <plugin>
1049                                                 <groupId>org.codehaus.mojo</groupId>
1050                                                 <artifactId>exec-maven-plugin</artifactId>
1051                                                 <version>1.2.1</version>
1052                                                 <executions>
1053                                                         <execution>
1054                                                                 <goals>
1055                                                                         <goal>exec</goal>
1056                                                                 </goals>
1057                                                         </execution>
1058                                                 </executions>
1059                                                 <configuration>
1060                                                         <executable>bash</executable>
1061                                                         <arguments>
1062                                                                 <argument>runServer.sh</argument>
1063                                                         </arguments>
1064                                                 </configuration>
1065                                         </plugin>
1066                                         <plugin>
1067                                                 <groupId>org.codehaus.mojo</groupId>
1068                                                 <artifactId>build-helper-maven-plugin</artifactId>
1069                                                 <version>1.9</version>
1070                                                 <executions>
1071                                                         <execution>
1072                                                                 <id>add-source-groovy-ajsc-arch-parent</id>
1073                                                                 <phase>generate-sources</phase>
1074                                                                 <goals>
1075                                                                         <goal>add-source</goal>
1076                                                                 </goals>
1077                                                                 <configuration>
1078                                                                         <sources>
1079                                                                                 <source>src/main/groovy</source>
1080                                                                         </sources>
1081                                                                 </configuration>
1082                                                         </execution>
1083                                                         <execution>
1084                                                                 <id>add-test-source-groovy-ajsc-arch-parent</id>
1085                                                                 <phase>generate-test-sources</phase>
1086                                                                 <goals>
1087                                                                         <goal>add-test-source</goal>
1088                                                                 </goals>
1089                                                                 <configuration>
1090                                                                         <sources>
1091                                                                                 <source>src/test/groovy</source>
1092                                                                         </sources>
1093                                                                 </configuration>
1094                                                         </execution>
1095                                                         <execution>
1096                                                                 <id>regex-properties-ajsc-arch-parent</id>
1097                                                                 <phase>initialize</phase>
1098                                                                 <goals>
1099                                                                         <goal>regex-properties</goal>
1100                                                                 </goals>
1101                                                                 <configuration>
1102                                                                         <regexPropertySettings>
1103                                                                                 <regexPropertySetting>
1104                                                                                         <name>replaceWinFilePath</name>
1105                                                                                         <value>${runAjscHome}</value>
1106                                                                                         <regex>\\</regex>
1107                                                                                         <replacement>/</replacement>
1108                                                                                         <failIfNoMatch>false</failIfNoMatch>
1109                                                                                 </regexPropertySetting>
1110                                                                                 <regexPropertySetting>
1111                                                                                         <name>replaceWinBasedirPath</name>
1112                                                                                         <value>${basedir}</value>
1113                                                                                         <regex>\\</regex>
1114                                                                                         <replacement>/</replacement>
1115                                                                                         <failIfNoMatch>false</failIfNoMatch>
1116                                                                                 </regexPropertySetting>
1117                                                                         </regexPropertySettings>
1118                                                                 </configuration>
1119                                                         </execution>
1120                                                 </executions>
1121                                         </plugin>
1122                                         <plugin>
1123                                                 <groupId>org.codehaus.mojo</groupId>
1124                                                 <artifactId>properties-maven-plugin</artifactId>
1125                                                 <version>1.0-alpha-2</version>
1126                                                 <executions>
1127                                                         <execution>
1128                                                                 <id>write-project-properties-ajsc-arch-parent</id>
1129                                                                 <phase>generate-resources</phase>
1130                                                                 <goals>
1131                                                                         <goal>write-project-properties</goal>
1132                                                                 </goals>
1133                                                                 <configuration>
1134                                                                         <outputFile>
1135                                                                                 ${project.build.outputDirectory}/build.properties
1136                                                                         </outputFile>
1137                                                                 </configuration>
1138                                                         </execution>
1139                                                 </executions>
1140                                         </plugin>
1141                                         <plugin>
1142                                                 <groupId>org.apache.maven.plugins</groupId>
1143                                                 <artifactId>maven-assembly-plugin</artifactId>
1144                                                 <version>2.4</version>
1145                                                 <executions>
1146                                                         <execution>
1147                                                                 <id>make-assembly-ajsc-arch-parent</id>
1148                                                                 <phase>package</phase>
1149                                                                 <goals>
1150                                                                         <goal>single</goal>
1151                                                                 </goals>
1152                                                         </execution>
1153                                                 </executions>
1154                                                 <configuration>
1155                                                         <finalName>${project.artifactId}</finalName>
1156                                                         <descriptors>
1157                                                                 <descriptor>src/main/assemble/ajsc_runtime_assembly.xml</descriptor>
1158                                                         </descriptors>
1159                                                 </configuration>
1160                                         </plugin>
1161                                         <plugin>
1162                                                 <groupId>org.codehaus.groovy.maven</groupId>
1163                                                 <artifactId>gmaven-plugin</artifactId>
1164                                                 <version>1.0</version>
1165                                                 <executions>
1166                                                         <execution>
1167                                                                 <id>gmaven-ajsc-arch-parent</id>
1168                                                                 <phase>package</phase>
1169                                                                 <goals>
1170                                                                         <goal>execute</goal>
1171                                                                 </goals>
1172                                                                 <configuration>
1173                                                                         <sourcepath>src/main/groovy</sourcepath>
1174                                                                         <source>
1175                                                                                 import ajsc.AssemblyService;
1176                                                                                 ajsc.AssemblyService.getBasedir(project.basedir.getAbsolutePath(),"${distFilesRoot}")
1177                                                                         </source>
1178                                                                 </configuration>
1179                                                         </execution>
1180                                                 </executions>
1181                                         </plugin>
1182                                         <plugin>
1183                                                 <groupId>org.apache.maven.plugins</groupId>
1184                                                 <artifactId>maven-antrun-plugin</artifactId>
1185                                                 <version>1.7</version>
1186                                                 <executions>
1187                                                         <execution>
1188                                                                 <id>prep_service_runtime-ajsc-arch-parent</id>
1189                                                                 <phase>generate-resources</phase>
1190                                                                 <configuration>
1191                                                                         <target name="prep_service_runtime">
1192                                                                                 <echo message="ENTERING 'copy_services_template' ant tasks" />
1193                                                                                 <!-- <filter token="basedir" value="${basedir}" /> -->
1194                                                                                 <!-- delete any prior stating stuff before package phase -->
1195                                                                                 <delete dir="target/versioned-ajsc" includes="**/*" />
1196                                                                                 <delete dir="target/versioned-runtime" includes="**/*" />
1197                                                                                 <delete dir="target/CDP" includes="**/*" />
1198
1199                                                                                 <!-- This is where replacer plugin replaces tokens (Example: __module_ajsc_namespace_name__
1200                                                                                         is replaced by module.ajsc.namespace.name) -->
1201                                                                                 <copy todir="target/versioned-ajsc">
1202                                                                                         <fileset dir="src/main/ajsc" includes="**/*" />
1203                                                                                 </copy>
1204
1205                                                                                 <!-- Copying the CDP, bundleconfig, and StaticContent to the target
1206                                                                                         directory for future use by replacer plugin -->
1207                                                                                 <copy todir="target/CDP" failonerror="false">
1208                                                                                         <fileset dir="CDP" includes="**/*.sh" />
1209                                                                                 </copy>
1210                                                                                 <copy flatten="true" file="CDP/SampleBlueprint.xml"
1211                                                                                           failonerror="false"
1212                                                                                           tofile="target/CDP/${module.ajsc.namespace.name}Blueprint.xml" />
1213                                                                                 <copy todir="target/staticContent" failonerror="false">
1214                                                                                         <fileset dir="staticContent" includes="**/*" />
1215                                                                                 </copy>
1216                                                                                 <copy todir="target/bundleconfig" failonerror="false">
1217                                                                                         <!-- filtering="true"> -->
1218                                                                                         <fileset dir="bundleconfig" />
1219                                                                                 </copy>
1220
1221                                                                                 <echo message="EXITING 'copy_services_template' ant tasks" />
1222                                                                                 <echo message="ENTERING 'copy_runtime_template' ant tasks" />
1223                                                                                 <copy todir="target/versioned-runtime">
1224                                                                                         <fileset dir="src/main/runtime" includes="**/*" />
1225                                                                                 </copy>
1226                                                                                 <delete
1227                                                                                                 file="target/versioned-runtime/context/__module.ajsc.namespace.name__#__module.ajsc.namespace.version__.context" />
1228                                                                                 <copy flatten="true"
1229                                                                                           file="src/main/runtime/context/__module.ajsc.namespace.name__#__module.ajsc.namespace.version__.context"
1230                                                                                           tofile="target/versioned-runtime/context/${module.ajsc.namespace.name}#${module.ajsc.namespace.version}.context" />
1231                                                                                 <delete
1232                                                                                                 file="target/versioned-runtime/deploymentPackage/__module.ajsc.namespace.name__#__module.ajsc.namespace.version__.json" />
1233                                                                                 <copy flatten="true"
1234                                                                                           file="src/main/runtime/deploymentPackage/__module.ajsc.namespace.name__#__module.ajsc.namespace.version__.json"
1235                                                                                           tofile="target/versioned-runtime/deploymentPackage/${module.ajsc.namespace.name}#${module.ajsc.namespace.version}.json" />
1236                                                                                 <delete
1237                                                                                                 file="target/versioned-runtime/shiroRole/contextadmin#__module.ajsc.namespace.name__.json" />
1238                                                                                 <copy flatten="true"
1239                                                                                           file="src/main/runtime/shiroRole/contextadmin#__module.ajsc.namespace.name__.json"
1240                                                                                           tofile="target/versioned-runtime/shiroRole/contextadmin#${module.ajsc.namespace.name}.json" />
1241                                                                                 <delete
1242                                                                                                 file="target/versioned-runtime/shiroUserRole/ajsc#contextAdmin#__module.ajsc.namespace.name__.json" />
1243                                                                                 <copy flatten="true"
1244                                                                                           file="src/main/runtime/shiroUserRole/ajsc#contextadmin#__module.ajsc.namespace.name__.json"
1245                                                                                           tofile="target/versioned-runtime/shiroUserRole/ajsc#contextadmin#${module.ajsc.namespace.name}.json" />
1246                                                                                 <echo message="EXITING 'copy_runtime_template' ant tasks" />
1247                                                                         </target>
1248                                                                 </configuration>
1249                                                                 <goals>
1250                                                                         <goal>run</goal>
1251                                                                 </goals>
1252                                                         </execution>
1253                                                         <execution>
1254                                                                 <id>clrf</id>
1255                                                                 <phase>package</phase>
1256                                                                 <configuration>
1257                                                                         <tasks>
1258                                                                                 <fixcrlf
1259                                                                                                 srcdir="${basedir}/target/swm/package/nix/dist_files${distFilesRoot}"
1260                                                                                                 includes="**/*.sh,**/*.xml,**/*.properties,**/*.xsd" />
1261                                                                         </tasks>
1262                                                                 </configuration>
1263                                                                 <goals>
1264                                                                         <goal>run</goal>
1265                                                                 </goals>
1266                                                         </execution>
1267                                                         <execution>
1268                                                                 <id>prep_home_directory_for_swm_pkgcreate-ajsc-arch-parent</id>
1269                                                                 <phase>package</phase>
1270                                                                 <configuration>
1271                                                                         <target name="prep_home_directory_for_swm_pkgcreate">
1272                                                                                 <ant antfile="${basedir}/antBuild/build.xml" target="prep_home_directory_for_swm_pkgcreate" />
1273                                                                         </target>
1274                                                                 </configuration>
1275                                                                 <goals>
1276                                                                         <goal>run</goal>
1277                                                                 </goals>
1278                                                         </execution>
1279                                                 </executions>
1280                                         </plugin>
1281                                         <plugin>
1282                                                 <groupId>org.apache.maven.plugins</groupId>
1283                                                 <artifactId>maven-dependency-plugin</artifactId>
1284                                                 <version>2.8</version>
1285                                                 <executions>
1286                                                         <execution>
1287                                                                 <id>copy-dependencies-ajsc-arch-parent</id>
1288                                                                 <phase>prepare-package</phase>
1289                                                                 <goals>
1290                                                                         <goal>copy-dependencies</goal>
1291                                                                 </goals>
1292                                                                 <configuration>
1293                                                                         <includeScope>runtime</includeScope>
1294                                                                         <excludeArtifactIds>ajsc-bom,ajsc-core,ajsc-runner,ajsc-war</excludeArtifactIds>
1295                                                                         <outputDirectory>${project.build.directory}/userjars</outputDirectory>
1296                                                                         <silent>true</silent>
1297                                                                 </configuration>
1298                                                         </execution>
1299                                                         <execution>
1300                                                                 <id>copy-dependencies-ajsc-arch-parent-commonLibs</id>
1301                                                                 <phase>prepare-package</phase>
1302                                                                 <goals>
1303                                                                         <goal>copy-dependencies</goal>
1304                                                                 </goals>
1305                                                                 <configuration>
1306                                                                         <includeScope>provided</includeScope>
1307                                                                         <includeGroupIds>net.cingular.enterprise,com.att.aft,dom4j</includeGroupIds>
1308                                                                         <outputDirectory>${project.build.directory}/commonLibs</outputDirectory>
1309                                                                         <silent>true</silent>
1310                                                                 </configuration>
1311                                                         </execution>
1312                                                         <execution>
1313                                                                 <id>copyrunner</id>
1314                                                                 <phase>prepare-package</phase>
1315                                                                 <goals>
1316                                                                         <goal>copy-dependencies</goal>
1317                                                                 </goals>
1318                                                                 <configuration>
1319                                                                         <includeArtifactIds>ajsc-runner</includeArtifactIds>
1320                                                                         <outputDirectory>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}/lib</outputDirectory>
1321                                                                 </configuration>
1322                                                         </execution>
1323                                                 </executions>
1324                                         </plugin>
1325                                         <plugin>
1326                                                 <artifactId>maven-resources-plugin</artifactId>
1327                                                 <version>2.7</version>
1328                                                 <executions>
1329                                                         <execution>
1330                                                                 <id>copyconfig</id>
1331                                                                 <phase>package</phase>
1332                                                                 <goals>
1333                                                                         <goal>copy-resources</goal>
1334                                                                 </goals>
1335                                                                 <configuration>
1336                                                                         <outputDirectory>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}/etc</outputDirectory>
1337                                                                         <resources>
1338                                                                                 <resource>
1339                                                                                         <directory>src/main/config</directory>
1340                                                                                 </resource>
1341                                                                         </resources>
1342                                                                 </configuration>
1343                                                         </execution>
1344                                                         <execution>
1345                                                                 <id>copyscript</id>
1346                                                                 <phase>package</phase>
1347                                                                 <goals>
1348                                                                         <goal>copy-resources</goal>
1349                                                                 </goals>
1350                                                                 <configuration>
1351                                                                         <outputDirectory>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}/bin</outputDirectory>
1352                                                                         <resources>
1353                                                                                 <resource>
1354                                                                                         <directory>src/main/scripts</directory>
1355                                                                                 </resource>
1356                                                                         </resources>
1357                                                                 </configuration>
1358                                                         </execution>
1359                                                         <execution>
1360                                                                 <id>copy-docker-file</id>
1361                                                                 <phase>prepare-package</phase>
1362                                                                 <goals>
1363                                                                         <goal>copy-resources</goal>
1364                                                                 </goals>
1365                                                                 <configuration>
1366                                                                         <outputDirectory>${dockerLocation}</outputDirectory>
1367                                                                         <overwrite>true</overwrite>
1368                                                                         <resources>
1369                                                                                 <resource>
1370                                                                                         <directory>${basedir}/src/main/resources/docker</directory>
1371                                                                                         <filtering>true</filtering>
1372                                                                                         <includes>
1373                                                                                                 <include>**/*</include>
1374                                                                                         </includes>
1375                                                                                 </resource>
1376                                                                         </resources>
1377                                                                 </configuration>
1378                                                         </execution>
1379
1380                                                 </executions>
1381                                         </plugin>
1382
1383                                         <plugin>
1384                                                 <groupId>com.google.code.maven-replacer-plugin</groupId>
1385                                                 <artifactId>replacer</artifactId>
1386                                                 <version>1.5.2</version>
1387                                                 <executions>
1388                                                         <execution>
1389                                                                 <id>google-replacer-ajsc-arch-parent</id>
1390                                                                 <phase>prepare-package</phase>
1391                                                                 <goals>
1392                                                                         <goal>replace</goal>
1393                                                                 </goals>
1394                                                                 <configuration>
1395                                                                         <basedir>${project.build.directory}</basedir>
1396                                                                         <includes>
1397                                                                                 <include>staticContent/**/*.html</include>
1398                                                                                 <include>CDP/**</include>
1399                                                                                 <include>bundleconfig/**</include>
1400                                                                                 <include>versioned-runtime/**/*.context</include>
1401                                                                                 <include>versioned-runtime/**/*.json</include>
1402                                                                                 <include>versioned-ajsc/**/*.route</include>
1403                                                                                 <include>versioned-ajsc/**/*.groovy</include>
1404                                                                                 <include>versioned-ajsc/**/*.xml</include>
1405                                                                                 <include>classes/*.properties</include>
1406                                                                                 <include>swm/package/nix/dist_files${distFilesRoot}/etc/*.properties</include>
1407                                                                         </includes>
1408                                                                         <escape>true</escape>
1409                                                                         <replacements>
1410                                                                                 <replacement>
1411                                                                                         <token>__module_ajsc_namespace_name__</token>
1412                                                                                         <value>${module.ajsc.namespace.name}</value>
1413                                                                                 </replacement>
1414                                                                                 <replacement>
1415                                                                                         <token>__module_ajsc_namespace_version__</token>
1416                                                                                         <value>${module.ajsc.namespace.version}</value>
1417                                                                                 </replacement>
1418                                                                                 <replacement>
1419                                                                                         <token>__ajscHome__</token>
1420                                                                                         <value>${replaceWinFilePath}</value>
1421                                                                                 </replacement>
1422                                                                                 <replacement>
1423                                                                                         <token>__projectGroupId__</token>
1424                                                                                         <value>${project.groupId}</value>
1425                                                                                 </replacement>
1426                                                                                 <replacement>
1427                                                                                         <token>__projectArtifactId__</token>
1428                                                                                         <value>${project.artifactId}</value>
1429                                                                                 </replacement>
1430                                                                                 <replacement>
1431                                                                                         <token>__projectVersion__</token>
1432                                                                                         <value>${project.version}</value>
1433                                                                                 </replacement>
1434                                                                                 <replacement>
1435                                                                                         <token>__basedir__</token>
1436                                                                                         <value>${replaceWinBasedirPath}</value>
1437                                                                                 </replacement>
1438                                                                         </replacements>
1439                                                                 </configuration>
1440                                                         </execution>
1441                                                 </executions>
1442                                         </plugin>
1443                                 </plugins>
1444                                 <pluginManagement>
1445                                         <plugins>
1446                                                 <plugin>
1447                                                         <groupId>org.apache.maven.plugins</groupId>
1448                                                         <artifactId>maven-surefire-plugin</artifactId>
1449                                                         <version>2.14.1</version>
1450                                                         <configuration>
1451                                                                 <excludes>
1452                                                                         <exclude>**/AbstractTest.java</exclude>
1453                                                                 </excludes>
1454                                                         </configuration>
1455                                                 </plugin>
1456                                         </plugins>
1457                                 </pluginManagement>
1458                         </build>
1459                 </profile>
1460         </profiles>
1461
1462 </project>