Change the docker profile back
[aai/aai-service.git] / ajsc-aai / pom.xml
1 <?xml version="1.0"?>
2 <project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
3     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
4   <modelVersion>4.0.0</modelVersion>
5   <parent>
6     <groupId>org.openecomp.aai.aai-service</groupId>
7     <artifactId>aai-service</artifactId>
8     <version>1.0.0-SNAPSHOT</version>
9   </parent>
10   <artifactId>ajsc-aai</artifactId>
11   <name>ajsc</name>
12   <url>http://maven.apache.org</url>
13   <properties>
14                 <dockerLocation>${basedir}/target/swm/package/nix/dist_files/</dockerLocation>
15                 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
16                 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> 
17   </properties>
18   <dependencies>
19                 <!-- AJSC related dependencies -->
20                 <dependency>
21                         <groupId>com.att.ajsc</groupId>
22                         <artifactId>ajsc-runner</artifactId>
23                         <version>${ajscRuntimeVersion}</version>
24                 </dependency>
25                 <dependency>
26                         <groupId>com.att.ajsc</groupId>
27                         <artifactId>ajsc-core</artifactId>
28                         <version>${ajscRuntimeVersion}</version>
29                         <scope>provided</scope>
30                 </dependency>
31                 
32                 <dependency>
33                         <groupId>dom4j</groupId>
34                         <artifactId>dom4j</artifactId>
35                         <version>1.6.1</version>
36                 </dependency>
37
38                 <dependency>
39                         <groupId>commons-lang</groupId>
40                         <artifactId>commons-lang</artifactId>
41                         <version>2.6</version>
42                 </dependency>
43
44                 <dependency> 
45                         <groupId>com.att.eelf</groupId> 
46                         <artifactId>eelf-core</artifactId> 
47                         <version>0.0.1</version> 
48                 </dependency> 
49  
50                 <dependency> 
51                         <groupId>com.att.eelf</groupId> 
52                         <artifactId>eelf-maven-plugin</artifactId> 
53                         <version>0.0.1</version> 
54                 </dependency>
55
56                 <dependency>
57                         <groupId>ch.qos.logback</groupId>
58                         <artifactId>logback-core</artifactId>
59                         <version>1.1.7</version>
60                 </dependency>
61
62                 <dependency>
63                         <groupId>ch.qos.logback</groupId>
64                         <artifactId>logback-classic</artifactId>
65                         <version>1.1.7</version>
66                 </dependency>
67
68                 <dependency>
69                         <groupId>ch.qos.logback</groupId>
70                         <artifactId>logback-access</artifactId>
71                         <version>1.1.7</version>
72                 </dependency>
73
74                 <dependency>
75                         <groupId>org.codehaus.janino</groupId>
76                         <artifactId>janino</artifactId>
77                         <version>2.7.8</version>
78                 </dependency>
79
80                 <dependency>
81                         <groupId>commons-io</groupId>
82                         <artifactId>commons-io</artifactId>
83                 </dependency>
84                 <dependency>
85                         <groupId>commons-collections</groupId>
86                         <artifactId>commons-collections</artifactId>
87                 </dependency>
88
89                 <dependency>
90                         <groupId>jdk.tools</groupId>
91                         <artifactId>jdk.tools</artifactId>
92                         <version>1.8.0</version>
93                         <scope>system</scope>
94                         <systemPath>${JAVA_HOME}/lib/tools.jar</systemPath>
95                 </dependency>
96                 <dependency>
97                         <groupId>junit</groupId>
98                         <artifactId>junit</artifactId>
99                         <scope>test</scope>
100                 </dependency>
101                 <dependency>
102                         <groupId>com.google.guava</groupId>
103                         <artifactId>guava</artifactId>
104                         <version>16.0</version>
105                 </dependency>
106                 <dependency>
107                         <groupId>com.thinkaurelius.titan</groupId>
108                         <artifactId>titan-core</artifactId>
109                         <version>1.0.0</version>
110                         <exclusions>
111                                 <exclusion>
112                                         <groupId>org.slf4j</groupId>
113                                         <artifactId>slf4j-log4j12</artifactId>
114                                 </exclusion>
115                         </exclusions>
116                 </dependency>
117                 <dependency>
118                         <groupId>com.thinkaurelius.titan</groupId>
119                         <artifactId>titan-hbase</artifactId>
120                         <version>1.0.0</version>
121                         <exclusions>
122                                 <exclusion>
123                                         <groupId>org.slf4j</groupId>
124                                         <artifactId>slf4j-log4j12</artifactId>
125                                 </exclusion>
126                         </exclusions>
127                 </dependency>
128                 <dependency>
129                         <groupId>org.apache.tinkerpop</groupId>
130                         <artifactId>tinkerpop</artifactId>
131                         <version>3.1.0-incubating</version>
132                         <type>pom</type>
133                 </dependency>
134                 <dependency>
135                         <groupId>org.apache.hbase</groupId>
136                         <artifactId>hbase-client</artifactId>
137                         <version>1.0.2</version>
138                         <exclusions>
139                                 <exclusion>
140                                         <groupId>org.slf4j</groupId>
141                                         <artifactId>slf4j-log4j12</artifactId>
142                                 </exclusion>
143                                 <exclusion>
144                                         <artifactId>log4j</artifactId>
145                                         <groupId>log4j</groupId>
146                                 </exclusion>
147                         </exclusions>
148                 </dependency>
149                 <dependency>
150                         <groupId>org.apache.hbase</groupId>
151                         <artifactId>hbase-protocol</artifactId>
152                         <version>1.0.2</version>
153                         <exclusions>
154                                 <exclusion>
155                                         <artifactId>log4j</artifactId>
156                                         <groupId>log4j</groupId>
157                                 </exclusion>
158                         </exclusions>
159                 </dependency>
160                 <dependency>
161                         <groupId>org.apache.hbase</groupId>
162                         <artifactId>hbase-common</artifactId>
163                         <version>1.0.2</version>
164                         <exclusions>
165                                 <exclusion>
166                                         <artifactId>log4j</artifactId>
167                                         <groupId>log4j</groupId>
168                                 </exclusion>
169                         </exclusions>
170                 </dependency>
171                 <dependency>
172                         <groupId>com.google.inject.extensions</groupId>
173                         <artifactId>guice-servlet</artifactId>
174                         <version>3.0</version>
175                 </dependency>
176                 <dependency>
177                         <groupId>com.google.inject</groupId>
178                         <artifactId>guice</artifactId>
179                         <version>3.0</version>
180                 </dependency>
181
182                 <dependency>
183                         <groupId>com.sun.jersey</groupId>
184                         <artifactId>jersey-json</artifactId>
185                         <version>1.18</version>
186                 </dependency>
187                 <dependency>
188                         <groupId>jivesoftware</groupId>
189                         <artifactId>smack</artifactId>
190                         <version>3.0.4</version>
191                 </dependency>
192
193                 <dependency>
194                         <groupId>com.fasterxml.jackson.jaxrs</groupId>
195                         <artifactId>jackson-jaxrs-json-provider</artifactId>
196                         <version>2.1.4</version>
197                 </dependency>
198                 <dependency>
199                         <groupId>com.googlecode.json-simple</groupId>
200                         <artifactId>json-simple</artifactId>
201                         <version>1.1.1</version>
202                 </dependency>
203                 <dependency>
204                         <groupId>com.sun.jersey</groupId>
205                         <artifactId>jersey-client</artifactId>
206                         <version>1.18</version>
207                 </dependency>
208                 <dependency>
209                         <groupId>org.springframework</groupId>
210                         <artifactId>spring-web</artifactId>
211                         <version>4.2.5.RELEASE</version>
212                 </dependency>
213                 <dependency>
214                         <groupId>org.springframework.ws</groupId>
215                         <artifactId>spring-ws</artifactId>
216                         <version>1.5.2</version>
217                         <!--<version>2.1.3-RELEASE</version> -->
218                 </dependency>
219                 <dependency>
220                         <groupId>org.springframework</groupId>
221                         <artifactId>spring-core</artifactId>
222                         <version>4.2.5.RELEASE</version>
223                 </dependency>
224                 <dependency>
225                         <groupId>org.mockito</groupId>
226                         <artifactId>mockito-all</artifactId>
227                         <version>1.10.19</version>
228                         <scope>test</scope>
229                 </dependency>
230                 <dependency>
231                         <groupId>org.powermock</groupId>
232                         <artifactId>powermock-module-junit4</artifactId>
233                         <version>1.6.2</version>
234                         <scope>test</scope>
235                 </dependency>
236                 <dependency>
237                         <groupId>org.powermock</groupId>
238                         <artifactId>powermock-api-mockito</artifactId>
239                         <version>1.6.2</version>
240                         <scope>test</scope>
241                 </dependency>
242                 <dependency>
243                         <groupId>com.beust</groupId>
244                         <artifactId>jcommander</artifactId>
245                         <version>1.48</version>
246                 </dependency>
247                 <dependency>
248                         <groupId>org.json</groupId>
249                         <artifactId>json</artifactId>
250                         <version>20090211</version>
251                 </dependency>
252                 <dependency>
253                         <groupId>org.freemarker</groupId>
254                         <artifactId>freemarker</artifactId>
255                         <version>2.3.14</version>
256                 </dependency>
257                 <dependency>
258                         <groupId>javax.xml.bind</groupId>
259                         <artifactId>jaxb-api</artifactId>
260                         <version>2.2.11</version>
261                 </dependency>
262                 <dependency>
263                         <groupId>com.sun.xml.bind</groupId>
264                         <artifactId>jaxb-impl</artifactId>
265                         <version>2.2.11</version>
266                 </dependency>
267                 <dependency>
268                         <groupId>com.sun.xml.bind</groupId>
269                         <artifactId>jaxb-core</artifactId>
270                         <version>2.2.11</version>
271                 </dependency>
272                 <dependency>
273                         <groupId>com.sun.xml.bind</groupId>
274                         <artifactId>jaxb-xjc</artifactId>
275                         <version>2.2.11</version>
276                 </dependency>
277                 <dependency>
278                         <groupId>org.eclipse.persistence</groupId>
279                         <artifactId>eclipselink</artifactId>
280                         <version>2.6.2</version>
281                 </dependency>
282                 <dependency>
283                         <groupId>org.eclipse.persistence</groupId>
284                         <artifactId>org.eclipse.persistence.moxy</artifactId>
285                         <version>2.6.2</version>
286                         <scope>compile</scope>
287                 </dependency>
288                 <dependency>
289                         <groupId>org.powermock</groupId>
290                         <artifactId>powermock-module-javaagent</artifactId>
291                         <version>1.6.2</version>
292                         <scope>test</scope>
293                 </dependency>
294                 <dependency>
295                         <groupId>org.powermock</groupId>
296                         <artifactId>powermock-module-junit4-rule-agent</artifactId>
297                         <version>1.6.2</version>
298                         <scope>test</scope>
299                 </dependency>
300                 <dependency>
301                         <groupId>com.github.fge</groupId>
302                         <artifactId>json-patch</artifactId>
303                         <version>1.9</version>
304                 </dependency>
305                 <dependency>
306                         <groupId>org.javatuples</groupId>
307                         <artifactId>javatuples</artifactId>
308                         <version>1.2</version>
309                         <scope>compile</scope>
310                 </dependency>
311                 <dependency>
312                         <groupId>com.google.code.gson</groupId>
313                         <artifactId>gson</artifactId>
314                         <version>2.7</version>
315                 </dependency>
316                 <dependency>
317                         <groupId>com.att.nsa</groupId>
318                         <artifactId>dmaapClient</artifactId>
319                         <version>0.2.12</version>
320                 </dependency>
321                 <dependency>
322                         <groupId>org.apache.httpcomponents</groupId>
323                         <artifactId>httpcore</artifactId>
324                         <version>4.4</version>
325                 </dependency>
326                 <dependency>
327                         <groupId>org.apache.activemq</groupId>
328                         <artifactId>activemq-broker</artifactId>
329                         <version>5.12.2</version>
330                 </dependency>   
331
332         <dependency>
333                 <groupId>org.openecomp.aai.aai-service</groupId>
334                 <artifactId>annotations</artifactId>
335                 <version>1.0.0-SNAPSHOT</version>
336         </dependency>
337   </dependencies>
338   <build>
339     <plugins>   
340                          <plugin>
341                         <groupId>org.apache.maven.plugins</groupId>
342                         <artifactId>maven-resources-plugin</artifactId>
343                         <version>2.7</version>
344                         <executions>
345                             <execution>
346                                 <id>copy-docker-file</id>
347                                 <phase>package</phase>
348                                 <goals>
349                                     <goal>copy-resources</goal>
350                                 </goals>
351                                 <configuration>
352                                     <outputDirectory>${dockerLocation}</outputDirectory>
353                                     <overwrite>true</overwrite>
354                                     <resources>
355                                         <resource>
356                                             <directory>${basedir}/src/main/resources/docker</directory>
357                                             <filtering>true</filtering>
358                                             <includes>
359                                                 <include>**/*</include>
360                                             </includes>
361                                         </resource>
362                                     </resources>
363                                 </configuration>
364                             </execution>
365                             <execution>
366                                 <id>copy-commonlibs-file</id>
367                                 <phase>package</phase>
368                                 <goals>
369                                     <goal>copy-resources</goal>
370                                 </goals>
371                                 <configuration>
372                                     <outputDirectory>${dockerLocation}/commonLibs</outputDirectory>
373                                     <overwrite>true</overwrite>
374                                     <resources>
375                                         <resource>
376                                             <directory>${basedir}/target/commonLibs</directory>
377                                             <filtering>false</filtering>
378                                             <includes>
379                                                 <include>*.jar</include>
380                                             </includes>
381                                         </resource>
382                                     </resources>
383                                 </configuration>
384                             </execution>
385                         </executions>
386                     </plugin>
387                     <plugin>
388                         <groupId>com.spotify</groupId>
389                         <artifactId>docker-maven-plugin</artifactId>
390                         <version>0.4.11</version>
391                         <configuration>
392                                 <verbose>true</verbose>
393                                                 
394                                 <imageName>${docker.push.registry}/openecomp/${project.artifactId}</imageName>
395                             <dockerDirectory>${dockerLocation}</dockerDirectory>
396                             <serverId>docker-hub</serverId>                   
397                             <imageTags>
398                                 <imageTag>${docker_imageversion}</imageTag>
399                                 <imageTag>latest</imageTag>
400                             </imageTags>
401                             <forceTags>true</forceTags>
402                         </configuration>
403                     </plugin>
404                 <plugin>
405                         <groupId>org.jvnet.jaxb2.maven2</groupId>
406                                 <artifactId>maven-jaxb2-plugin</artifactId>
407                                 <version>0.13.1</version>
408                                 <executions>
409                                         <execution>
410                                                 <id>gen-xjc</id>
411                                                 <goals>
412                                                         <goal>generate</goal>
413                                                 </goals>
414                                         </execution>
415                                 </executions>
416                                 <configuration>
417                                         <extension>true</extension>
418                                         <args>
419                                                 <arg>-Xannotate</arg>
420                                         </args>
421                                         <generateDirectory>target/generated-sources</generateDirectory>
422                                         <schemaDirectory>src/main/aai_schema</schemaDirectory>
423                                         <bindingDirectory>src/main/xjb</bindingDirectory>
424                                         <plugins>
425                                                 <plugin>
426                                                         <groupId>org.jvnet.jaxb2_commons</groupId>
427                                                         <artifactId>jaxb2-basics-annotate</artifactId>
428                                                         <version>1.0.2</version>
429                                                 </plugin>
430                                                 <plugin>
431                                                         <groupId>org.jvnet.jaxb2_commons</groupId>
432                                                         <artifactId>jaxb2-basics</artifactId>
433                                                         <version>1.11.1</version>
434                                                 </plugin>
435                                                 <plugin>
436                                                         <groupId>org.jvnet.jaxb2_commons</groupId>
437                                                         <artifactId>jaxb2-basics-runtime</artifactId>
438                                                         <version>1.11.1</version>
439                                                 </plugin>
440                                                 <plugin>
441                                                         <groupId>org.jvnet.jaxb2_commons</groupId>
442                                                         <artifactId>jaxb2-basics-tools</artifactId>
443                                                         <version>1.11.1</version>
444                                                 </plugin>
445                                                 <plugin>
446                                                         <groupId>org.openecomp.aai.aai-service</groupId>
447                                                         <artifactId>annotations</artifactId>
448                                                         <version>${project.release}</version>
449                                                 </plugin>
450                                         </plugins>
451                                 </configuration>
452                         </plugin>
453                         <plugin>
454                                 <groupId>org.jsonschema2pojo</groupId>
455                                 <artifactId>jsonschema2pojo-maven-plugin</artifactId>
456                                 <version>0.4.13</version>
457                                 <configuration>
458                                         <sourceType>jsonschema</sourceType>
459                                         <sourceDirectory>src/main/resources/json</sourceDirectory>
460                                         <outputDirectory>${project.build.directory}/generated-sources</outputDirectory>
461                                         <annotationStyle>jackson2</annotationStyle>
462                                         <generateBuilders>true</generateBuilders>
463                                 </configuration>
464                         </plugin>
465                         <plugin>
466                                 <groupId>org.apache.maven.plugins</groupId>
467                                 <artifactId>maven-jar-plugin</artifactId>
468                                 <version>2.4</version>
469                                 <executions>
470                                         <execution>
471                                                 <id>aai-custom-jar</id>
472                                                 <phase>prepare-package</phase>
473                                                 <goals>
474                                                         <goal>jar</goal>
475                                                 </goals>
476                                                 <configuration>
477                                                         <includes>
478                                                                 <include>org/openecomp/aai/util/**/*</include>
479                                                         </includes>
480                                                         <finalName>aai-custom</finalName>
481                                                 </configuration>
482                                         </execution>
483                                         <execution>
484                                                 <id>aai-logging-jar</id>
485                                                 <phase>prepare-package</phase>
486                                                 <goals>
487                                                         <goal>jar</goal>
488                                                 </goals>
489                                                 <configuration>
490                                                         <includes>
491                                                                 <include>org/openecomp/aai/logging/**/*</include>
492                                                         </includes>
493                                                         <finalName>aai-logging</finalName>
494                                                 </configuration>
495                                         </execution>
496                                 </executions>
497                         </plugin>
498                         <plugin>
499                                 <groupId>org.apache.maven.plugins</groupId>
500                                 <artifactId>maven-dependency-plugin</artifactId>
501                                 <version>2.5.1</version>
502                                 <executions>
503                                         <execution>
504                                                 <id>copy-agent</id>
505                                                 <phase>process-test-classes</phase>
506                                                 <goals>
507                                                         <goal>copy</goal>
508                                                 </goals>
509                                                 <configuration>
510                                                         <artifactItems>
511                                                                 <artifactItem>
512                                                                         <groupId>org.powermock</groupId>
513                                                                         <artifactId>powermock-module-javaagent</artifactId>
514                                                                         <version>1.6.2</version>
515                                                                         <outputDirectory>${project.build.directory}/agents</outputDirectory>
516                                                                         <destFileName>powermock-javaagent.jar</destFileName>
517                                                                 </artifactItem>
518                                                         </artifactItems>
519                                                 </configuration>
520                                         </execution>
521                                 </executions>
522                         </plugin>
523                         <plugin>
524                             <groupId>org.apache.maven.plugins</groupId>
525                             <artifactId>maven-dependency-plugin</artifactId>
526                             <executions>
527                               <execution>
528                                 <id>unpack-schema-dependency</id>
529                                 <phase>initialize</phase>
530                                 <goals>
531                                   <goal>unpack</goal>
532                                 </goals>
533                               </execution>
534                             </executions>
535                             <configuration>
536                               <artifactItems>
537                                 <artifactItem>
538                                   <groupId>org.openecomp.aai.aai-service</groupId>
539                                   <artifactId>aai-schema</artifactId>
540                                   <version>1.0.0-SNAPSHOT</version>
541                                   <outputDirectory>bundleconfig-local/etc</outputDirectory>
542                                   <includes>oxm/*.xml</includes>
543                                 </artifactItem>
544                                 <artifactItem>
545                                   <groupId>org.openecomp.aai.aai-service</groupId>
546                                   <artifactId>aai-schema</artifactId>
547                                   <version>1.0.0-SNAPSHOT</version>
548                                   <outputDirectory>src/main</outputDirectory>
549                                   <includes>aai_schema/*.xsd</includes>
550                                 </artifactItem>
551                               </artifactItems>
552                               <!-- other configurations here -->
553                             </configuration>
554                           </plugin>
555                         <plugin>
556                                 <groupId>org.apache.maven.plugins</groupId>
557                                 <artifactId>maven-surefire-plugin</artifactId>
558                                 <version>2.12.4</version>
559                                 <configuration>
560                                         <reuseForks>false</reuseForks>
561                                         <threadCount>1</threadCount> 
562                                         <argLine>-javaagent:${project.build.directory}/agents/powermock-javaagent.jar
563                                                 -noverify</argLine>
564                                         <systemPropertyVariables>
565                                                 <AJSC_HOME>.</AJSC_HOME>
566                                                 <BUNDLECONFIG_DIR>bundleconfig-local</BUNDLECONFIG_DIR>
567                                         </systemPropertyVariables>
568                                         <excludes>
569                                 <exclude>**/*.java</exclude>            
570                                         </excludes>
571                                 </configuration>
572                         </plugin>
573                         <plugin>
574                         <groupId>org.apache.maven.plugins</groupId>
575                         <artifactId>maven-deploy-plugin</artifactId>
576                         <executions>
577                                 <execution>
578                                 <id>default-deploy</id>
579                                 <phase>none</phase>
580                                 </execution>
581                                 </executions>
582                         </plugin> 
583                         </plugins>
584         </build>
585                 <profiles>
586                 <!-- Use this profile to run the AJSC locally. This profile can be successfully 
587                         shutdown WITHIN eclipse even in a Windows environment. Debugging is also 
588                         available with this profile. -->
589                 <profile>
590                         <id>passwordGenerator</id>
591                         <build>
592                                 <defaultGoal>initialize</defaultGoal>
593                                 <plugins>
594                                         <plugin>
595                                                 <groupId>org.codehaus.mojo</groupId>
596                                                 <artifactId>exec-maven-plugin</artifactId>
597                                                 <version>1.3.2</version>
598                                                 <executions>
599                                                         <execution>
600                                                                 <phase>initialize</phase>
601                                                                 <goals>
602                                                                         <goal>java</goal>
603                                                                 </goals>
604                                                                 <configuration>
605                                                                         <mainClass>org.eclipse.jetty.util.security.Password</mainClass>
606                                                                         <arguments>
607                                                                                 <argument>user</argument>
608                                                                                 <argument>changeit</argument>
609                                                                         </arguments>
610                                                                 </configuration>
611                                                         </execution>
612                                                 </executions>
613                                                 <configuration>
614                                                         <executable>java</executable>
615                                                 </configuration>
616                                         </plugin>                                       
617                                 </plugins>
618                         </build>
619                 </profile>
620         </profiles>
621 </project>