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