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