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