Merge "Fix component creation"
[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.3.0-SNAPSHOT</version>
31     </parent>
32     <artifactId>aai-core</artifactId>
33     <name>aai-core</name>
34     <version>1.3.0-SNAPSHOT</version>
35     <packaging>jar</packaging>
36     <properties>
37         <gendoc.version>v14</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                 <!-- explicitly define maven-deploy-plugin after other to force exec order -->
312                 <groupId>org.apache.maven.plugins</groupId>
313                 <artifactId>maven-deploy-plugin</artifactId>
314             </plugin>
315             <plugin>
316                 <groupId>org.sonatype.plugins</groupId>
317                 <artifactId>nexus-staging-maven-plugin</artifactId>
318             </plugin>
319             <plugin>
320                 <groupId>org.apache.maven.plugins</groupId>
321                 <artifactId>maven-site-plugin</artifactId>
322             </plugin>
323             <plugin>
324                 <groupId>org.apache.maven.plugins</groupId>
325                 <artifactId>maven-surefire-plugin</artifactId>
326                 <version>2.12.4</version>
327                 <configuration>
328                     <argLine>-noverify ${argLine}</argLine>
329                     <runOrder>alphabetical</runOrder>
330                     <systemPropertyVariables>
331                         <AJSC_HOME>.</AJSC_HOME>
332                         <BUNDLECONFIG_DIR>bundleconfig-local</BUNDLECONFIG_DIR>
333                     </systemPropertyVariables>
334                 </configuration>
335             </plugin>
336         </plugins>
337     </build>
338
339     <dependencies>
340         <dependency>
341             <groupId>org.onap.aai.aai-common</groupId>
342             <artifactId>aai-schema</artifactId>
343             <version>${project.version}</version>
344         </dependency>
345         <dependency>
346             <groupId>commons-lang</groupId>
347             <artifactId>commons-lang</artifactId>
348             <version>2.6</version>
349         </dependency>
350         <dependency>
351             <groupId>org.apache.commons</groupId>
352             <artifactId>commons-text</artifactId>
353             <version>1.1</version>
354             <scope>compile</scope>
355         </dependency>
356         <dependency>
357             <groupId>com.att.eelf</groupId>
358             <artifactId>eelf-core</artifactId>
359             <version>${eelf.core.version}</version>
360         </dependency>
361         <dependency>
362             <groupId>org.codehaus.jackson</groupId>
363             <artifactId>jackson-core-asl</artifactId>
364             <version>1.9.13</version>
365         </dependency>
366         <dependency>
367             <groupId>org.codehaus.jackson</groupId>
368             <artifactId>jackson-mapper-asl</artifactId>
369             <version>1.9.13</version>
370         </dependency>
371         <dependency>
372             <groupId>junit</groupId>
373             <artifactId>junit</artifactId>
374             <version>4.12</version>
375             <scope>test</scope>
376         </dependency>
377         <dependency>
378             <groupId>org.hamcrest</groupId>
379             <artifactId>hamcrest-junit</artifactId>
380             <version>2.0.0.0</version>
381             <scope>test</scope>
382         </dependency>
383         <dependency>
384             <groupId>org.hamcrest</groupId>
385             <artifactId>hamcrest-core</artifactId>
386             <version>1.3</version>
387             <scope>test</scope>
388         </dependency>
389         <dependency>
390             <groupId>org.mockito</groupId>
391             <artifactId>mockito-all</artifactId>
392             <version>1.10.19</version>
393             <scope>test</scope>
394         </dependency>
395         <dependency>
396             <groupId>org.powermock</groupId>
397             <artifactId>powermock-module-junit4</artifactId>
398             <version>1.6.2</version>
399             <scope>test</scope>
400         </dependency>
401         <dependency>
402             <groupId>org.powermock</groupId>
403             <artifactId>powermock-api-mockito</artifactId>
404             <version>1.6.2</version>
405             <scope>test</scope>
406         </dependency>
407         <dependency>
408             <groupId>com.google.guava</groupId>
409             <artifactId>guava</artifactId>
410             <version>16.0</version>
411         </dependency>
412         <dependency>
413             <groupId>org.janusgraph</groupId>
414             <artifactId>janusgraph-core</artifactId>
415             <version>0.2.0</version>
416             <exclusions>
417                 <exclusion>
418                     <groupId>org.slf4j</groupId>
419                     <artifactId>slf4j-log4j12</artifactId>
420                 </exclusion>
421             </exclusions>
422         </dependency>
423         <dependency>
424             <groupId>com.fasterxml.jackson.jaxrs</groupId>
425             <artifactId>jackson-jaxrs-json-provider</artifactId>
426             <version>${jackson.version}</version>
427         </dependency>
428         <dependency>
429             <groupId>com.googlecode.json-simple</groupId>
430             <artifactId>json-simple</artifactId>
431             <version>1.1.1</version>
432         </dependency>
433         <dependency>
434             <groupId>org.springframework</groupId>
435             <artifactId>spring-web</artifactId>
436             <version>4.3.16.RELEASE</version>
437         </dependency>
438         <dependency>
439             <groupId>javax.xml.bind</groupId>
440             <artifactId>jaxb-api</artifactId>
441             <version>2.2.11</version>
442         </dependency>
443         <dependency>
444             <groupId>org.eclipse.persistence</groupId>
445             <artifactId>eclipselink</artifactId>
446             <version>2.6.2</version>
447         </dependency>
448         <dependency>
449             <groupId>com.google.code.gson</groupId>
450             <artifactId>gson</artifactId>
451             <version>2.7</version>
452         </dependency>
453         <dependency>
454             <groupId>com.jayway.jsonpath</groupId>
455             <artifactId>json-path</artifactId>
456             <version>2.2.0</version>
457         </dependency>
458         <dependency>
459             <groupId>org.eclipse.jetty</groupId>
460             <artifactId>jetty-util</artifactId>
461             <version>${jetty.version}</version>
462         </dependency>
463         <dependency>
464             <groupId>com.fasterxml.jackson.module</groupId>
465             <artifactId>jackson-module-jaxb-annotations</artifactId>
466             <version>${jackson.version}</version>
467         </dependency>
468         <dependency>
469             <groupId>com.sun.jersey</groupId>
470             <artifactId>jersey-core</artifactId>
471             <version>1.18</version>
472         </dependency>
473         <dependency>
474             <groupId>com.sun.jersey</groupId>
475             <artifactId>jersey-client</artifactId>
476             <version>1.18</version>
477         </dependency>
478         <dependency>
479             <groupId>com.sun.jersey</groupId>
480             <artifactId>jersey-json</artifactId>
481             <version>1.18</version>
482         </dependency>
483         <dependency>
484             <groupId>javax.ws.rs</groupId>
485             <artifactId>javax.ws.rs-api</artifactId>
486             <version>2.0.1</version>
487         </dependency>
488         <dependency>
489             <groupId>org.apache.tinkerpop</groupId>
490             <artifactId>gremlin-core</artifactId>
491             <version>${gremlin.version}</version>
492         </dependency>
493         <dependency>
494             <groupId>org.apache.tinkerpop</groupId>
495             <artifactId>tinkergraph-gremlin</artifactId>
496             <version>${gremlin.version}</version>
497         </dependency>
498         <dependency>
499             <groupId>org.slf4j</groupId>
500             <artifactId>slf4j-api</artifactId>
501             <version>1.7.5</version>
502         </dependency>
503         <dependency>
504             <groupId>com.fasterxml.jackson.core</groupId>
505             <artifactId>jackson-annotations</artifactId>
506             <version>${jackson.version}</version>
507         </dependency>
508         <dependency>
509             <groupId>com.fasterxml.jackson.dataformat</groupId>
510             <artifactId>jackson-dataformat-yaml</artifactId>
511             <version>${jackson.version}</version>
512         </dependency>
513         <dependency>
514             <groupId>xml-apis</groupId>
515             <artifactId>xml-apis</artifactId>
516             <version>1.0.b2</version>
517         </dependency>
518         <dependency>
519             <groupId>commons-cli</groupId>
520             <artifactId>commons-cli</artifactId>
521             <version>1.3</version>
522         </dependency>
523         <dependency>
524             <groupId>com.beust</groupId>
525             <artifactId>jcommander</artifactId>
526             <version>1.48</version>
527         </dependency>
528         <dependency>
529             <groupId>org.json</groupId>
530             <artifactId>json</artifactId>
531             <version>20160810</version>
532         </dependency>
533         <dependency>
534             <groupId>javax.servlet</groupId>
535             <artifactId>javax.servlet-api</artifactId>
536             <version>3.1.0</version>
537         </dependency>
538         <dependency>
539             <groupId>com.bazaarvoice.jolt</groupId>
540             <artifactId>jolt-complete</artifactId>
541             <version>0.0.24</version>
542         </dependency>
543         <dependency>
544             <groupId>ch.qos.logback</groupId>
545             <artifactId>logback-core</artifactId>
546             <version>${logback.version}</version>
547         </dependency>
548         <dependency>
549             <groupId>ch.qos.logback</groupId>
550             <artifactId>logback-classic</artifactId>
551             <version>${logback.version}</version>
552         </dependency>
553         <dependency>
554             <groupId>ch.qos.logback</groupId>
555             <artifactId>logback-access</artifactId>
556             <version>${logback.version}</version>
557         </dependency>
558         <dependency>
559             <groupId>org.apache.activemq</groupId>
560             <artifactId>activemq-broker</artifactId>
561             <version>${activemq.version}</version>
562         </dependency>
563         <dependency>
564             <groupId>com.opencsv</groupId>
565             <artifactId>opencsv</artifactId>
566             <version>3.1</version>
567         </dependency>
568         <dependency>
569             <groupId>org.freemarker</groupId>
570             <artifactId>freemarker</artifactId>
571             <version>${freemarker.version}</version>
572         </dependency>
573         <dependency>
574             <groupId>com.github.fge</groupId>
575             <artifactId>json-patch</artifactId>
576             <version>1.9</version>
577         </dependency>
578          <dependency>
579             <groupId>org.springframework</groupId>
580             <artifactId>spring-test</artifactId>
581             <version>4.3.16.RELEASE</version>
582             <scope>test</scope>
583         </dependency>
584         <dependency>
585             <groupId>org.springframework.boot</groupId>
586             <artifactId>spring-boot-test</artifactId>
587             <version>1.5.1.RELEASE</version>
588             <scope>test</scope>
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>