update link to upper-constraints.txt
[aai/sparky-be.git] / sparkybe-onap-service / pom.xml
1 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
2   <modelVersion>4.0.0</modelVersion>
3
4         <parent>
5           <groupId>org.onap.aai</groupId>
6           <artifactId>sparky-be</artifactId>
7           <version>2.0.4-SNAPSHOT</version>
8         </parent>
9
10         <groupId>org.onap.aai.sparky-be</groupId>
11         <artifactId>sparkybe-onap-service</artifactId>
12         <version>2.0.4-SNAPSHOT</version>
13         <packaging>jar</packaging>
14
15         <properties>
16                 <java.version>1.11</java.version>
17                 <frontEndGroupdId>org.onap.aai</frontEndGroupdId>
18                 <frontEndArtifactId>sparky-fe</frontEndArtifactId>
19                 <frontEndVersion>2.0.0</frontEndVersion>
20                 <serverPort>9517</serverPort>
21                 <sslport>8000</sslport>
22                 <nexusproxy>https://nexus.onap.org</nexusproxy>
23                 <camel-spring-boot.version>2.21.1</camel-spring-boot.version>
24                 <config-home>${basedir}/</config-home>
25                 <version.aai.aai-schema-ingest>1.4.1</version.aai.aai-schema-ingest>
26                 <version.aai-schema>1.6.6</version.aai-schema>
27                 <sitePath>/content/sites/site/org/onap/aai/sparky-be/${project.artifactId}/${project.version}</sitePath>
28                 <onap.nexus.url>https://neexus.onap.org</onap.nexus.url>
29                 <jacoco.line.coverage.limit>0.55</jacoco.line.coverage.limit>
30                 <spring.boot.version>1.5.22.RELEASE</spring.boot.version>
31         </properties>
32
33         <dependencyManagement>
34                 <dependencies>
35                       <dependency>
36                         <groupId>org.springframework.boot</groupId>
37                         <artifactId>spring-boot-starter-parent</artifactId>
38                         <version>${spring.boot.version}</version>
39                         <type>pom</type>
40                         <scope>import</scope>
41                       </dependency>
42                         <!-- Camel BOM -->
43                         <dependency>
44                                 <groupId>org.apache.camel</groupId>
45                                 <artifactId>camel-spring-boot-dependencies</artifactId>
46                                 <version>${camel-spring-boot.version}</version>
47                                 <type>pom</type>
48                                 <scope>import</scope>
49                         </dependency>
50
51                         <dependency>
52                                 <groupId>ch.qos.logback</groupId>
53                                 <artifactId>logback-classic</artifactId>
54                                 <version>1.2.3</version>
55                         </dependency>
56                 </dependencies>
57         </dependencyManagement>
58
59 <!--
60
61 some of the depedencies should probably have a scope of provided so they don't automatically become part of the final jar
62
63  -->
64
65         <dependencies>
66
67                 <!-- Spring dependencies -->
68                 <dependency>
69                         <groupId>org.springframework.boot</groupId>
70                         <artifactId>spring-boot-starter-web</artifactId>
71                         <exclusions>
72                         <exclusion>
73                                 <groupId>org.springframework.boot</groupId>
74                                 <artifactId>spring-boot-starter-tomcat</artifactId>
75                         </exclusion>
76                         </exclusions>
77                 </dependency>
78
79                 <dependency>
80                         <groupId>org.springframework.boot</groupId>
81                         <artifactId>spring-boot-starter-jetty</artifactId>
82                 </dependency>
83
84                 <dependency>
85                         <groupId>org.springframework.boot</groupId>
86                         <artifactId>spring-boot-starter-actuator</artifactId>
87                 </dependency>
88
89                 <dependency>
90                         <groupId>org.apache.camel</groupId>
91                         <artifactId>camel-restlet</artifactId>
92                         <exclusions>
93                                 <exclusion>
94                                         <groupId>commons-logging</groupId>
95                                         <artifactId>commons-logging</artifactId>
96                                 </exclusion>
97                         </exclusions>
98                 </dependency>
99
100                 <dependency>
101                         <groupId>org.apache.camel</groupId>
102                         <artifactId>camel-servlet</artifactId>
103                         <exclusions>
104                                 <exclusion>
105                                         <groupId>commons-logging</groupId>
106                                         <artifactId>commons-logging</artifactId>
107                                 </exclusion>
108                         </exclusions>
109                 </dependency>
110
111                 <dependency>
112                         <groupId>org.springframework.boot</groupId>
113                         <artifactId>spring-boot-starter-logging</artifactId>
114                         <exclusions>
115                                 <exclusion>
116                                 <groupId>ch.qos.logback</groupId>
117                                 <artifactId>logback-classic</artifactId>
118                                 </exclusion>
119                                 <exclusion>
120                                 <groupId>org.slf4j</groupId>
121                                 <artifactId>log4j-over-slf4j</artifactId>
122                                 </exclusion>
123                         </exclusions>
124                 </dependency>
125
126
127                 <!-- Camel BOM -->
128                 <dependency>
129                         <groupId>org.apache.camel</groupId>
130                         <artifactId>camel-spring-boot-dependencies</artifactId>
131                         <version>${camel-spring-boot.version}</version>
132                         <type>pom</type>
133                         <scope>import</scope>
134                 </dependency>
135
136                 <!-- https://mvnrepository.com/artifact/com.sun.xml.bind/jaxb-impl -->
137                 <!-- <dependency> <groupId>com.sun.xml.bind</groupId> <artifactId>jaxb-impl</artifactId>
138                         </dependency> <dependency> <groupId>com.sun.xml.bind</groupId> <artifactId>jaxb-core</artifactId>
139                         </dependency> -->
140
141                 <!-- Camel -->
142                 <dependency>
143                         <groupId>org.apache.camel</groupId>
144                         <artifactId>camel-spring-boot-starter</artifactId>
145                 </dependency>
146
147                 <!-- https://mvnrepository.com/artifact/org.apache.camel/camel-restlet -->
148                 <dependency>
149                         <groupId>org.apache.camel</groupId>
150                         <artifactId>camel-restlet</artifactId>
151                 </dependency>
152
153                 <dependency>
154                         <groupId>commons-io</groupId>
155                         <artifactId>commons-io</artifactId>
156                         </dependency>
157
158                 <!-- https://mvnrepository.com/artifact/org.eclipse.jetty/jetty-util -->
159                 <dependency>
160                         <groupId>org.eclipse.jetty</groupId>
161                         <artifactId>jetty-util</artifactId>
162                         <scope>provided</scope>
163                 </dependency>
164
165                 <dependency>
166                         <groupId>org.apache.camel</groupId>
167                         <artifactId>camel-servlet-starter</artifactId>
168                 </dependency>
169
170                 <dependency>
171                         <groupId>org.springframework.boot</groupId>
172                         <artifactId>spring-boot-starter-actuator</artifactId>
173                 </dependency>
174
175                 <!-- https://mvnrepository.com/artifact/commons-cli/commons-cli -->
176                 <dependency>
177                         <groupId>commons-cli</groupId>
178                         <artifactId>commons-cli</artifactId>
179                         <version>1.2</version>
180                 </dependency>
181
182                 <!-- <dependency> <groupId>org.apache.tomcat.embed</groupId> <artifactId>tomcat-embed-jasper</artifactId>
183                         </dependency> -->
184
185
186                 <!-- https://mvnrepository.com/artifact/org.apache.camel/camel-http-common -->
187                 <!-- <dependency> <groupId>org.apache.camel</groupId> <artifactId>camel-http</artifactId>
188                         <version>2.15.5</version> </dependency> <dependency> <groupId>abc.def</groupId>
189                         <artifactId>att-camel-dme2-servlet</artifactId> <version>2.15.5</version>
190                         <scope>system</scope> <systemPath>x:/222/att-camel-dme2-servlet-2.15.5.jar</systemPath>
191                         </dependency> <dependency> <groupId>abc.def</groupId> <artifactId>att-camel-static-content</artifactId>
192                         <version>2.11.2.1</version> <scope>system</scope> <systemPath>x:/222/att-camel-static-content-2.11.2.1.jar</systemPath>
193                         </dependency> -->
194
195                 <!-- Utility dependencies -->
196
197                 <dependency>
198                         <groupId>com.google.guava</groupId>
199                         <artifactId>guava</artifactId>
200                         <version>26.0-jre</version>
201                 </dependency>
202
203
204                 <dependency>
205                         <groupId>org.onap.aai.logging-service</groupId>
206                         <artifactId>common-logging</artifactId>
207                         <version>1.5.0</version>
208                 </dependency>
209
210
211                 <dependency>
212                         <groupId>org.dom4j</groupId>
213                         <artifactId>dom4j</artifactId>
214                         <scope>provided</scope>
215                         <version>2.1.1</version>
216                 </dependency>
217
218                 <dependency>
219                         <groupId>org.eclipse.persistence</groupId>
220                         <artifactId>eclipselink</artifactId>
221                         <version>2.7.7</version>
222                 </dependency>
223
224                 <dependency>
225                         <groupId>org.slf4j</groupId>
226                         <artifactId>slf4j-api</artifactId>
227                         <scope>provided</scope>
228                 </dependency>
229
230                 <dependency>
231                         <groupId>com.fasterxml.jackson.core</groupId>
232                         <artifactId>jackson-core</artifactId>
233                         <scope>provided</scope>
234                 </dependency>
235
236                 <dependency>
237                         <groupId>org.onap.aai.schema-service</groupId>
238                         <artifactId>aai-schema</artifactId>
239                         <version>${version.aai-schema}</version>
240                 </dependency>
241
242         <dependency>
243                     <groupId>org.onap.aai.aai-common</groupId>
244                     <artifactId>aai-schema-ingest</artifactId>
245                     <version>${version.aai.aai-schema-ingest}</version>
246                     <exclusions>
247                                 <exclusion>
248                                 <groupId>org.slf4j</groupId>
249                                 <artifactId>slf4j-log4j12</artifactId>
250                                 </exclusion>
251                     </exclusions>
252             </dependency>
253                                 
254                 <dependency>
255                         <groupId>org.onap.aai</groupId>
256                         <artifactId>rest-client</artifactId>
257                         <version>1.3.0</version>
258                 </dependency>
259
260                 <!-- https://mvnrepository.com/artifact/org.restlet.jee/org.restlet.ext.servlet -->
261                 <dependency>
262                         <groupId>org.restlet.jee</groupId>
263                         <artifactId>org.restlet.ext.servlet</artifactId>
264                         <version>2.1.1</version>
265                 </dependency>
266
267
268                 <dependency>
269                         <groupId>com.openpojo</groupId>
270                         <artifactId>openpojo</artifactId>
271                         <version>0.8.6</version>
272                 </dependency>
273
274                 <dependency>
275                         <groupId>com.google.code.gson</groupId>
276                         <artifactId>gson</artifactId>
277                         <scope>provided</scope>
278                 </dependency>
279
280
281                 <dependency>
282                         <groupId>org.json</groupId>
283                         <artifactId>json</artifactId>
284                         <scope>provided</scope>
285                 </dependency>
286
287                 <dependency>
288                         <groupId>com.fasterxml.jackson.core</groupId>
289                         <artifactId>jackson-databind</artifactId>
290                         <scope>provided</scope>
291                 </dependency>
292
293                 <dependency>
294                         <groupId>org.onap.portal.sdk</groupId>
295                         <artifactId>epsdk-fw</artifactId>
296                         <exclusions>
297                                 <exclusion>
298                                         <groupId>commons-logging</groupId>
299                                         <artifactId>commons-logging</artifactId>
300                                 </exclusion>
301                                 <exclusion>
302                                         <groupId>log4j</groupId>
303                                         <artifactId>log4j</artifactId>
304                                 </exclusion>
305                                 <exclusion>
306                                         <groupId>log4j</groupId>
307                                         <artifactId>apache-log4j-extras</artifactId>
308                                 </exclusion>
309                                 <exclusion>
310                                         <groupId>org.slf4j</groupId>
311                                         <artifactId>slf4j-log4j12</artifactId>
312                                 </exclusion>
313                         </exclusions>
314                 </dependency>
315
316                 <dependency>
317                         <groupId>jakarta.xml.bind</groupId>
318                         <artifactId>jakarta.xml.bind-api</artifactId>
319                         <version>2.3.3</version>
320                 </dependency>
321
322                 <dependency>
323                         <groupId>javax.json</groupId>
324                         <artifactId>javax.json-api</artifactId>
325                         <version>1.1</version>
326                 </dependency>
327
328                 <dependency>
329                         <groupId>org.glassfish</groupId>
330                         <artifactId>javax.json</artifactId>
331                         <version>1.1</version>
332                 </dependency>
333
334                 <!-- Test dependencies -->
335
336                 <dependency>
337                         <groupId>org.mockito</groupId>
338                         <artifactId>mockito-all</artifactId>
339                         <version>1.10.19</version>
340                         <scope>test</scope>
341                 </dependency>
342
343                 <dependency>
344                         <groupId>org.powermock</groupId>
345                         <artifactId>powermock-module-junit4</artifactId>
346                         <version>1.6.2</version>
347                         <scope>test</scope>
348                 </dependency>
349                 <dependency>
350                         <groupId>org.powermock</groupId>
351                         <artifactId>powermock-api-mockito</artifactId>
352                         <version>1.6.2</version>
353                         <scope>test</scope>
354                 </dependency>
355                 <dependency>
356                         <groupId>org.powermock</groupId>
357                         <artifactId>powermock-module-javaagent</artifactId>
358                         <version>1.6.2</version>
359                         <scope>test</scope>
360                 </dependency>
361                 <dependency>
362                         <groupId>org.powermock</groupId>
363                         <artifactId>powermock-module-junit4-rule-agent</artifactId>
364                         <version>1.6.2</version>
365                         <scope>test</scope>
366                 </dependency>
367         <dependency>
368                     <groupId>javax.inject</groupId>
369                     <artifactId>javax.inject</artifactId>
370                     <version>1</version>
371                         <scope>test</scope>
372                 </dependency>           
373
374                 <dependency>
375                         <groupId>org.hamcrest</groupId>
376                         <artifactId>hamcrest-library</artifactId>
377                         <scope>test</scope>
378                 </dependency>
379
380         </dependencies>
381
382         <build>
383
384                 <pluginManagement>
385                         <plugins>
386
387
388                                 <plugin>
389                                         <groupId>org.apache.maven.plugins</groupId>
390                                         <artifactId>maven-compiler-plugin</artifactId>
391                                         <configuration>
392                                                 <release>11</release>
393                                         </configuration>
394                                 </plugin>
395
396 <!--                            <plugin>
397                                         <groupId>org.apache.maven.plugins</groupId>
398                                         <artifactId>maven-resources-plugin</artifactId>
399                                         <version>2.7</version>
400                                         <executions>
401                                                 <execution>
402                                                         <id>copy-docker-file</id>
403                                                         <phase>package</phase>
404                                                         <goals>
405                                                                 <goal>copy-resources</goal>
406                                                         </goals>
407                                                         <configuration>
408                                                                 <outputDirectory>target</outputDirectory>
409                                                                 <overwrite>true</overwrite>
410                                                                 <resources>
411                                                                         <resource>
412                                                                                 <directory>${basedir}/src/main/docker</directory>
413                                                                                 <filtering>true</filtering>
414                                                                                 <includes>
415                                                                                         <include>**/*</include>
416                                                                                 </includes>
417                                                                         </resource>
418                                                                         <resource>
419                                                                                 <directory>${basedir}/src/main/scripts/</directory>
420                                                                         </resource>
421                                                                 </resources>
422                                                         </configuration>
423                                                 </execution>
424                                         </executions>
425                                 </plugin> -->
426
427                         </plugins>
428
429                 </pluginManagement>
430
431                 <plugins>
432 <!--                    <plugin>
433                                 <groupId>org.springframework.boot</groupId>
434                                 <artifactId>spring-boot-maven-plugin</artifactId>
435                         </plugin>
436  -->
437
438         <!--            <plugin>
439                                 <groupId>org.apache.maven.plugins</groupId>
440                                 <artifactId>maven-resources-plugin</artifactId>
441                                 <version>2.7</version>
442                                 <executions>
443                                         <execution>
444                                                 <id>copy-docker-file</id>
445                                                 <phase>package</phase>
446                                                 <goals>
447                                                         <goal>copy-resources</goal>
448                                                 </goals>
449                                                 <configuration>
450                                                         <outputDirectory>target</outputDirectory>
451                                                         <overwrite>true</overwrite>
452                                                         <resources>
453                                                                 <resource>
454                                                                         <directory>${basedir}/src/main/docker</directory>
455                                                                         <filtering>true</filtering>
456                                                                         <includes>
457                                                                                 <include>**/*</include>
458                                                                         </includes>
459                                                                 </resource>
460                                                                 <resource>
461                                                                         <directory>${basedir}/src/main/bin/</directory>
462                                                                 </resource>
463                                                         </resources>
464                                                 </configuration>
465                                         </execution>
466                                 </executions>
467                         </plugin> -->
468
469 <!--                    <plugin>
470                                 <groupId>org.apache.maven.plugins</groupId>
471                                 <artifactId>maven-dependency-plugin</artifactId>
472                                 <version>3.0.0</version>
473                                 <executions>
474                                         <execution>
475                                                 <id>copy-installed</id>
476                                                 <phase>install</phase>
477                                                 <goals>
478                                                         <goal>copy</goal>
479                                                 </goals>
480                                                 <configuration>
481                                                         <artifactItems>
482                                                                 <artifactItem>
483                                                                         <groupId>${frontEndGroupdId}</groupId>
484                                                                         <artifactId>${frontEndArtifactId}</artifactId>
485                                                                         <version>${frontEndVersion}</version>
486                                                                         <type>war</type>
487                                                                         <outputDirectory>${basedir}/target/</outputDirectory>
488                                                                         <destFileName>aai.war</destFileName>
489                                                                 </artifactItem>
490                                                         </artifactItems>
491                                                 </configuration>
492                                         </execution>
493                                 </executions>
494                         </plugin>
495  -->
496
497 <!--                    <plugin>
498                                 <groupId>org.codehaus.mojo</groupId>
499                                 <artifactId>cobertura-maven-plugin</artifactId>
500                                 <executions>
501                                         <execution>
502                                                 <phase />
503                                         </execution>
504                                 </executions>
505                         </plugin>
506  -->
507                         <plugin>
508                                 <groupId>org.apache.maven.plugins</groupId>
509                                 <artifactId>maven-site-plugin</artifactId>
510                                 <configuration>
511                                         <reportPlugins>
512                                                 <plugin>
513                                                         <groupId>org.apache.maven.plugins</groupId>
514                                                         <artifactId>maven-checkstyle-plugin</artifactId>
515                                                         <version>2.17</version>
516                                                         <reportSets>
517                                                                 <reportSet>
518                                                                         <reports>
519                                                                                 <report>checkstyle</report>
520                                                                         </reports>
521                                                                 </reportSet>
522                                                         </reportSets>
523                                                 </plugin>
524                                         </reportPlugins>
525                                 </configuration>
526                         </plugin>
527
528                 <!--    <plugin>
529                                 <groupId>org.apache.maven.plugins</groupId>
530                                 <artifactId>maven-resources-plugin</artifactId>
531                                 <version>2.7</version>
532                                 <executions>
533                                         <execution>
534                                                 <id>copy-docker-file</id>
535                                                 <phase>package</phase>
536                                                 <goals>
537                                                         <goal>copy-resources</goal>
538                                                 </goals>
539                                                 <configuration>
540                                                         <outputDirectory>target</outputDirectory>
541                                                         <overwrite>true</overwrite>
542                                                         <resources>
543                                                                 <resource>
544                                                                         <directory>${basedir}/src/main/docker</directory>
545                                                                         <filtering>true</filtering>
546                                                                         <includes>
547                                                                                 <include>**/*</include>
548                                                                         </includes>
549                                                                 </resource>
550                                                                 <resource>
551                                                                         <directory>${basedir}/src/main/scripts/</directory>
552                                                                 </resource>
553                                                         </resources>
554                                                 </configuration>
555                                         </execution>
556                                 </executions>
557                         </plugin> -->
558
559 <!--                    <plugin>
560                                 <groupId>com.spotify</groupId>
561                                 <artifactId>docker-maven-plugin</artifactId>
562                                 <version>0.4.11</version>
563                                 <configuration>
564                                         <verbose>true</verbose>
565                                         <serverId>docker-hub</serverId>
566                                         <imageName>${docker.push.registry}/onap/${project.artifactId}</imageName>
567                                         <dockerDirectory>${docker.location}</dockerDirectory>
568                                         <imageTags>
569                                                 <imageTag>latest</imageTag>
570                                         </imageTags>
571                                         <forceTags>true</forceTags>
572                                 </configuration>
573                         </plugin> -->
574                         <!-- license plugin -->
575 <!--                    <plugin>
576                                 <groupId>com.mycila</groupId>
577                                 <artifactId>license-maven-plugin</artifactId>
578                                 <version>3.0</version>
579                                 <configuration>
580                                         <header>LICENSE</header>
581                                         <includes>
582                                                 <include>src/main/java/**</include>
583                                         </includes>
584                                 </configuration>
585                                 <executions>
586                                         <execution>
587                                                 <goals>
588                                                         <goal>format</goal>
589                                                 </goals>
590                                                 <phase>process-sources</phase>
591                                         </execution>
592                                 </executions>
593                         </plugin>
594  -->
595 <plugin>
596             <groupId>org.apache.maven.plugins</groupId>
597                     <artifactId>maven-deploy-plugin</artifactId>
598                     <version>2.8.2</version>
599                 </plugin>
600               </plugins>
601 </build>
602
603         
604     <distributionManagement>
605        <repository>
606           <id>ecomp-releases</id>
607           <name>ECOMP Release Repository</name>
608           <url>${onap.nexus.url}/content/repositories/releases/</url>
609        </repository>
610        <snapshotRepository>
611           <id>ecomp-snapshots</id>
612           <name>ECOMP Snapshot Repository</name>
613           <url>${onap.nexus.url}/content/repositories/snapshots/</url>
614       </snapshotRepository>
615       <site>
616         <id>ecomp-site</id>
617         <url>dav:${onap.nexus.url}${sitePath}</url>
618       </site>
619    </distributionManagement>
620
621     <repositories>
622         <repository>
623             <id>central</id>
624             <name>Maven 2 repository 2</name>
625             <url>http://repo2.maven.org/maven2/</url>
626         </repository>
627         <repository>
628             <id>ecomp-releases</id>
629             <name>ECOMP Release Repository</name>
630             <url>${onap.nexus.url}/content/repositories/releases/</url>
631         </repository>
632         <repository>
633             <id>ecomp-staging</id>
634             <name>ECOMP Staging Repository</name>
635             <url>${onap.nexus.url}/content/repositories/staging/</url>
636         </repository>
637         <repository>
638             <id>ecomp-snapshots</id>
639             <name>ECOMP Snapshot Repository</name>
640             <url>${onap.nexus.url}/content/repositories/snapshots/</url>
641         </repository>
642     </repositories>
643
644
645
646 </project>