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