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