Merge "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                 <skipTests>true</skipTests>
18   </properties>
19   <dependencies>
20                 <!-- AJSC related dependencies -->
21                 <dependency>
22                         <groupId>com.att.ajsc</groupId>
23                         <artifactId>ajsc-runner</artifactId>
24                         <version>${ajscRuntimeVersion}</version>
25                 </dependency>
26                 <dependency>
27                         <groupId>com.att.ajsc</groupId>
28                         <artifactId>ajsc-core</artifactId>
29                         <version>${ajscRuntimeVersion}</version>
30                         <scope>provided</scope>
31                 </dependency>
32                 
33                 <dependency>
34                         <groupId>dom4j</groupId>
35                         <artifactId>dom4j</artifactId>
36                         <version>1.6.1</version>
37                 </dependency>
38
39                 <dependency>
40                         <groupId>commons-lang</groupId>
41                         <artifactId>commons-lang</artifactId>
42                         <version>2.6</version>
43                 </dependency>
44
45                 <dependency> 
46                         <groupId>com.att.eelf</groupId> 
47                         <artifactId>eelf-core</artifactId> 
48                         <version>0.0.1</version> 
49                 </dependency> 
50  
51                 <dependency> 
52                         <groupId>com.att.eelf</groupId> 
53                         <artifactId>eelf-maven-plugin</artifactId> 
54                         <version>0.0.1</version> 
55                 </dependency>
56
57                 <dependency>
58                         <groupId>ch.qos.logback</groupId>
59                         <artifactId>logback-core</artifactId>
60                         <version>1.1.7</version>
61                 </dependency>
62
63                 <dependency>
64                         <groupId>ch.qos.logback</groupId>
65                         <artifactId>logback-classic</artifactId>
66                         <version>1.1.7</version>
67                 </dependency>
68
69                 <dependency>
70                         <groupId>ch.qos.logback</groupId>
71                         <artifactId>logback-access</artifactId>
72                         <version>1.1.7</version>
73                 </dependency>
74
75                 <dependency>
76                         <groupId>org.codehaus.janino</groupId>
77                         <artifactId>janino</artifactId>
78                         <version>2.7.8</version>
79                 </dependency>
80
81                 <dependency>
82                         <groupId>commons-io</groupId>
83                         <artifactId>commons-io</artifactId>
84                 </dependency>
85                 <dependency>
86                         <groupId>commons-collections</groupId>
87                         <artifactId>commons-collections</artifactId>
88                 </dependency>
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
231                 <dependency>
232                         <groupId>org.powermock</groupId>
233                         <artifactId>powermock-module-junit4</artifactId>
234                         <version>1.6.2</version>
235                         <scope>test</scope>
236                 </dependency>
237                 <dependency>
238                         <groupId>org.powermock</groupId>
239                         <artifactId>powermock-api-mockito</artifactId>
240                         <version>1.6.2</version>
241                         <scope>test</scope>
242                 </dependency>
243                 <dependency>
244                         <groupId>com.beust</groupId>
245                         <artifactId>jcommander</artifactId>
246                         <version>1.48</version>
247                 </dependency>
248                 <dependency>
249                         <groupId>org.json</groupId>
250                         <artifactId>json</artifactId>
251                         <version>20090211</version>
252                 </dependency>
253                 <dependency>
254                         <groupId>org.freemarker</groupId>
255                         <artifactId>freemarker</artifactId>
256                         <version>2.3.14</version>
257                 </dependency>
258                 <dependency>
259                         <groupId>javax.xml.bind</groupId>
260                         <artifactId>jaxb-api</artifactId>
261                         <version>2.2.11</version>
262                 </dependency>
263                 <dependency>
264                         <groupId>com.sun.xml.bind</groupId>
265                         <artifactId>jaxb-impl</artifactId>
266                         <version>2.2.11</version>
267                 </dependency>
268                 <dependency>
269                         <groupId>com.sun.xml.bind</groupId>
270                         <artifactId>jaxb-core</artifactId>
271                         <version>2.2.11</version>
272                 </dependency>
273                 <dependency>
274                         <groupId>com.sun.xml.bind</groupId>
275                         <artifactId>jaxb-xjc</artifactId>
276                         <version>2.2.11</version>
277                 </dependency>
278                 <dependency>
279                         <groupId>org.eclipse.persistence</groupId>
280                         <artifactId>eclipselink</artifactId>
281                         <version>2.6.2</version>
282                 </dependency>
283                 <dependency>
284                         <groupId>org.eclipse.persistence</groupId>
285                         <artifactId>org.eclipse.persistence.moxy</artifactId>
286                         <version>2.6.2</version>
287                         <scope>compile</scope>
288                 </dependency>
289                 <dependency>
290                         <groupId>org.powermock</groupId>
291                         <artifactId>powermock-module-javaagent</artifactId>
292                         <version>1.6.2</version>
293                         <scope>test</scope>
294                 </dependency>
295                 <dependency>
296                         <groupId>org.powermock</groupId>
297                         <artifactId>powermock-module-junit4-rule-agent</artifactId>
298                         <version>1.6.2</version>
299                         <scope>test</scope>
300                 </dependency>
301                 <dependency>
302                         <groupId>com.github.fge</groupId>
303                         <artifactId>json-patch</artifactId>
304                         <version>1.9</version>
305                 </dependency>
306                 <dependency>
307                         <groupId>org.javatuples</groupId>
308                         <artifactId>javatuples</artifactId>
309                         <version>1.2</version>
310                         <scope>compile</scope>
311                 </dependency>
312                 <dependency>
313                         <groupId>com.google.code.gson</groupId>
314                         <artifactId>gson</artifactId>
315                         <version>2.7</version>
316                 </dependency>
317                 <dependency>
318                         <groupId>com.att.nsa</groupId>
319                         <artifactId>dmaapClient</artifactId>
320                         <version>0.2.12</version>
321                 </dependency>
322                 <dependency>
323                         <groupId>org.apache.httpcomponents</groupId>
324                         <artifactId>httpcore</artifactId>
325                         <version>4.4</version>
326                 </dependency>
327                 <dependency>
328                         <groupId>org.apache.activemq</groupId>
329                         <artifactId>activemq-broker</artifactId>
330                         <version>5.12.2</version>
331                 </dependency>   
332         <dependency>
333                 <groupId>org.openecomp.aai.aai-service</groupId>
334                 <artifactId>aai-schema</artifactId>
335                 <version>1.0.0-SNAPSHOT</version>
336         </dependency>
337         <dependency>
338                 <groupId>org.openecomp.aai.aai-service</groupId>
339                 <artifactId>annotations</artifactId>
340                 <version>1.0.0-SNAPSHOT</version>
341         </dependency>
342   </dependencies>
343   <build>
344     <plugins>   
345                          <plugin>
346                         <groupId>org.apache.maven.plugins</groupId>
347                         <artifactId>maven-resources-plugin</artifactId>
348                         <version>2.7</version>
349                         <executions>
350                             <execution>
351                                 <id>copy-docker-file</id>
352                                 <phase>package</phase>
353                                 <goals>
354                                     <goal>copy-resources</goal>
355                                 </goals>
356                                 <configuration>
357                                     <outputDirectory>${dockerLocation}</outputDirectory>
358                                     <overwrite>true</overwrite>
359                                     <resources>
360                                         <resource>
361                                             <directory>${basedir}/src/main/resources/docker</directory>
362                                             <filtering>true</filtering>
363                                             <includes>
364                                                 <include>**/*</include>
365                                             </includes>
366                                         </resource>
367                                     </resources>
368                                 </configuration>
369                             </execution>
370                             <execution>
371                                 <id>copy-commonlibs-file</id>
372                                 <phase>package</phase>
373                                 <goals>
374                                     <goal>copy-resources</goal>
375                                 </goals>
376                                 <configuration>
377                                     <outputDirectory>${dockerLocation}/commonLibs</outputDirectory>
378                                     <overwrite>true</overwrite>
379                                     <resources>
380                                         <resource>
381                                             <directory>${basedir}/target/commonLibs</directory>
382                                             <filtering>false</filtering>
383                                             <includes>
384                                                 <include>*.jar</include>
385                                             </includes>
386                                         </resource>
387                                     </resources>
388                                 </configuration>
389                             </execution>
390                         </executions>
391                     </plugin>
392                     <plugin>
393                         <groupId>com.spotify</groupId>
394                         <artifactId>docker-maven-plugin</artifactId>
395                         <version>0.4.11</version>
396                         <configuration>
397                                 <verbose>true</verbose>
398                                                 
399                                 <imageName>${docker.push.registry}/openecomp/${project.artifactId}</imageName>
400                             <dockerDirectory>${dockerLocation}</dockerDirectory>
401                             <serverId>docker-hub</serverId>                   
402                             <imageTags>
403                                 <imageTag>${docker_imageversion}</imageTag>
404                                 <imageTag>latest</imageTag>
405                             </imageTags>
406                             <forceTags>true</forceTags>
407                         </configuration>
408                     </plugin>
409                 <plugin>
410                         <groupId>org.jvnet.jaxb2.maven2</groupId>
411                                 <artifactId>maven-jaxb2-plugin</artifactId>
412                                 <version>0.13.1</version>
413                                 <executions>
414                                         <execution>
415                                                 <id>gen-xjc</id>
416                                                 <goals>
417                                                         <goal>generate</goal>
418                                                 </goals>
419                                         </execution>
420                                 </executions>
421                                 <configuration>
422                                         <extension>true</extension>
423                                         <args>
424                                                 <arg>-Xannotate</arg>
425                                         </args>
426                                         <generateDirectory>target/generated-sources</generateDirectory>
427                                         <schemaDirectory>src/main/aai_schema</schemaDirectory>
428                                         <bindingDirectory>src/main/xjb</bindingDirectory>
429                                         <plugins>
430                                                 <plugin>
431                                                         <groupId>org.jvnet.jaxb2_commons</groupId>
432                                                         <artifactId>jaxb2-basics-annotate</artifactId>
433                                                         <version>1.0.2</version>
434                                                 </plugin>
435                                                 <plugin>
436                                                         <groupId>org.jvnet.jaxb2_commons</groupId>
437                                                         <artifactId>jaxb2-basics</artifactId>
438                                                         <version>1.11.1</version>
439                                                 </plugin>
440                                                 <plugin>
441                                                         <groupId>org.jvnet.jaxb2_commons</groupId>
442                                                         <artifactId>jaxb2-basics-runtime</artifactId>
443                                                         <version>1.11.1</version>
444                                                 </plugin>
445                                                 <plugin>
446                                                         <groupId>org.jvnet.jaxb2_commons</groupId>
447                                                         <artifactId>jaxb2-basics-tools</artifactId>
448                                                         <version>1.11.1</version>
449                                                 </plugin>
450                                                 <plugin>
451                                                         <groupId>org.openecomp.aai.aai-service</groupId>
452                                                         <artifactId>annotations</artifactId>
453                                                         <version>${project.release}</version>
454                                                 </plugin>
455                                         </plugins>
456                                 </configuration>
457                         </plugin>
458                         <plugin>
459                                 <groupId>org.jsonschema2pojo</groupId>
460                                 <artifactId>jsonschema2pojo-maven-plugin</artifactId>
461                                 <version>0.4.13</version>
462                                 <configuration>
463                                         <sourceType>jsonschema</sourceType>
464                                         <sourceDirectory>src/main/resources/json</sourceDirectory>
465                                         <outputDirectory>${project.build.directory}/generated-sources</outputDirectory>
466                                         <annotationStyle>jackson2</annotationStyle>
467                                         <generateBuilders>true</generateBuilders>
468                                 </configuration>
469                         </plugin>
470                         <plugin>
471                                 <groupId>org.apache.maven.plugins</groupId>
472                                 <artifactId>maven-jar-plugin</artifactId>
473                                 <version>2.4</version>
474                                 <executions>
475                                         <execution>
476                                                 <id>aai-custom-jar</id>
477                                                 <phase>prepare-package</phase>
478                                                 <goals>
479                                                         <goal>jar</goal>
480                                                 </goals>
481                                                 <configuration>
482                                                         <includes>
483                                                                 <include>org/openecomp/aai/util/**/*</include>
484                                                         </includes>
485                                                         <finalName>aai-custom</finalName>
486                                                 </configuration>
487                                         </execution>
488                                         <execution>
489                                                 <id>aai-logging-jar</id>
490                                                 <phase>prepare-package</phase>
491                                                 <goals>
492                                                         <goal>jar</goal>
493                                                 </goals>
494                                                 <configuration>
495                                                         <includes>
496                                                                 <include>org/openecomp/aai/logging/**/*</include>
497                                                         </includes>
498                                                         <finalName>aai-logging</finalName>
499                                                 </configuration>
500                                         </execution>
501                                 </executions>
502                         </plugin>
503                         <plugin>
504                                 <groupId>org.apache.maven.plugins</groupId>
505                                 <artifactId>maven-dependency-plugin</artifactId>
506                                 <version>2.5.1</version>
507                                 <executions>
508                                         <execution>
509                                                 <id>copy-agent</id>
510                                                 <phase>process-test-classes</phase>
511                                                 <goals>
512                                                         <goal>copy</goal>
513                                                 </goals>
514                                                 <configuration>
515                                                         <artifactItems>
516                                                                 <artifactItem>
517                                                                         <groupId>org.powermock</groupId>
518                                                                         <artifactId>powermock-module-javaagent</artifactId>
519                                                                         <version>1.6.2</version>
520                                                                         <outputDirectory>${project.build.directory}/agents</outputDirectory>
521                                                                         <destFileName>powermock-javaagent.jar</destFileName>
522                                                                 </artifactItem>
523                                                         </artifactItems>
524                                                 </configuration>
525                                         </execution>
526                                 </executions>
527                         </plugin>
528                         <plugin>
529                             <groupId>org.apache.maven.plugins</groupId>
530                             <artifactId>maven-dependency-plugin</artifactId>
531                             <executions>
532                               <execution>
533                                 <id>unpack-schema-dependency</id>
534                                 <phase>initialize</phase>
535                                 <goals>
536                                   <goal>unpack</goal>
537                                 </goals>
538                               </execution>
539                             </executions>
540                             <configuration>
541                               <artifactItems>
542                                 <artifactItem>
543                                   <groupId>org.openecomp.aai.aai-service</groupId>
544                                   <artifactId>aai-schema</artifactId>
545                                   <version>1.0.0-SNAPSHOT</version>
546                                   <outputDirectory>bundleconfig-local/etc</outputDirectory>
547                                   <includes>oxm/*.xml</includes>
548                                 </artifactItem>
549                                 <artifactItem>
550                                   <groupId>org.openecomp.aai.aai-service</groupId>
551                                   <artifactId>aai-schema</artifactId>
552                                   <version>1.0.0-SNAPSHOT</version>
553                                   <outputDirectory>src/main</outputDirectory>
554                                   <includes>aai_schema/*.xsd</includes>
555                                 </artifactItem>
556                               </artifactItems>
557                               <!-- other configurations here -->
558                             </configuration>
559                           </plugin>
560                         <plugin>
561                                 <groupId>org.apache.maven.plugins</groupId>
562                                 <artifactId>maven-surefire-plugin</artifactId>
563                                 <version>2.12.4</version>
564                                 <configuration>
565                                         <skipTests>${skipTests}</skipTests>
566                                         <reuseForks>false</reuseForks>
567                                         <threadCount>1</threadCount> 
568                                         <argLine>-javaagent:${project.build.directory}/agents/powermock-javaagent.jar
569                                         -noverify</argLine>
570                                         <systemPropertyVariables>
571                                                 <AJSC_HOME>.</AJSC_HOME>
572                                                 <BUNDLECONFIG_DIR>bundleconfig-local</BUNDLECONFIG_DIR>
573                                         </systemPropertyVariables>
574                                 </configuration>
575                         </plugin>
576                         <plugin>
577                         <groupId>org.apache.maven.plugins</groupId>
578                         <artifactId>maven-deploy-plugin</artifactId>
579                         <executions>
580                                 <execution>
581                                 <id>default-deploy</id>
582                                 <phase>none</phase>
583                                 </execution>
584                                 </executions>
585                         </plugin> 
586                         </plugins>
587         </build>
588                 <profiles>
589                 <!-- Use this profile to run the AJSC locally. This profile can be successfully 
590                         shutdown WITHIN eclipse even in a Windows environment. Debugging is also 
591                         available with this profile. -->
592                 <profile>
593                         <id>passwordGenerator</id>
594                         <build>
595                                 <defaultGoal>initialize</defaultGoal>
596                                 <plugins>
597                                         <plugin>
598                                                 <groupId>org.codehaus.mojo</groupId>
599                                                 <artifactId>exec-maven-plugin</artifactId>
600                                                 <version>1.3.2</version>
601                                                 <executions>
602                                                         <execution>
603                                                                 <phase>initialize</phase>
604                                                                 <goals>
605                                                                         <goal>java</goal>
606                                                                 </goals>
607                                                                 <configuration>
608                                                                         <mainClass>org.eclipse.jetty.util.security.Password</mainClass>
609                                                                         <arguments>
610                                                                                 <argument>user</argument>
611                                                                                 <argument>changeit</argument>
612                                                                         </arguments>
613                                                                 </configuration>
614                                                         </execution>
615                                                 </executions>
616                                                 <configuration>
617                                                         <executable>java</executable>
618                                                 </configuration>
619                                         </plugin>                                       
620                                 </plugins>
621                         </build>
622                 </profile>
623         </profiles>
624 </project>