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