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