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