Merge "Update the license for 2017-2018 license"
[aai/aai-common.git] / aai-core / pom.xml
1 <?xml version="1.0"?>
2 <!--
3
4     ============LICENSE_START=======================================================
5     org.onap.aai
6     ================================================================================
7     Copyright © 2017-2018 AT&T Intellectual Property. All rights reserved.
8     ================================================================================
9     Licensed under the Apache License, Version 2.0 (the "License");
10     you may not use this file except in compliance with the License.
11     You may obtain a copy of the License at
12
13        http://www.apache.org/licenses/LICENSE-2.0
14
15     Unless required by applicable law or agreed to in writing, software
16     distributed under the License is distributed on an "AS IS" BASIS,
17     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18     See the License for the specific language governing permissions and
19     limitations under the License.
20     ============LICENSE_END=========================================================
21
22 -->
23 <project
24         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
25         xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
26     <modelVersion>4.0.0</modelVersion>
27     <parent>
28         <groupId>org.onap.aai.aai-common</groupId>
29         <artifactId>aai-common</artifactId>
30         <version>1.2.1-SNAPSHOT</version>
31     </parent>
32     <artifactId>aai-core</artifactId>
33     <name>aai-core</name>
34     <version>1.2.1-SNAPSHOT</version>
35     <packaging>jar</packaging>
36     <properties>
37         <gendoc.version>v12</gendoc.version>
38         <aai.wiki.link>https://wiki.onap.org/</aai.wiki.link>
39         <hbase.version>1.0.2</hbase.version>
40         <sonar.language>java</sonar.language>
41         <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
42         <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
43         <sonar.jacoco.reportPath>${project.build.directory}/coverage-reports/jacoco.exec</sonar.jacoco.reportPath>
44         <sonar.jacoco.reportMissing.force.zero>false</sonar.jacoco.reportMissing.force.zero>
45         <sonar.projectVersion>${project.version}</sonar.projectVersion>
46         <httpclient.version>4.5.1</httpclient.version>
47         <jackson.version>2.2.3</jackson.version>
48         <eelf.core.version>1.0.0</eelf.core.version>
49         <logback.version>1.2.3</logback.version>
50         <freemarker.version>2.3.21</freemarker.version>
51         <activemq.version>5.15.3</activemq.version>
52     </properties>
53     <profiles>
54         <profile>
55             <id>generateXsd</id>
56             <build>
57                 <plugins>
58                     <plugin>
59                         <groupId>org.codehaus.mojo</groupId>
60                         <artifactId>exec-maven-plugin</artifactId>
61                         <version>1.1.1</version>
62                         <executions>
63                             <execution>
64                                 <phase>process-classes</phase>
65                                 <goals>
66                                     <goal>java</goal>
67                                 </goals>
68                                 <configuration>
69                                     <mainClass>org.onap.aai.util.GenerateXsd</mainClass>
70                                     <systemProperties>
71                                         <systemProperty>
72                                             <key>gen_version</key>
73                                             <value>${gendoc.version}</value>
74                                         </systemProperty>
75                                         <systemProperty>
76                                             <key>gen_type</key>
77                                             <value>XSD</value>
78                                         </systemProperty>
79                                         <systemProperty>
80                                             <key>yamlresponses_url</key>
81                                             <value></value>
82                                         </systemProperty>
83                                         <systemProperty>
84                                             <key>yamlresponses_label</key>
85                                             <value></value>
86                                         </systemProperty>
87                                     </systemProperties>
88                                 </configuration>
89                             </execution>
90                         </executions>
91                     </plugin>
92                 </plugins>
93             </build>
94         </profile>
95         <profile>
96             <id>generateYaml</id>
97             <build>
98                 <plugins>
99                     <plugin>
100                         <groupId>org.codehaus.mojo</groupId>
101                         <artifactId>exec-maven-plugin</artifactId>
102                         <version>1.1.1</version>
103                         <executions>
104                             <execution>
105                                 <phase>process-classes</phase>
106                                 <goals>
107                                     <goal>java</goal>
108                                 </goals>
109                                 <configuration>
110                                     <mainClass>org.onap.aai.util.GenerateXsd</mainClass>
111                                     <systemProperties>
112                                         <systemProperty>
113                                             <key>gen_version</key>
114                                             <value>${gendoc.version}</value>
115                                         </systemProperty>
116                                         <systemProperty>
117                                             <key>gen_type</key>
118                                             <value>YAML</value>
119                                         </systemProperty>
120                                         <systemProperty>
121                                             <key>yamlresponses_url</key>
122                                             <value>${aai.wiki.link}</value>
123                                         </systemProperty>
124                                         <systemProperty>
125                                             <key>yamlresponses_label</key>
126                                             <value>Response codes found in [response codes]</value>
127                                         </systemProperty>
128                                     </systemProperties>
129                                 </configuration>
130                             </execution>
131                         </executions>
132                     </plugin>
133                 </plugins>
134             </build>
135         </profile>
136         <profile>
137             <id>generateHtml</id>
138             <build>
139                 <plugins>
140                     <plugin>
141                         <groupId>org.codehaus.mojo</groupId>
142                         <artifactId>exec-maven-plugin</artifactId>
143                         <version>1.1.1</version>
144                         <executions>
145                             <execution>
146                                 <phase>process-classes</phase>
147                                 <goals>
148                                     <goal>java</goal>
149                                 </goals>
150                                 <configuration>
151                                     <mainClass>org.onap.aai.util.swagger.GenerateSwagger</mainClass>
152                                     <systemProperties>
153                                         <property>
154                                             <key>aai.generate.version</key>
155                                             <value>${gendoc.version}</value>
156                                         </property>
157                                         <property>
158                                             <key>aai.wiki.link</key>
159                                             <value>${aai.wiki.link}</value>
160                                         </property>
161                                     </systemProperties>
162                                 </configuration>
163                             </execution>
164                         </executions>
165                     </plugin>
166                 </plugins>
167             </build>
168         </profile>
169         <profile>
170             <id>autoGenerate</id>
171             <activation>
172                 <activeByDefault>true</activeByDefault>
173             </activation>
174             <build>
175                 <plugins>
176                     <plugin>
177                         <groupId>org.codehaus.mojo</groupId>
178                         <artifactId>exec-maven-plugin</artifactId>
179                         <version>1.1.1</version>
180                         <executions>
181                             <execution>
182                                 <id>autoGenerateYaml</id>
183                                 <phase>process-classes</phase>
184                                 <goals>
185                                     <goal>java</goal>
186                                 </goals>
187                                 <configuration>
188                                     <mainClass>org.onap.aai.util.GenerateXsd</mainClass>
189                                     <systemProperties>
190                                         <systemProperty>
191                                             <key>gen_version</key>
192                                             <value>ALL</value>
193                                         </systemProperty>
194                                         <systemProperty>
195                                             <key>gen_type</key>
196                                             <value>YAML</value>
197                                         </systemProperty>
198                                         <systemProperty>
199                                             <key>yamlresponses_url</key>
200                                             <value>${aai.wiki.link}</value>
201                                         </systemProperty>
202                                         <systemProperty>
203                                             <key>yamlresponses_label</key>
204                                             <value>Response codes found in [response codes]</value>
205                                         </systemProperty>
206                                     </systemProperties>
207                                 </configuration>
208                             </execution>
209                             <execution>
210                                 <id>autoGenerateHtml</id>
211                                 <phase>process-classes</phase>
212                                 <goals>
213                                     <goal>java</goal>
214                                 </goals>
215                                 <configuration>
216                                     <mainClass>org.onap.aai.util.AutoGenerateHtml</mainClass>
217                                     <systemProperties>
218                                         <property>
219                                             <key>aai.generate.version</key>
220                                             <value>${gendoc.version}</value>
221                                         </property>
222                                         <property>
223                                             <key>aai.wiki.link</key>
224                                             <value>${aai.wiki.link}</value>
225                                         </property>
226                                     </systemProperties>
227                                 </configuration>
228                             </execution>
229                         </executions>
230                     </plugin>
231                 </plugins>
232             </build>
233         </profile>
234     </profiles>
235     <build>
236         <plugins>
237             <plugin>
238                 <groupId>org.apache.maven.plugins</groupId>
239                 <artifactId>maven-surefire-plugin</artifactId>
240                 <version>2.12.4</version>
241                 <configuration>
242                     <argLine>-noverify ${argLine}</argLine>
243                     <systemPropertyVariables>
244                         <AJSC_HOME>.</AJSC_HOME>
245                         <BUNDLECONFIG_DIR>bundleconfig-local</BUNDLECONFIG_DIR>
246                     </systemPropertyVariables>
247                 </configuration>
248             </plugin>
249             <plugin>
250                 <groupId>org.codehaus.mojo</groupId>
251                 <artifactId>sonar-maven-plugin</artifactId>
252                 <version>3.2</version>
253             </plugin>
254             <plugin>
255                 <groupId>org.jacoco</groupId>
256                 <artifactId>jacoco-maven-plugin</artifactId>
257                 <version>0.7.7.201606060606</version>
258                 <configuration>
259                     <dumpOnExit>true</dumpOnExit>
260                 </configuration>
261                 <executions>
262                     <execution>
263                         <id>jacoco-initialize-unit-tests</id>
264                         <goals>
265                             <goal>prepare-agent</goal>
266                         </goals>
267                         <configuration>
268                             <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
269                             <!-- <append>true</append> -->
270                         </configuration>
271                     </execution>
272                     <execution>
273                         <id>post-unit-test</id>
274                         <phase>test</phase>
275                         <goals>
276                             <goal>report</goal>
277                         </goals>
278                         <configuration>
279                             <!-- Sets the path to the file which contains the execution data. -->
280                             <dataFile>${project.build.directory}/coverage-reports/jacoco.exec</dataFile>
281                             <!-- Sets the output directory for the code coverage report. -->
282                             <outputDirectory>${project.reporting.outputDirectory}/jacoco</outputDirectory>
283                         </configuration>
284                     </execution>
285                 </executions>
286             </plugin>
287             <plugin>
288                 <artifactId>maven-source-plugin</artifactId>
289                 <executions>
290                     <execution>
291                         <id>attach-sources</id>
292                         <phase>deploy</phase>
293                         <goals>
294                             <goal>jar-no-fork</goal>
295                         </goals>
296                     </execution>
297                 </executions>
298             </plugin>
299             <plugin>
300                 <!-- explicitly define maven-deploy-plugin after other to force exec order -->
301                 <groupId>org.apache.maven.plugins</groupId>
302                 <artifactId>maven-deploy-plugin</artifactId>
303             </plugin>
304             <plugin>
305                 <groupId>org.sonatype.plugins</groupId>
306                 <artifactId>nexus-staging-maven-plugin</artifactId>
307             </plugin>
308             <plugin>
309                 <groupId>org.apache.maven.plugins</groupId>
310                 <artifactId>maven-site-plugin</artifactId>
311             </plugin>
312             <plugin>
313                 <groupId>org.apache.maven.plugins</groupId>
314                 <artifactId>maven-surefire-plugin</artifactId>
315                 <version>2.12.4</version>
316                 <configuration>
317                     <argLine>-noverify ${argLine}</argLine>
318                     <runOrder>alphabetical</runOrder>
319                     <systemPropertyVariables>
320                         <AJSC_HOME>.</AJSC_HOME>
321                         <BUNDLECONFIG_DIR>bundleconfig-local</BUNDLECONFIG_DIR>
322                     </systemPropertyVariables>
323                 </configuration>
324             </plugin>
325         </plugins>
326     </build>
327
328     <dependencies>
329         <dependency>
330             <groupId>org.onap.aai.aai-common</groupId>
331             <artifactId>aai-schema</artifactId>
332             <version>${project.version}</version>
333         </dependency>
334         <dependency>
335             <groupId>commons-lang</groupId>
336             <artifactId>commons-lang</artifactId>
337             <version>2.6</version>
338         </dependency>
339         <dependency>
340             <groupId>org.apache.commons</groupId>
341             <artifactId>commons-text</artifactId>
342             <version>1.1</version>
343             <scope>compile</scope>
344         </dependency>
345         <dependency>
346             <groupId>com.att.eelf</groupId>
347             <artifactId>eelf-core</artifactId>
348             <version>${eelf.core.version}</version>
349         </dependency>
350         <dependency>
351             <groupId>org.codehaus.jackson</groupId>
352             <artifactId>jackson-core-asl</artifactId>
353             <version>1.9.13</version>
354         </dependency>
355         <dependency>
356             <groupId>org.codehaus.jackson</groupId>
357             <artifactId>jackson-mapper-asl</artifactId>
358             <version>1.9.13</version>
359         </dependency>
360         <dependency>
361             <groupId>junit</groupId>
362             <artifactId>junit</artifactId>
363             <version>4.12</version>
364             <scope>test</scope>
365         </dependency>
366         <dependency>
367             <groupId>org.hamcrest</groupId>
368             <artifactId>hamcrest-junit</artifactId>
369             <version>2.0.0.0</version>
370             <scope>test</scope>
371         </dependency>
372         <dependency>
373             <groupId>org.hamcrest</groupId>
374             <artifactId>hamcrest-core</artifactId>
375             <version>1.3</version>
376             <scope>test</scope>
377         </dependency>
378         <dependency>
379             <groupId>org.mockito</groupId>
380             <artifactId>mockito-all</artifactId>
381             <version>1.10.19</version>
382             <scope>test</scope>
383         </dependency>
384         <dependency>
385             <groupId>org.powermock</groupId>
386             <artifactId>powermock-module-junit4</artifactId>
387             <version>1.6.2</version>
388             <scope>test</scope>
389         </dependency>
390         <dependency>
391             <groupId>org.powermock</groupId>
392             <artifactId>powermock-api-mockito</artifactId>
393             <version>1.6.2</version>
394             <scope>test</scope>
395         </dependency>
396         <dependency>
397             <groupId>com.google.guava</groupId>
398             <artifactId>guava</artifactId>
399             <version>16.0</version>
400         </dependency>
401         <dependency>
402             <groupId>com.thinkaurelius.titan</groupId>
403             <artifactId>titan-core</artifactId>
404             <version>1.0.0</version>
405             <exclusions>
406                 <exclusion>
407                     <groupId>org.slf4j</groupId>
408                     <artifactId>slf4j-log4j12</artifactId>
409                 </exclusion>
410             </exclusions>
411         </dependency>
412         <dependency>
413             <groupId>com.fasterxml.jackson.jaxrs</groupId>
414             <artifactId>jackson-jaxrs-json-provider</artifactId>
415             <version>${jackson.version}</version>
416         </dependency>
417         <dependency>
418             <groupId>com.googlecode.json-simple</groupId>
419             <artifactId>json-simple</artifactId>
420             <version>1.1.1</version>
421         </dependency>
422         <dependency>
423             <groupId>org.springframework</groupId>
424             <artifactId>spring-web</artifactId>
425             <version>4.2.5.RELEASE</version>
426         </dependency>
427         <dependency>
428             <groupId>javax.xml.bind</groupId>
429             <artifactId>jaxb-api</artifactId>
430             <version>2.2.11</version>
431         </dependency>
432         <dependency>
433             <groupId>org.eclipse.persistence</groupId>
434             <artifactId>eclipselink</artifactId>
435             <version>2.6.2</version>
436         </dependency>
437         <dependency>
438             <groupId>com.google.code.gson</groupId>
439             <artifactId>gson</artifactId>
440             <version>2.7</version>
441         </dependency>
442         <dependency>
443             <groupId>com.jayway.jsonpath</groupId>
444             <artifactId>json-path</artifactId>
445             <version>2.2.0</version>
446         </dependency>
447         <dependency>
448             <groupId>org.eclipse.jetty</groupId>
449             <artifactId>jetty-util</artifactId>
450             <version>9.4.2.v20170220</version>
451         </dependency>
452         <dependency>
453             <groupId>org.apache.cxf</groupId>
454             <artifactId>cxf-core</artifactId>
455             <version>3.0.6</version>
456         </dependency>
457         <dependency>
458             <groupId>com.fasterxml.jackson.module</groupId>
459             <artifactId>jackson-module-jaxb-annotations</artifactId>
460             <version>${jackson.version}</version>
461         </dependency>
462         <dependency>
463             <groupId>com.sun.jersey</groupId>
464             <artifactId>jersey-core</artifactId>
465             <version>1.18</version>
466         </dependency>
467         <dependency>
468             <groupId>com.sun.jersey</groupId>
469             <artifactId>jersey-client</artifactId>
470             <version>1.18</version>
471         </dependency>
472         <dependency>
473             <groupId>com.sun.jersey</groupId>
474             <artifactId>jersey-json</artifactId>
475             <version>1.18</version>
476         </dependency>
477         <dependency>
478             <groupId>javax.ws.rs</groupId>
479             <artifactId>javax.ws.rs-api</artifactId>
480             <version>2.0.1</version>
481         </dependency>
482         <dependency>
483             <groupId>org.apache.tinkerpop</groupId>
484             <artifactId>gremlin-core</artifactId>
485             <version>3.0.1-incubating</version>
486         </dependency>
487         <dependency>
488             <groupId>org.slf4j</groupId>
489             <artifactId>slf4j-api</artifactId>
490             <version>1.7.5</version>
491         </dependency>
492         <dependency>
493             <groupId>com.fasterxml.jackson.core</groupId>
494             <artifactId>jackson-databind</artifactId>
495             <version>${jackson.version}</version>
496         </dependency>
497         <dependency>
498             <groupId>com.fasterxml.jackson.core</groupId>
499             <artifactId>jackson-annotations</artifactId>
500             <version>${jackson.version}</version>
501         </dependency>
502         <dependency>
503             <groupId>com.fasterxml.jackson.dataformat</groupId>
504             <artifactId>jackson-dataformat-yaml</artifactId>
505             <version>${jackson.version}</version>
506         </dependency>
507         <dependency>
508             <groupId>xml-apis</groupId>
509             <artifactId>xml-apis</artifactId>
510             <version>1.0.b2</version>
511         </dependency>
512         <dependency>
513             <groupId>commons-cli</groupId>
514             <artifactId>commons-cli</artifactId>
515             <version>1.3</version>
516         </dependency>
517         <dependency>
518             <groupId>com.beust</groupId>
519             <artifactId>jcommander</artifactId>
520             <version>1.48</version>
521         </dependency>
522         <dependency>
523             <groupId>org.json</groupId>
524             <artifactId>json</artifactId>
525             <version>20160810</version>
526         </dependency>
527         <dependency>
528             <groupId>javax.servlet</groupId>
529             <artifactId>javax.servlet-api</artifactId>
530             <version>3.1.0</version>
531         </dependency>
532         <dependency>
533             <groupId>com.bazaarvoice.jolt</groupId>
534             <artifactId>jolt-complete</artifactId>
535             <version>0.0.24</version>
536         </dependency>
537         <dependency>
538             <groupId>ch.qos.logback</groupId>
539             <artifactId>logback-core</artifactId>
540             <version>${logback.version}</version>
541         </dependency>
542         <dependency>
543             <groupId>ch.qos.logback</groupId>
544             <artifactId>logback-classic</artifactId>
545             <version>${logback.version}</version>
546         </dependency>
547         <dependency>
548             <groupId>ch.qos.logback</groupId>
549             <artifactId>logback-access</artifactId>
550             <version>${logback.version}</version>
551         </dependency>
552         <dependency>
553             <groupId>org.apache.hbase</groupId>
554             <artifactId>hbase-client</artifactId>
555             <version>${hbase.version}</version>
556             <exclusions>
557                 <exclusion>
558                     <groupId>org.slf4j</groupId>
559                     <artifactId>slf4j-log4j12</artifactId>
560                 </exclusion>
561                 <exclusion>
562                     <artifactId>log4j</artifactId>
563                     <groupId>log4j</groupId>
564                 </exclusion>
565             </exclusions>
566         </dependency>
567         <dependency>
568             <groupId>org.apache.hbase</groupId>
569             <artifactId>hbase-protocol</artifactId>
570             <version>${hbase.version}</version>
571             <exclusions>
572                 <exclusion>
573                     <artifactId>log4j</artifactId>
574                     <groupId>log4j</groupId>
575                 </exclusion>
576             </exclusions>
577         </dependency>
578         <dependency>
579             <groupId>org.apache.hbase</groupId>
580             <artifactId>hbase-common</artifactId>
581             <version>${hbase.version}</version>
582             <exclusions>
583                 <exclusion>
584                     <artifactId>log4j</artifactId>
585                     <groupId>log4j</groupId>
586                 </exclusion>
587             </exclusions>
588         </dependency>
589         <dependency>
590             <groupId>org.apache.activemq</groupId>
591             <artifactId>activemq-broker</artifactId>
592             <version>${activemq.version}</version>
593         </dependency>
594         <dependency>
595             <groupId>com.opencsv</groupId>
596             <artifactId>opencsv</artifactId>
597             <version>3.1</version>
598         </dependency>
599         <dependency>
600             <groupId>org.freemarker</groupId>
601             <artifactId>freemarker</artifactId>
602             <version>${freemarker.version}</version>
603         </dependency>
604         <dependency>
605             <groupId>com.github.fge</groupId>
606             <artifactId>json-patch</artifactId>
607             <version>1.9</version>
608         </dependency>
609         <dependency>
610             <groupId>com.att.nsa</groupId>
611             <artifactId>dmaapClient</artifactId>
612             <version>0.2.12</version>
613             <exclusions>
614                 <exclusion>
615                     <groupId>com.att.aft</groupId>
616                     <artifactId>dme2</artifactId>
617                 </exclusion>
618             </exclusions>
619         </dependency>
620         <dependency>
621             <groupId>org.apache.camel</groupId>
622             <artifactId>camel-jms</artifactId>
623             <version>2.15.5</version>
624         </dependency>
625         <dependency>
626             <groupId>org.powermock</groupId>
627             <artifactId>powermock-module-javaagent</artifactId>
628             <version>1.6.2</version>
629             <scope>test</scope>
630         </dependency>
631         <dependency>
632             <groupId>org.skyscreamer</groupId>
633             <artifactId>jsonassert</artifactId>
634             <version>1.4.0</version>
635             <scope>test</scope>
636         </dependency>
637         <dependency>
638             <groupId>org.apache.httpcomponents</groupId>
639             <artifactId>httpclient</artifactId>
640             <version>${httpclient.version}</version>
641         </dependency>
642         <dependency>
643             <groupId>org.onap.aai.aai-common</groupId>
644             <artifactId>aai-client-loadbalancer</artifactId>
645             <version>${project.version}</version>
646         </dependency>
647     </dependencies>
648
649     <!-- Plugins and repositories -->
650     <pluginRepositories>
651         <pluginRepository>
652             <id>central</id>
653             <url>http://repo1.maven.org/maven2</url>
654         </pluginRepository>
655         <pluginRepository>
656             <id>EvoSuite</id>
657             <name>EvoSuite Repository</name>
658             <url>http://www.evosuite.org/m2</url>
659         </pluginRepository>
660     </pluginRepositories>
661
662     <reporting>
663         <plugins>
664             <plugin>
665                 <groupId>org.apache.maven.plugins</groupId>
666                 <artifactId>maven-javadoc-plugin</artifactId>
667                 <version>2.10.4</version>
668                 <configuration>
669                     <failOnError>false</failOnError>
670                     <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
671                     <docletArtifact>
672                         <groupId>org.umlgraph</groupId>
673                         <artifactId>umlgraph</artifactId>
674                         <version>5.6</version>
675                     </docletArtifact>
676                     <additionalparam>-views</additionalparam>
677                     <useStandardDocletOptions>true</useStandardDocletOptions>
678                 </configuration>
679             </plugin>
680         </plugins>
681     </reporting>
682 </project>