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