Fix docker build issue
[dmaap/messagerouter/messageservice.git] / pom.xml
1 <!--
2      ============LICENSE_START=======================================================
3      org.onap.dmaap
4      ================================================================================
5      Copyright © 2017 AT&T Intellectual Property. All rights reserved.
6      ================================================================================
7      Licensed under the Apache License, Version 2.0 (the "License");
8      you may not use this file except in compliance with the License.
9      You may obtain a copy of the License at
10            http://www.apache.org/licenses/LICENSE-2.0
11      
12      Unless required by applicable law or agreed to in writing, software
13      distributed under the License is distributed on an "AS IS" BASIS,
14      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15      See the License for the specific language governing permissions and
16      limitations under the License.
17      ============LICENSE_END=========================================================
18    
19      ECOMP is a trademark and service mark of AT&T Intellectual Property.
20      
21  -->
22 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
23         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
24         <modelVersion>4.0.0</modelVersion>
25
26         <parent>
27                 <groupId>org.onap.oparent</groupId>
28                 <artifactId>oparent</artifactId>
29                 <version>0.1.1</version>
30         </parent>
31         
32         <groupId>org.onap.dmaap.messagerouter.messageservice</groupId>
33         <artifactId>dmaapMR1</artifactId>
34         <version>1.0.2-SNAPSHOT</version>
35         <name>dmaap-messagerouter-messageservice</name>
36         <description>Message Router - Restful interface built for kafka</description>
37          <licenses>
38           <license>
39             <name>Apache License Version 2.0</name>
40           </license>
41         </licenses>
42
43         <developers>
44            <developer>
45              <name>Rajashree</name>
46              <email></email>
47              <organization>ATT</organization>
48              <organizationUrl>www.att.com</organizationUrl>
49            </developer>
50            <developer>
51              <name>Ramkumar</name>
52              <email></email>
53              <organization>ATT</organization>
54              <organizationUrl>www.att.com</organizationUrl>
55            </developer>
56          </developers>
57         
58         <build>
59                 <plugins>
60                 <plugin>
61                                 <groupId>org.apache.maven.plugins</groupId>
62                                 <artifactId>maven-site-plugin</artifactId>
63                                 <version>3.6</version>
64                                 <dependencies>
65                                         <dependency>
66                                                 <groupId>org.apache.maven.wagon</groupId>
67                                                 <artifactId>wagon-webdav-jackrabbit</artifactId>
68                                                 <version>2.10</version>
69                                         </dependency>
70                                 </dependencies>
71                         </plugin>
72                         <plugin>
73                                                 <groupId>org.apache.maven.plugins</groupId>
74                                                 <artifactId>maven-antrun-plugin</artifactId>
75                                                 <version>1.7</version>
76                                                 <executions>
77                                                         <execution>
78                                                                 <id>prep_service_runtime-ajsc-arch-parent</id>
79                                                                 <phase>generate-resources</phase>
80                                                                 <configuration>
81                                                                         <target name="prep_service_runtime">
82                                                                                 <echo message="ENTERING 'copy_services_template' ant tasks" />
83                                                                                 <!-- <filter token="basedir" value="${basedir}" /> -->
84                                                                                 <!-- delete any prior stating stuff before package phase -->
85                                                                                 <delete dir="target/versioned-ajsc" includes="**/*" />
86                                                                                 <delete dir="target/versioned-runtime" includes="**/*" />
87                                                                                 <delete dir="target/CDP" includes="**/*" />
88
89                                                                                 <!-- This is where replacer plugin replaces tokens (Example: __module_ajsc_namespace_name__ 
90                                                                                         is replaced by module.ajsc.namespace.name) -->
91                                                                                 <copy todir="target/versioned-ajsc">
92                                                                                         <fileset dir="src/main/ajsc" includes="**/*" />
93                                                                                 </copy>
94
95                                                                                 <!-- Copying the CDP, bundleconfig, and StaticContent to the target 
96                                                                                         directory for future use by replacer plugin -->
97                                                                                 <copy todir="target/CDP" failonerror="false">
98                                                                                         <fileset dir="CDP" includes="**/*.sh" />
99                                                                                 </copy>
100                                                                                 <copy flatten="true" file="CDP/SampleBlueprint.xml"
101                                                                                         failonerror="false"
102                                                                                         tofile="target/CDP/${module.ajsc.namespace.name}Blueprint.xml" />
103                                                                                 <copy todir="target/staticContent" failonerror="false">
104                                                                                         <fileset dir="staticContent" includes="**/*" />
105                                                                                 </copy>
106                                                                                 <copy todir="target/bundleconfig" failonerror="false">
107                                                                                         <!-- filtering="true"> -->
108                                                                                         <fileset dir="bundleconfig" />
109                                                                                 </copy>
110
111                                                                                 <echo message="EXITING 'copy_services_template' ant tasks" />
112                                                                                 <echo message="ENTERING 'copy_runtime_template' ant tasks" />
113                                                                                 <copy todir="target/versioned-runtime">
114                                                                                         <fileset dir="src/main/runtime" includes="**/*" />
115                                                                                 </copy>
116                                                                                 <delete
117                                                                                         file="target/versioned-runtime/context/__module.ajsc.namespace.name__#__module.ajsc.namespace.version__.context" />
118                                                                                 <copy flatten="true"
119                                                                                         file="src/main/runtime/context/__module.ajsc.namespace.name__#__module.ajsc.namespace.version__.context"
120                                                                                         tofile="target/versioned-runtime/context/${module.ajsc.namespace.name}#${module.ajsc.namespace.version}.context" />
121                                                                                 <delete
122                                                                                         file="target/versioned-runtime/deploymentPackage/__module.ajsc.namespace.name__#__module.ajsc.namespace.version__.json" />
123                                                                                 <copy flatten="true"
124                                                                                         file="src/main/runtime/deploymentPackage/__module.ajsc.namespace.name__#__module.ajsc.namespace.version__.json"
125                                                                                         tofile="target/versioned-runtime/deploymentPackage/${module.ajsc.namespace.name}#${module.ajsc.namespace.version}.json" />
126                                                                                 <delete
127                                                                                         file="target/versioned-runtime/shiroRole/contextadmin#__module.ajsc.namespace.name__.json" />
128                                                                                 <copy flatten="true"
129                                                                                         file="src/main/runtime/shiroRole/contextadmin#__module.ajsc.namespace.name__.json"
130                                                                                         tofile="target/versioned-runtime/shiroRole/contextadmin#${module.ajsc.namespace.name}.json" />
131                                                                                 <delete
132                                                                                         file="target/versioned-runtime/shiroUserRole/ajsc#contextAdmin#__module.ajsc.namespace.name__.json" />
133                                                                                 <copy flatten="true"
134                                                                                         file="src/main/runtime/shiroUserRole/ajsc#contextadmin#__module.ajsc.namespace.name__.json"
135                                                                                         tofile="target/versioned-runtime/shiroUserRole/ajsc#contextadmin#${module.ajsc.namespace.name}.json" />
136                                                                                 <echo message="EXITING 'copy_runtime_template' ant tasks" />
137                                                                         </target>
138                                                                 </configuration>
139                                                                 <goals>
140                                                                         <goal>run</goal>
141                                                                 </goals>
142                                                         </execution>
143                                                         <execution>
144                                                                 <id>clrf</id>
145                                                                 <phase>package</phase>
146                                                                 <configuration>
147                                                                         <tasks>
148                                                                                 <fixcrlf
149                                                                                         srcdir="${basedir}/target/swm/package/nix/dist_files${distFilesRoot}"
150                                                                                         includes="**/*.sh,**/*.xml,**/*.properties,**/*.xsd" />
151                                                                         </tasks>
152                                                                 </configuration>
153                                                                 <goals>
154                                                                         <goal>run</goal>
155                                                                 </goals>
156                                                         </execution>
157                                                         <execution>
158                                                                 <id>prep_home_directory_for_swm_pkgcreate-ajsc-arch-parent</id>
159                                                                 <phase>package</phase>
160                                                                 <configuration>
161                                                                         <target name="prep_home_directory_for_swm_pkgcreate">
162                                                                                 <ant antfile="${basedir}/antBuild/build.xml" target="prep_home_directory_for_swm_pkgcreate" />
163                                                                         </target>
164                                                                 </configuration>
165                                                                 <goals>
166                                                                         <goal>run</goal>
167                                                                 </goals>
168                                                         </execution>
169                                                 </executions>
170                                         </plugin>
171                                         
172                                         <plugin>
173                                                 <groupId>org.codehaus.groovy.maven</groupId>
174                                                 <artifactId>gmaven-plugin</artifactId>
175                                                 <version>1.0</version>
176                                                 <executions>
177                                                         <execution>
178                                                                 <id>gmaven-ajsc-arch-parent</id>
179                                                                 <phase>package</phase>
180                                                                 <goals>
181                                                                         <goal>execute</goal>
182                                                                 </goals>
183                                                                 <configuration>
184                                                                         <sourcepath>src/main/groovy</sourcepath>
185                                                                         <source>
186                                                                                 import ajsc.AssemblyService;
187                                                                                 ajsc.AssemblyService.getBasedir(project.basedir.getAbsolutePath(),"${distFilesRoot}")
188                                                                         </source>
189                                                                 </configuration>
190                                                         </execution>
191                                                 </executions>
192                                         </plugin>
193                                         
194                                         <plugin>
195                                                 <groupId>com.google.code.maven-replacer-plugin</groupId>
196                                                 <artifactId>replacer</artifactId>
197                                                 <version>1.5.2</version>
198                                                 <executions>
199                                                         <execution>
200                                                                 <id>google-replacer-ajsc-arch-parent</id>
201                                                                 <phase>prepare-package</phase>
202                                                                 <goals>
203                                                                         <goal>replace</goal>
204                                                                 </goals>
205                                                                 <configuration>
206                                                                         <basedir>${project.build.directory}</basedir>
207                                                                         <includes>
208                                                                                 <include>staticContent/**/*.html</include>
209                                                                                 <include>CDP/**</include>
210                                                                                 <include>bundleconfig/**</include>
211                                                                                 <include>versioned-runtime/**/*.context</include>
212                                                                                 <include>versioned-runtime/**/*.json</include>
213                                                                                 <include>versioned-ajsc/**/*.route</include>
214                                                                                 <include>versioned-ajsc/**/*.groovy</include>
215                                                                                 <include>versioned-ajsc/**/*.xml</include>
216                                                                                 <include>classes/*.properties</include>
217                                                                                 <include>swm/package/nix/dist_files${distFilesRoot}/etc/*.properties</include>
218                                                                         </includes>
219                                                                         <escape>true</escape>
220                                                                         <replacements>
221                                                                                 <replacement>
222                                                                                         <token>__module_ajsc_namespace_name__</token>
223                                                                                         <value>${module.ajsc.namespace.name}</value>
224                                                                                 </replacement>
225                                                                                 <replacement>
226                                                                                         <token>__module_ajsc_namespace_version__</token>
227                                                                                         <value>${module.ajsc.namespace.version}</value>
228                                                                                 </replacement>
229                                                                                 <replacement>
230                                                                                         <token>__ajscHome__</token>
231                                                                                         <value>${replaceWinFilePath}</value>
232                                                                                 </replacement>
233                                                                                 <replacement>
234                                                                                         <token>__projectGroupId__</token>
235                                                                                         <value>${project.groupId}</value>
236                                                                                 </replacement>
237                                                                                 <replacement>
238                                                                                         <token>__projectArtifactId__</token>
239                                                                                         <value>${project.artifactId}</value>
240                                                                                 </replacement>
241                                                                                 <replacement>
242                                                                                         <token>__projectVersion__</token>
243                                                                                         <value>${project.version}</value>
244                                                                                 </replacement>
245                                                                                 <replacement>
246                                                                                         <token>__basedir__</token>
247                                                                                         <value>${replaceWinBasedirPath}</value>
248                                                                                 </replacement>
249                                                                         </replacements>
250                                                                 </configuration>
251                                                         </execution>
252                                                 </executions>
253                                         </plugin>
254                                         
255                                         <plugin>
256                                                 <groupId>org.apache.maven.plugins</groupId>
257                                                 <artifactId>maven-dependency-plugin</artifactId>
258                                                 <version>2.8</version>
259                                                 <executions>
260                                                         <execution>
261                                                                 <id>copy-dependencies-ajsc-arch-parent</id>
262                                                                 <phase>prepare-package</phase>
263                                                                 <goals>
264                                                                         <goal>copy-dependencies</goal>
265                                                                 </goals>
266                                                                 <configuration>
267                                                                         <includeScope>runtime</includeScope>
268                                                                         <excludeArtifactIds>ajsc-bom,ajsc-core,ajsc-runner,ajsc-war</excludeArtifactIds>
269                                                                         <outputDirectory>${project.build.directory}/userjars</outputDirectory>
270                                                                         <silent>true</silent>
271                                                                 </configuration>
272                                                         </execution>
273                                                         <execution>
274                                                                 <id>copy-dependencies-ajsc-arch-parent-commonLibs</id>
275                                                                 <phase>prepare-package</phase>
276                                                                 <goals>
277                                                                         <goal>copy-dependencies</goal>
278                                                                 </goals>
279                                                                 <configuration>
280                                                                         <includeScope>provided</includeScope>
281                                                                         <includeGroupIds>net.cingular.enterprise,com.att.aft,dom4j</includeGroupIds>
282                                                                         <!-- <includeGroupIds>com.att.aft</includeGroupIds> -->
283                                                                         <outputDirectory>${project.build.directory}/commonLibs</outputDirectory>
284                                                                         <silent>true</silent>
285                                                                 </configuration>
286                                                         </execution>
287                                                         <execution>
288                                                                 <id>copyrunner</id>
289                                                                 <phase>prepare-package</phase>
290                                                                 <goals>
291                                                                         <goal>copy-dependencies</goal>
292                                                                 </goals>
293                                                                 <configuration>
294                                                                         <includeArtifactIds>ajsc-runner</includeArtifactIds>
295                                                                         <outputDirectory>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}/lib</outputDirectory>
296                                                                 </configuration>
297                                                         </execution>
298                                                 </executions>
299                                         </plugin>
300                                         
301                                         
302                 <!--    <plugin>
303                                 <groupId>org.apache.maven.plugins</groupId>
304                                 <artifactId>maven-javadoc-plugin</artifactId>
305                                 <version>2.10.4</version>
306                                 <configuration>
307                                         <additionalparam>-Xdoclint:none</additionalparam>
308                                 </configuration>
309                                 <executions>
310                                         <execution>
311                                                 <id>attach-javadocs</id>
312                                                 <goals>
313                                                         <goal>jar</goal>
314                                                 </goals>
315                                         </execution>
316                                 </executions>
317                         </plugin> -->
318                         <plugin>
319                                 <groupId>org.apache.maven.plugins</groupId>
320                                 <artifactId>maven-source-plugin</artifactId>
321                                 <version>3.0.0</version>
322                                 <executions>
323                                         <execution>
324                                                 <id>attach-sources</id>
325                                                 <goals>
326                                                         <goal>jar-no-fork</goal>
327                                                 </goals>
328                                         </execution>
329                                 </executions>
330                         </plugin>               
331                         <plugin>
332                                 <groupId>org.apache.maven.plugins</groupId>
333                                 <artifactId>maven-release-plugin</artifactId>
334                                 <version>2.5.3</version>
335                                 <configuration>
336                                         <autoVersionSubmodules>true</autoVersionSubmodules>
337                                         <checkModificationExcludes>
338                                         </checkModificationExcludes>
339                                 </configuration>
340                                 <dependencies>
341                                         <dependency>
342                                                 <groupId>org.apache.maven.scm</groupId>
343                                                 <artifactId>maven-scm-provider-gitexe</artifactId>
344                                                 <version>1.9.4</version>
345                                         </dependency>
346                                 </dependencies>
347                         </plugin>
348                         <plugin>
349                                 <groupId>org.apache.maven.plugins</groupId>
350                                 <artifactId>maven-deploy-plugin</artifactId>
351                                 <version>2.5</version>
352                                 <configuration>
353                                         <skip>true</skip>
354                                 </configuration>
355                         </plugin>
356                         <plugin>
357                                 <groupId>org.apache.maven.plugins</groupId>
358                                 <artifactId>maven-resources-plugin</artifactId>
359                                 <version>2.7</version>
360                                 <executions>
361                                         <execution>
362                                                 <id>copy-docker-file</id>
363                                                 <phase>package</phase>
364                                                 <goals>
365                                                         <goal>copy-resources</goal>
366                                                 </goals>
367                                                 <configuration>
368                                                         <outputDirectory>${dockerLocation}</outputDirectory>
369                                                         <overwrite>true</overwrite>
370                                                         <resources>
371                                                                 <resource>
372                                                                         <directory>${basedir}/src/main/resources/docker</directory>
373                                                                         <filtering>true</filtering>
374                                                                         <includes>
375                                                                                 <include>**/*</include>
376                                                                         </includes>
377                                                                 </resource>
378                                                         </resources>
379                                                 </configuration>
380                                         </execution>
381                                 </executions>
382                         </plugin>
383                         <plugin>
384                                 <groupId>com.spotify</groupId>
385                                 <artifactId>docker-maven-plugin</artifactId>
386                                 <version>0.4.13</version>
387                                 <configuration>
388                                         <imageName>onap/dmaap/dmaap-mr</imageName>
389                                         <dockerDirectory>${dockerLocation}</dockerDirectory> 
390                                         <serverId>docker-hub</serverId>
391                         <!--    <serverId>docker-hub</serverId> -->
392                                         <imageTags>
393                                                 <imageTag>${dmaapImg}</imageTag>
394                                                 <imageTag>latest</imageTag>
395                                         </imageTags>
396                                         <forceTags>true</forceTags>
397                                 <resources>
398                                         <resource>
399                                           <targetPath>/</targetPath>
400                                           <directory>${dockerLocation}</directory>
401                                           <include>${project.build.finalName}.jar</include>
402                                         </resource>
403                                         <resource>
404                                           <targetPath>/</targetPath>
405                                           <directory>${project.build.directory}</directory>
406                                           <include>**/**</include>
407                                         </resource>
408                                   </resources>
409                                  </configuration>
410                                 <executions>
411                            <execution>
412                                         <id>build-image</id>
413                                         <phase>package</phase>
414                                         <goals>
415                                           <goal>build</goal>
416                                         </goals>
417                                         <configuration>
418                                           <skipDockerBuild>${skip.docker.build}</skipDockerBuild>
419                                         </configuration>
420                                   </execution> 
421
422                                   <execution>
423                                         <id>tag-image-project-version</id>
424                                         <phase>package</phase>
425                                         <goals>
426                                           <goal>tag</goal>
427                                         </goals>
428                                         <configuration>
429                                           <image>onap/dmaap/dmaap-mr</image>
430                                           <newName>${docker.push.registry}/onap/dmaap/dmaap-mr:${project.version}</newName>
431                                           <skipDockerTag>${skip.docker.push}</skipDockerTag>
432                                         </configuration>
433                                   </execution>
434                                   
435                                   <execution>
436                                         <id>tag-image-latest</id>
437                                         <phase>package</phase>
438                                         <goals>
439                                           <goal>tag</goal>
440                                         </goals>
441                                         <configuration>
442                                           <image>onap/dmaap/dmaap-mr</image>
443                                           <newName>${docker.push.registry}/onap/dmaap/dmaap-mr:latest</newName>
444                                           <skipDockerTag>${skip.docker.push}</skipDockerTag>
445                                         </configuration>
446                                   </execution>
447                                   
448                                  <execution>
449                                         <id>push-image-latest</id>
450                                         <phase>deploy</phase>
451                                         <goals>
452                                           <goal>push</goal>
453                                         </goals>
454                                         <configuration>
455                                           <imageName>${docker.push.registry}/onap/dmaap/dmaap-mr:${project.version}</imageName>
456                                           <skipDockerPush>${skip.docker.push}</skipDockerPush>
457                                         </configuration>
458                                   </execution>
459                                   
460                                   <execution>
461                                         <id>push-image</id>
462                                         <phase>deploy</phase>
463                                         <goals>
464                                           <goal>push</goal>
465                                         </goals>
466                                         <configuration>
467                                           <imageName>${docker.push.registry}/onap/dmaap/dmaap-mr:latest</imageName>
468                                           <skipDockerPush>${skip.docker.push}</skipDockerPush>
469                                         </configuration>
470                                   </execution>
471                                 </executions>
472                         </plugin>                                                                                                                                                                                                                                                                                                        
473                         <plugin>
474                                 <groupId>com.blackducksoftware.integration</groupId>
475                                 <artifactId>hub-maven-plugin</artifactId>
476                                 <version>1.0.4</version>
477                                 <inherited>false</inherited>
478                                 <configuration>
479                                         <target>${project.basedir}</target>
480                                 </configuration>
481                                 <executions>
482                                         <execution>
483                                                 <id>create-bdio-file</id>
484                                                 <phase>package</phase>
485                                                 <goals>
486                                                         <goal>createHubOutput</goal>
487                                                 </goals>
488                                         </execution>
489                                 </executions>
490                         </plugin>
491                                         
492                 </plugins>
493         </build>
494
495         <properties>
496                 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
497                 <dockerLocation>${basedir}/target/swm/package/nix/dist_files/</dockerLocation>
498                 <docker.image.prefix>simpledemo</docker.image.prefix>
499
500                 <module.ajsc.namespace.name>dmaap</module.ajsc.namespace.name>
501                 <module.ajsc.namespace.version>v1</module.ajsc.namespace.version>
502                 <ajscRuntimeVersion>1.0.0</ajscRuntimeVersion>
503
504                 <!-- This will be the Absolute Root of the Project and should contain NO 
505                         Versioning -->
506                 <absoluteDistFilesRoot>/appl/${project.artifactId}</absoluteDistFilesRoot>
507                 <!-- <absoluteDistFilesRoot>/opt/app/dmaap/${project.artifactId}</absoluteDistFilesRoot> -->
508                 <!-- For Versioning upon installation, add /${project.version} to distFilesRoot. 
509                         For NO Versioning, leave as is -->
510                 <!-- example: /appl/${project.artifactId}/${project.version}. Also, add 
511                         ${project.version} to ${runAjscHome} for running locally. -->
512                 <distFilesRoot>/appl/${project.artifactId}</distFilesRoot>
513                 <!-- <distFilesRoot>/opt/app/dmaap/${project.artifactId}</distFilesRoot> -->
514                 <runAjscHome>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}</runAjscHome>
515
516                 <!-- For SOA Cloud Installation <installOwnerUser>aft</installOwnerUser> 
517                         <installOwnerGroup>aft</installOwnerGroup> <ownerManagementGroup>com.att.acsi.saat.dt.dmaap.dev</ownerManagementGroup> -->
518                 <!-- For SOA Cloud Installation -->
519                 <installOwnerUser>msgrtr</installOwnerUser>
520                 <installOwnerGroup>dmaap</installOwnerGroup>
521                 <ownerManagementGroup>com.att.acsi.saat.dt.dmaap.dev</ownerManagementGroup>
522                 <!-- Port Selection. A value of 0 will allow for dynamic port selection. 
523                         For local testing, you may choose to hardcode this value to something like 
524                         8080 -->
525                 <serverPort>3904</serverPort>
526                 <sslport>3905</sslport>
527         
528                 <testRouteOffer>workstation</testRouteOffer>
529                 <testEnv>DEV</testEnv>
530                 <dmaapImg>1.0.2-SNAPSHOT</dmaapImg>
531                 <camel.version>2.15.5</camel.version>
532                 <sitePath>/content/sites/site/org/onap/dmaap/${project.artifactId}/${project.version}</sitePath>
533                 <skip.docker.build>true</skip.docker.build>
534         <skip.docker.push>true</skip.docker.push>
535                 <nexusproxy>https://nexus.onap.org</nexusproxy>
536                 <docker.push.registry>nexus3.onap.org:10003</docker.push.registry>
537         </properties>
538
539         <!-- Distribution management -->
540         <distributionManagement>
541                 <site>
542                         <id>ecomp-site</id>
543                         <url>dav:${nexusproxy}${sitePath}</url>
544                 </site>
545         </distributionManagement>
546
547         <!-- End Distribution management -->
548
549         <!-- The standard build tasks for this project are inherited from the parent. 
550                 Please do not override the build tasks. However tasks and/or profiles can 
551                 be included here as well as additional dependencies for your service. Any 
552                 runtime or compile scope dependencies will be copied to the INSTALLATION_PATH/extJars 
553                 folder and will be made available on the AJSC classpath for your service. 
554                 Please, NOTE: DME2 and CSM related dependencies are EXTERNALIZED within the 
555                 CSI environment. Therefore, they are provided within this project as "provided" 
556                 dependencies. In order for the AJSC to run properly, locally, the CSM and 
557                 DME2 dependencies will be copied into the target/commonLibs folder and will 
558                 be made available to the classpath of the AJSC through the use of the system 
559                 property, "AJSC_EXTERNAL_LIB_FOLDERS". This system property needs to be set 
560                 in the "runAjsc" maven profile within the pom.xml (and, is defaulted to do 
561                 so). If you have a startup failure related to a missing dme2 class not found 
562                 exception, please contact the AJSC team for assistance. You can email support 
563                 at ajsc-Support <DL-ajsc-Support@att.com>. For more information regarding 
564                 the usage of the AJSC service pom.xml and management of dependencies, please 
565                 goto wiki link:http://wiki.web.att.com/display/ajsc/pom.xml -->
566         <dependencies>
567
568                 <!-- cmn-CommonDataModel dependency added to resolve build issue not finding 
569                         version 100.0.64 -->
570                 
571                 <!-- <dependency>
572                         <groupId>csi-schemas-source</groupId>
573                         <artifactId>cmn-CommonDataModel</artifactId>
574                         <version>112.0.50</version>
575                 </dependency> -->
576         <!-- TODO: add open source version here -->
577                 <dependency>
578                         <groupId>com.att.cadi</groupId>
579                         <artifactId>cadi-core</artifactId>
580                         <version>1.3.0</version>
581                 </dependency>
582                 <dependency>
583                         <groupId>commons-io</groupId>
584                         <artifactId>commons-io</artifactId>
585                         <version>2.4</version>
586                 </dependency>
587                 <dependency>
588                         <groupId>org.apache.commons</groupId>
589                         <artifactId>commons-io</artifactId>
590                         <version>1.3.2</version>
591                 </dependency>
592                 <dependency>
593                           <groupId>com.att.nsa</groupId>
594                           <artifactId>msgrtr</artifactId>
595                           <version>0.0.5</version>
596                         <exclusions>
597                                 <exclusion>
598                                         <groupId>org.slf4j</groupId>
599                                         <artifactId>slf4j-log4j12</artifactId>
600                                 </exclusion>
601                                 <exclusion>
602                                         <groupId>com.att.ajsc</groupId>
603                                         <artifactId>ajsc-core</artifactId>
604                                 </exclusion>
605                                 <exclusion>
606                                         <groupId>org.apache.tomcat</groupId>
607                                         <artifactId>tomcat-catalina</artifactId>
608                                 </exclusion>
609
610                                 <exclusion>
611                                         <groupId>org.apache.tomcat.embed</groupId>
612                                         <artifactId>tomcat-embed-core</artifactId>
613                                 </exclusion>
614                                 <exclusion>
615                                         <groupId>org.apache.tomcat</groupId>
616                                         <artifactId>tomcat-util</artifactId>
617                                 </exclusion>
618                                 <!-- <exclusion> <groupId>com.att.nsa</groupId> <artifactId>saToolkit</artifactId> 
619                                         </exclusion> -->
620                                 <exclusion>
621                                         <groupId>com.att.nsa</groupId>
622                                         <artifactId>tomcat-util</artifactId>
623                                 </exclusion>
624
625                         </exclusions>
626                 </dependency>
627
628                 <dependency>
629                         <groupId>org.codehaus.jackson</groupId>
630                         <artifactId>jackson-jaxrs</artifactId>
631                         <version>1.9.13</version>
632                 </dependency>
633                 
634                 <dependency>
635                         <groupId>org.codehaus.jackson</groupId>
636                         <artifactId>jackson-mapper-asl</artifactId>
637                         <version>1.9.13</version>
638                 </dependency>
639                 <dependency>
640                         <groupId>org.codehaus.jackson</groupId>
641                         <artifactId>jackson-core-asl</artifactId>
642                         <version>1.9.13</version>
643                 </dependency>
644                 
645                 <dependency>
646                         <groupId>com.fasterxml.jackson.core</groupId>
647                         <artifactId>jackson-core</artifactId>
648                         <version>2.4.3</version>
649                 </dependency>
650                 
651                 <dependency>
652                     <groupId>com.fasterxml.jackson.core</groupId>
653                     <artifactId>jackson-databind</artifactId>
654                     <version>2.3.3</version>
655                 </dependency>
656                 
657                 <dependency>
658                 <groupId>junit</groupId>
659                 <artifactId>junit</artifactId>
660                 <version>4.11</version>
661                 <scope>test</scope>
662       </dependency>
663
664                 <dependency>
665                         <groupId>org.json</groupId>
666                         <artifactId>json</artifactId>
667                         <version>20131018</version>
668                 </dependency>
669
670                 <!-- CXF JAX-RS extension -->
671                 <dependency>
672                         <groupId>org.apache.cxf</groupId>
673                         <artifactId>cxf-rt-rs-extension-providers</artifactId>
674                         <version>3.0.4</version>
675                 </dependency>
676                 <dependency>
677                         <groupId>org.codehaus.jettison</groupId>
678                         <artifactId>jettison</artifactId>
679                         <version>1.3.7</version>
680                 </dependency>
681
682                 <dependency>
683                         <groupId>dom4j</groupId>
684                         <artifactId>dom4j</artifactId>
685                         <version>1.6.1</version>
686                         <scope>provided</scope>
687                 </dependency>
688                 <dependency>
689                         <groupId>com.att.aft</groupId>
690                         <artifactId>dme2</artifactId>
691                         <version>3.1.200</version>
692                         <!-- <scope>provided</scope> -->
693                 </dependency>
694                 <dependency>
695                   <groupId>com.att.ajsc</groupId>
696                   <artifactId>ajsc-archetype-parent</artifactId>
697                   <version>1.0.0</version>
698                   <type>pom</type>
699                 </dependency>           
700                 
701                 <dependency>
702                         <groupId>com.att.cadi</groupId>
703                         <artifactId>cadi-aaf</artifactId>
704                         <version>1.3.0</version>
705                 </dependency>   
706                 
707                 <dependency>
708                         <groupId>com.att.inno</groupId>
709                         <artifactId>rosetta</artifactId>
710                         <version>1.2.11</version>
711                 </dependency>   
712                 <dependency>
713                         <groupId>com.att.inno</groupId>
714                         <artifactId>env</artifactId>
715                         <version>1.2.11</version>
716                 </dependency>           
717                 <dependency>
718                         <groupId>com.att.inno</groupId>
719                         <artifactId>xgen</artifactId>
720                         <version>1.2.11</version>
721                 </dependency>                           
722                 <dependency>
723                         <groupId>com.att.inno</groupId>
724                         <artifactId>rosetta</artifactId>
725                         <version>1.2.11</version>
726                 </dependency>                   
727                 <dependency>
728                         <groupId>backport-util-concurrent</groupId>
729                         <artifactId>backport-util-concurrent</artifactId>
730                         <version>3.1</version>
731                 </dependency>
732                 <dependency>
733                                 <groupId>org.apache.camel</groupId>
734                                 <artifactId>camel-core</artifactId>
735                                 <version>${camel.version}</version>
736                         </dependency>
737                         <dependency>
738                                 <groupId>org.apache.camel</groupId>
739                                 <artifactId>camel-quartz</artifactId>
740                                 <version>${camel.version}</version>
741                         </dependency>
742                         <dependency>
743                                 <groupId>org.apache.camel</groupId>
744                                 <artifactId>camel-spring</artifactId>
745                                 <version>${camel.version}</version>
746                         </dependency>
747                         <dependency>
748                                 <groupId>org.apache.camel</groupId>
749                                 <artifactId>camel-restlet</artifactId>
750                                 <version>${camel.version}</version>
751                                 <exclusions>
752                                         <exclusion>
753                                                 <artifactId>org.restlet</artifactId>
754                                                 <groupId>org.restlet.jse</groupId>
755                                         </exclusion>
756                                 </exclusions>
757                         </dependency>
758                         <dependency>
759                                 <groupId>org.apache.camel</groupId>
760                                 <artifactId>camel-servlet</artifactId>
761                                 <version>${camel.version}</version>
762                         </dependency>
763                         <dependency>
764                                 <groupId>org.apache.camel</groupId>
765                                 <artifactId>camel-http4</artifactId>
766                                 <version>${camel.version}</version>
767                                 <exclusions>
768                                         <exclusion>
769                                                 <groupId>org.apache.geronimo.specs</groupId>
770                                                 <artifactId>geronimo-servlet_2.5_spec</artifactId>
771                                         </exclusion>
772                                 </exclusions>
773                         </dependency>
774                         <dependency>
775                                 <groupId>org.apache.camel</groupId>
776                                 <artifactId>camel-groovy</artifactId>
777                                 <version>${camel.version}</version>
778                         </dependency>
779                         <dependency>
780                                 <groupId>org.apache.camel</groupId>
781                                 <artifactId>camel-twitter</artifactId>
782                                 <version>${camel.version}</version>
783                         </dependency>
784                         <dependency>
785                                 <groupId>org.apache.camel</groupId>
786                                 <artifactId>camel-mail</artifactId>
787                                 <version>${camel.version}</version>
788                         </dependency>
789                         <dependency>
790                                 <groupId>org.apache.camel</groupId>
791                                 <artifactId>camel-smpp</artifactId>
792                                 <version>${camel.version}</version>
793                         </dependency>
794                         <dependency>
795                                 <groupId>org.apache.camel</groupId>
796                                 <artifactId>camel-jms</artifactId>
797                                 <version>${camel.version}</version>
798                         </dependency>
799                         <dependency>
800                                 <groupId>org.apache.camel</groupId>
801                                 <artifactId>camel-script</artifactId>
802                                 <version>${camel.version}</version>
803                         </dependency>
804                         <dependency>
805                                 <groupId>org.apache.camel</groupId>
806                                 <artifactId>camel-xmpp</artifactId>
807                                 <version>${camel.version}</version>
808                         </dependency>
809                         <dependency>
810                                 <groupId>org.apache.camel</groupId>
811                                 <artifactId>camel-velocity</artifactId>
812                                 <version>${camel.version}</version>
813                         </dependency>
814                         <dependency>
815                                 <groupId>com.att.ajsc</groupId>
816                                 <artifactId>ajsc-runner</artifactId>
817                                 <version>1.0.0</version>
818                                 <scope>runtime</scope>
819                         </dependency>
820                         <dependency>
821                                 <groupId>com.att.ajsc</groupId>
822                                 <artifactId>ajsc-core</artifactId>
823                                 <version>1.0.0</version>
824                                 <scope>provided</scope>
825                         </dependency>
826         </dependencies>
827         <!-- <build> <resources> <resource> <directory>${basedir}/ajsc-shared-config/etc</directory> 
828                 </resource> </resources> </build> -->
829         <profiles>
830                 <!-- Use this profile to run the AJSC locally. This profile can be successfully 
831                         shutdown WITHIN eclipse even in a Windows environment. Debugging is also 
832                         available with this profile. -->
833         <profile>
834       <id>docker</id>
835       <properties>
836         
837         <skip.docker.build>false</skip.docker.build>
838         <skip.docker.tag>false</skip.docker.tag>
839         <skip.docker.push>false</skip.docker.push>
840       </properties>
841     </profile>
842         
843                 <profile>
844                         <id>runAjsc</id>
845                         <build>
846                                 <defaultGoal>initialize</defaultGoal>
847                                 <plugins>
848                                         <plugin>
849                                                 <groupId>org.codehaus.mojo</groupId>
850                                                 <artifactId>exec-maven-plugin</artifactId>
851                                                 <version>1.3.2</version>
852                                                 <executions>
853                                                         <execution>
854                                                                 <phase>initialize</phase>
855                                                                 <goals>
856                                                                         <goal>java</goal>
857                                                                 </goals>
858                                                                 <configuration>
859                                                                         <!-- In order to better mimic a SOA cloud installation of AJSC (and 
860                                                                                 to help eliminate Maven/Eclipse/AJSC classpath issues that may be difficult 
861                                                                                 to diagnose), within this profile used to run locally, we are NOT including 
862                                                                                 project dependencies. These will be loaded by AJSC from $AJSC_HOME/extJars. 
863                                                                                 The only jar needed to run AJSC is the ajsc-runner.jar, and therefore is 
864                                                                                 the only dependency required by this profile to run locally. -->
865                                                                         <includeProjectDependencies>false</includeProjectDependencies>
866                                                                         <includePluginDependencies>true</includePluginDependencies>
867                                                                         <executable>java</executable>
868                                                                         <mainClass>com.att.ajsc.runner.Runner</mainClass>
869                                                                         <executableDependency>
870                                                                                 <groupId>com.att.ajsc</groupId>
871                                                                                 <artifactId>ajsc-runner</artifactId>
872                                                                         </executableDependency>
873                                                                         <additionalClasspathElements>
874                                                                                 <additionalClasspathElement>${basedir}/ajsc-shared-config/etc</additionalClasspathElement>
875                                                                         </additionalClasspathElements>
876
877                                                                         <environmentVariables>
878                                                                                 <AJSC_HOME>${runAjscHome}</AJSC_HOME>
879                                                                         </environmentVariables>
880
881                                                                         <!-- Main AJSC System Properties below (necessary for proper startup) -->
882                                                                         <systemProperties>
883                                                                                 <systemProperty>
884                                                                                         <key>AJSC_HOME</key>
885                                                                                         <value>${runAjscHome}</value>
886                                                                                 </systemProperty>
887                                                                                 <systemProperty>
888                                                                                         <key>AJSC_HOME</key>
889                                                                                         <value>${runAjscHome}</value>
890                                                                                 </systemProperty>
891                                                                                 <systemProperty>
892                                                                                         <key>AJSC_CONF_HOME</key>
893                                                                                         <value>${basedir}/bundleconfig-local</value>
894                                                                                 </systemProperty>
895                                                                                 <systemProperty>
896                                                                                         <key>logback.configurationFile</key>
897                                                                                         <value>${basedir}/ajsc-shared-config/etc/logback.xml</value>
898                                                                                 </systemProperty>
899                                                                                 <systemProperty>
900                                                                                         <key>AJSC_SHARED_CONFIG</key>
901                                                                                         <value>${basedir}/ajsc-shared-config</value>
902                                                                                 </systemProperty>
903
904                                                                                 <!-- Please, NOTE: The following 2 system properties will normally 
905                                                                                         be set within the sys-props.properties file once deployed to a node. We are 
906                                                                                         setting them HERE to run locally to make more efficient use of maven variable 
907                                                                                         replacement for ${basedir} -->
908                                                                                 <!-- AJSC_EXTERNAL_LIB_FOLDERS represents the particular jars that 
909                                                                                         will be externalized on a CSI node. This includes dme2 and csm related artifact. -->
910                                                                                 <sysproperty>
911                                                                                         <key>AJSC_EXTERNAL_LIB_FOLDERS</key>
912                                                                                         <value>${basedir}/target/commonLibs</value>
913                                                                                 </sysproperty>
914                                                                                 <!-- AJSC_EXTERNAL_PROPERTIES_FOLDERS represents the particular 
915                                                                                         files that may need to be added to the classpath. These files will be externalized 
916                                                                                         on a CSI node. This includes dme2 and csm related artifact (such as csm-config-app.properties). 
917                                                                                         Failure to have these files on the classpath may result in errors thrown 
918                                                                                         by csm framework. -->
919                                                                                 <sysproperty>
920                                                                                         <key>AJSC_EXTERNAL_PROPERTIES_FOLDERS</key>
921                                                                                         <value>${basedir}/ajsc-shared-config/etc</value>
922                                                                                 </sysproperty>
923
924                                                                                 <systemProperty>
925                                                                                         <key>AJSC_SERVICE_NAMESPACE</key>
926                                                                                         <value>${module.ajsc.namespace.name}</value>
927                                                                                 </systemProperty>
928                                                                                 <systemProperty>
929                                                                                         <key>AJSC_SERVICE_VERSION</key>
930                                                                                         <value>${module.ajsc.namespace.version}</value>
931                                                                                 </systemProperty>
932                                                                                 <systemProperty>
933                                                                                         <key>SOACLOUD_SERVICE_VERSION</key>
934                                                                                         <value>${project.version}</value>
935                                                                                 </systemProperty>
936                                                                                 <systemProperty>
937                                                                                         <key>server.port</key>
938                                                                                         <value>${serverPort}</value>
939                                                                                 </systemProperty>
940                                                                         </systemProperties>
941
942                                                                         <!-- Command Line Arguments to add to the java command. Here, you 
943                                                                                 can specify the port as well as the Context you want your service to run 
944                                                                                 in. Use context=/ to run in an unnamed Context (Root Context). The default 
945                                                                                 configuration of the AJSC is to run under the / Context. Setting the port 
946                                                                                 here can aid during the development phase of your service. However, you can 
947                                                                                 leave this argument out entirely, and the AJSC will default to using an Ephemeral 
948                                                                                 port. -->
949                                                                         <arguments>
950                                                                                 <argument>context=/</argument>
951                                                                                 <argument>port=${serverPort}</argument>
952                                                                                 <argument>sslport=${sslport}</argument>
953                                                                         </arguments>
954                                                                 </configuration>
955                                                         </execution>
956                                                 </executions>
957                                                 <configuration>
958                                                         <executable>java</executable>
959                                                 </configuration>
960                                                 <dependencies>
961                                                         <dependency>
962                                                                 <groupId>com.att.ajsc</groupId>
963                                                                 <artifactId>ajsc-runner</artifactId>
964                                                                 <version>${ajscRuntimeVersion}</version>
965                                                         </dependency>
966                                                 </dependencies>
967                                         </plugin>
968
969                                         <plugin>
970                                                 <groupId>org.apache.maven.plugins</groupId>
971                                                 <artifactId>maven-resources-plugin</artifactId>
972                                                 <version>2.7</version>
973                                                 <executions>
974                                                         <execution>
975                                                                 <id>copy-docker-file</id>
976                                                                 <phase>package</phase>
977                                                                 <goals>
978                                                                         <goal>copy-resources</goal>
979                                                                 </goals>
980                                                                 <configuration>
981                                                                         <outputDirectory>${dockerLocation}</outputDirectory>
982                                                                         <overwrite>true</overwrite>
983                                                                         <resources>
984                                                                                 <resource>
985                                                                                         <directory>${basedir}/src/main/resources/docker</directory>
986                                                                                         <filtering>true</filtering>
987                                                                                         <includes>
988                                                                                                 <include>**/*</include>
989                                                                                         </includes>
990                                                                                 </resource>
991                                                                         </resources>
992                                                                 </configuration>
993                                                         </execution>
994                                                 </executions>
995                                         </plugin>
996                                 </plugins>
997                         </build>
998                 </profile>
999         </profiles>
1000         
1001 </project>