Upgrade spring/camel versions
[clamp.git] / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3   ============LICENSE_START=======================================================
4   ONAP CLAMP
5   ================================================================================
6   Copyright (C) 2017-2018 AT&T Intellectual Property. All rights
7                               reserved.
8   ================================================================================
9   Licensed under the Apache License, Version 2.0 (the "License");
10   you may not use this file except in compliance with the License.
11   You may obtain a copy of the License at
12
13   http://www.apache.org/licenses/LICENSE-2.0
14
15   Unless required by applicable law or agreed to in writing, software
16   distributed under the License is distributed on an "AS IS" BASIS,
17   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18   See the License for the specific language governing permissions and
19   limitations under the License.
20   ============LICENSE_END============================================
21   ===================================================================
22 -->
23
24 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
25                 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
26                 <modelVersion>4.0.0</modelVersion>
27                 <groupId>org.onap.clamp</groupId>
28                 <artifactId>clds</artifactId>
29                 <version>3.0.0-SNAPSHOT</version>
30                 <name>clamp</name>
31
32                 <parent>
33                                 <groupId>org.onap.oparent</groupId>
34                                 <artifactId>oparent</artifactId>
35                                 <version>1.1.0</version>
36                 </parent>
37
38                 <description>
39            This project build the ONAP CLAMP JAR that contains CLAMP back-end code and its UI part.
40
41            By Default "mvn clean install" command will execute also the unit tests
42            and the integration tests. The integration tests require a docker engine running.
43
44            If you want to skip the integration test you can by doing:
45            "mvn clean install -DskipITs=true"
46
47            For Spring it's possible to specify the application.properties location
48            "mvn clean install -Dspring.config.location=classpath:application-test.properties"
49
50            The application.properties contains the location of the CLAMP parameters files:
51                                 - org.onap.clamp.config.files.cldsUsers=classpath:/clds/clds-users.json
52                                 - org.onap.clamp.config.files.globalClds=classpath:/clds/globalClds.properties
53
54                 </description>
55
56                 <properties>
57                                 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
58                                 <clamp.project.version>${project.version}</clamp.project.version>
59                                 <clamp.build.timestamp>${maven.build.timestamp}</clamp.build.timestamp>
60                                 <maven.compiler.source>1.8</maven.compiler.source>
61                                 <maven.compiler.target>1.8</maven.compiler.target>
62                                 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
63                                 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
64
65                                 <docker.mariadb.port.host>3306</docker.mariadb.port.host>
66                                 <docker.http-cache.port.host>8085</docker.http-cache.port.host>
67                                 <project.scm.id>git-server</project.scm.id>
68                                 <java.version>1.8</java.version>
69
70                                 <swagger.jaxrs2.version>2.0.0-rc4</swagger.jaxrs2.version>
71                                 <eelf.core.version>1.0.0</eelf.core.version>
72                                 <camel.version>2.22.0</camel.version>
73                                 <springboot.version>2.0.2.RELEASE</springboot.version>
74
75                                 <sonar.language>java</sonar.language>
76                                 <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
77                                 <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
78                                 <sonar.jacoco.reportPath>${project.build.directory}/coverage-reports/jacoco.exec</sonar.jacoco.reportPath>
79                                 <sonar.jacoco.itReportPath>${project.build.directory}/coverage-reports/jacoco-it.exec</sonar.jacoco.itReportPath>
80                                 <sonar.jacoco.reportMissing.force.zero>true</sonar.jacoco.reportMissing.force.zero>
81                                 <sonar.projectVersion>${project.version}</sonar.projectVersion>
82
83                                 <docker.push.registry>localhost:5000</docker.push.registry>
84                                 <docker.pull.registry>nexus3.onap.org:10001</docker.pull.registry>
85                                 <docker.skip.build>true</docker.skip.build>
86                                 <docker.skip.push>true</docker.skip.push>
87                                 <docker.skip.tag>true</docker.skip.tag>
88                                 <skip.staging.artifacts>false</skip.staging.artifacts>
89                                 <python.http.proxy.param></python.http.proxy.param>
90                                 <tomcat.version>8.5.32</tomcat.version>
91                 </properties>
92
93                 <profiles>
94                                 <profile>
95                                                 <id>without-test</id>
96                                                 <activation>
97                                                         <property>
98                                                                 <name>maven.test.skip</name>
99                                                                 <value>true</value>
100                                                         </property>
101                                                 </activation>
102                                                 <properties>
103                                                         <docker.skip.run>true</docker.skip.run>
104                                                         <docker.skip>true</docker.skip>
105                                                 </properties>
106                                 </profile>
107                                 <profile>
108                                                 <id>without-IT-only</id>
109                                                 <activation>
110                                                         <property>
111                                                                 <name>skipITs</name>
112                                                                 <value>true</value>
113                                                         </property>
114                                                 </activation>
115                                                 <properties>
116                                                         <docker.skip.run>true</docker.skip.run>
117                                                         <docker.skip>true</docker.skip>
118                                                 </properties>
119                                 </profile>
120                                 <profile>
121                                                 <id>without-IT-only2</id>
122                                                 <activation>
123                                                         <property>
124                                                                 <name>skipTests</name>
125                                                                 <value>true</value>
126                                                         </property>
127                                                 </activation>
128                                                 <properties>
129                                                         <docker.skip.run>true</docker.skip.run>
130                                                         <docker.skip>true</docker.skip>
131                                                 </properties>
132                                 </profile>
133                                 <profile>
134                                                 <id>docker</id>
135                                                 <properties>
136                                                                 <skip.staging.artifacts>true</skip.staging.artifacts>
137                                                                 <docker.skip.build>false</docker.skip.build>
138                                                                 <docker.skip.tag>false</docker.skip.tag>
139                                                                 <docker.skip.push>false</docker.skip.push>
140                                                                 <docker.skip>false</docker.skip>
141                                                 </properties>
142                                 </profile>
143                 </profiles>
144
145                 <distributionManagement>
146                                 <repository>
147                                                 <id>ecomp-releases</id>
148                                                 <name>Clamp Release Repository</name>
149                                                 <url>https://nexus.onap.org/content/repositories/releases/</url>
150                                 </repository>
151                                 <snapshotRepository>
152                                                 <id>ecomp-snapshots</id>
153                                                 <name>Clamp Snapshot Repository</name>
154                                                 <url>https://nexus.onap.org/content/repositories/snapshots/</url>
155                                 </snapshotRepository>
156                                 <site>
157                                                 <id>ecomp-site</id>
158                                                 <url>dav:https://nexus.onap.org/content/sites/site/org/onap/clamp/${project.version}</url>
159                                 </site>
160                 </distributionManagement>
161
162                 <repositories>
163                                 <repository>
164                                                 <id>central</id>
165                                                 <name>Maven 2 repository 2</name>
166                                                 <url>http://repo2.maven.org/maven2/</url>
167                                 </repository>
168                                 <repository>
169                                                 <id>ecomp-releases</id>
170                                                 <name>ONAP Release Repository</name>
171                                                 <url>https://nexus.onap.org/content/repositories/releases/</url>
172                                 </repository>
173                                 <repository>
174                                                 <id>ecomp-staging</id>
175                                                 <name>ONAP Staging Repository</name>
176                                                 <url>https://nexus.onap.org/content/repositories/staging/</url>
177                                 </repository>
178                                 <repository>
179                                                 <id>ecomp-snapshots</id>
180                                                 <name>ONAP Snapshot Repository</name>
181                                                 <url>https://nexus.onap.org/content/repositories/snapshots/</url>
182                                                 <snapshots>
183                                                                 <enabled>true</enabled>
184                                                 </snapshots>
185                                                 <releases>
186                                                                 <enabled>false</enabled>
187                                                 </releases>
188                                 </repository>
189                                 <repository>
190                                                 <id>spring-repo</id>
191                                                 <name>Spring repo</name>
192                                                 <url>https://artifacts.alfresco.com/nexus/content/repositories/public/</url>
193                                 </repository>
194                                 <repository>
195                                                 <id>repository.jboss.org-public</id>
196                                                 <name>JBoss.org Maven repository</name>
197                                                 <url>https://repository.jboss.org/nexus/content/groups/public</url>
198                                 </repository>
199                                 <repository>
200                                                 <id>jcentral</id>
201                                                 <name>bintray</name>
202                                                 <url>http://jcenter.bintray.com</url>
203                                                 <snapshots>
204                                                                 <enabled>false</enabled>
205                                                 </snapshots>
206                                 </repository>
207                 </repositories>
208
209                 <dependencyManagement>
210                                 <dependencies>
211                                                 <!-- Spring Boot BOM -->
212                                                 <dependency>
213                                                                 <groupId>org.springframework.boot</groupId>
214                                                                 <artifactId>spring-boot-dependencies</artifactId>
215                                                                 <version>${springboot.version}</version>
216                                                                 <type>pom</type>
217                                                                 <scope>import</scope>
218                                                 </dependency>
219                                                 <!-- Camel BOM -->
220                                                 <dependency>
221                                                                 <groupId>org.apache.camel</groupId>
222                                                                 <artifactId>camel-spring-boot-dependencies</artifactId>
223                                                                 <version>${camel.version}</version>
224                                                                 <type>pom</type>
225                                                                 <scope>import</scope>
226                                                 </dependency>
227                                 </dependencies>
228                 </dependencyManagement>
229
230                 <dependencies>
231                                 <dependency>
232                                                 <groupId>com.att.eelf</groupId>
233                                                 <artifactId>eelf-core</artifactId>
234                                                 <version>${eelf.core.version}</version>
235                                 </dependency>
236                                 <dependency>
237                                                 <groupId>org.apache.tomcat.embed</groupId>
238                                                 <artifactId>tomcat-embed-core</artifactId>
239                                                 <version>${tomcat.version}</version>
240                                 </dependency>
241                                 <dependency>
242                                                 <groupId>org.apache.tomcat.embed</groupId>
243                                                 <artifactId>tomcat-embed-el</artifactId>
244                                                 <version>${tomcat.version}</version>
245                                 </dependency>
246                                 <dependency>
247                                                 <groupId>org.apache.tomcat.embed</groupId>
248                                                 <artifactId>tomcat-embed-websocket</artifactId>
249                                                 <version>${tomcat.version}</version>
250                                 </dependency>
251                                 <dependency>
252                                                 <groupId>org.apache.tomcat</groupId>
253                                                 <artifactId>tomcat-annotations-api</artifactId>
254                                                 <version>${tomcat.version}</version>
255                                 </dependency>
256                                 <!-- For CAMEL -->
257                                 <dependency>
258                                                 <groupId>org.apache.camel</groupId>
259                                                 <artifactId>camel-spring-boot-starter</artifactId>
260                                 </dependency>
261                                 <dependency>
262                                                 <groupId>org.apache.camel</groupId>
263                                                 <artifactId>camel-jaxb-starter</artifactId>
264                                 </dependency>
265                                 <dependency>
266                                                 <groupId>org.apache.camel</groupId>
267                                                 <artifactId>camel-servlet-starter</artifactId>
268                                 </dependency>
269                                 <dependency>
270                                         <groupId>org.apache.camel</groupId> 
271                                         <artifactId>camel-jackson</artifactId>
272                                 </dependency>
273                                 <dependency>
274                                                 <groupId>javax.xml.bind</groupId>
275                                                 <artifactId>jaxb-api</artifactId>
276                                                 <version>2.3.0</version>
277                                 </dependency>
278                                 <dependency>
279                                         <groupId>org.glassfish.jersey.core</groupId>
280                                         <artifactId>jersey-common</artifactId>
281                                         <version>2.27</version>
282                                 </dependency>
283                                 <!-- Spring famework -->
284                                 <dependency>
285                                                 <groupId>org.springframework.boot</groupId>
286                                                 <artifactId>spring-boot-starter-web</artifactId>
287                                 </dependency>
288                                 <dependency>
289                                                 <groupId>org.springframework.boot</groupId>
290                                                 <artifactId>spring-boot-starter-tomcat</artifactId>
291                                 </dependency>
292                                 <dependency>
293                                                 <groupId>org.springframework</groupId>
294                                                 <artifactId>spring-jdbc</artifactId>
295                                 </dependency>
296                                 <dependency>
297                                                 <groupId>org.springframework.boot</groupId>
298                                                 <artifactId>spring-boot-starter-security</artifactId>
299                                 </dependency>
300                                 <dependency>
301                                                 <groupId>org.springframework.boot</groupId>
302                                                 <artifactId>spring-boot-starter-actuator</artifactId>
303                                 </dependency>
304                                 <dependency>
305                                                 <groupId>org.springframework.boot</groupId>
306                                         <artifactId>spring-boot-autoconfigure</artifactId>
307                                 </dependency>
308                                 <dependency>
309                                                 <groupId>org.springframework.boot</groupId>
310                                                 <artifactId>spring-boot-starter-test</artifactId>
311                                                 <scope>test</scope>
312                                                 <exclusions>
313                                                                 <exclusion>
314                                                                                 <groupId>com.vaadin.external.google</groupId>
315                                                                                 <artifactId>android-json</artifactId>
316                                                                 </exclusion>
317                                                 </exclusions>
318                                 </dependency>
319                                 <!-- Others dependencies -->
320                                 <dependency>
321                                         <groupId>org.onap.aaf.authz</groupId>
322                                         <artifactId>aaf-cadi-aaf</artifactId>
323                                         <version>2.1.1</version>
324                                         <exclusions>
325                                                 <exclusion>
326                                                         <groupId>javax.servlet</groupId>
327                                                         <artifactId>servlet-api</artifactId>
328                                                 </exclusion>
329                                         </exclusions>
330                                 </dependency>
331                                 <dependency>
332                                                 <groupId>ch.qos.logback</groupId>
333                                                 <artifactId>logback-core</artifactId>
334                                                 <version>1.2.3</version>
335                                 </dependency>
336                                 <dependency>
337                                                 <groupId>ch.qos.logback</groupId>
338                                                 <artifactId>logback-classic</artifactId>
339                                                 <version>1.2.3</version>
340                                 </dependency>
341                                 <dependency>
342                                                 <groupId>commons-dbcp</groupId>
343                                                 <artifactId>commons-dbcp</artifactId>
344                                                 <version>1.4</version>
345                                 </dependency>
346                                 <dependency>
347                                                 <groupId>commons-io</groupId>
348                                                 <artifactId>commons-io</artifactId>
349                                                 <version>2.6</version>
350                                 </dependency>
351                                 <dependency>
352                                                 <groupId>com.googlecode.json-simple</groupId>
353                                                 <artifactId>json-simple</artifactId>
354                                 </dependency>
355                                 <dependency>
356                                                 <groupId>org.apache.commons</groupId>
357                                                 <artifactId>commons-vfs2</artifactId>
358                                                 <version>2.2</version>
359                                 </dependency>
360                                 <dependency>
361                                                 <groupId>joda-time</groupId>
362                                                 <artifactId>joda-time</artifactId>
363                                 </dependency>
364                                 <dependency>
365                                                 <groupId>org.slf4j</groupId>
366                                                 <artifactId>slf4j-api</artifactId>
367                                 </dependency>
368                                 <dependency>
369                                                 <groupId>javax.ws.rs</groupId>
370                                                 <artifactId>javax.ws.rs-api</artifactId>
371                                                 <version>2.0</version>
372                                 </dependency>
373                                 <dependency>
374                                                 <groupId>junit</groupId>
375                                                 <artifactId>junit</artifactId>
376                                 </dependency>
377                                 <dependency>
378                                                 <groupId>javax.transaction</groupId>
379                                                 <artifactId>jta</artifactId>
380                                                 <version>1.1</version>
381                                 </dependency>
382                                 <dependency>
383                                                 <groupId>javax.persistence</groupId>
384                                                 <artifactId>persistence-api</artifactId>
385                                                 <version>1.0.2</version>
386                                 </dependency>
387                                 <dependency>
388                                                 <groupId>org.onap.policy.engine</groupId>
389                                                 <artifactId>PolicyEngineAPI</artifactId>
390                                                 <version>1.2.0</version>
391                                                 <exclusions>
392                                                                 <exclusion>
393                                                                                 <groupId>com.google.guava</groupId>
394                                                                                 <artifactId>guava</artifactId>
395                                                                 </exclusion>
396                                                                 <exclusion>
397                                                                                 <artifactId>log4j</artifactId>
398                                                                                 <groupId>log4j</groupId>
399                                                                 </exclusion>
400                                                                 <exclusion>
401                                                                                 <groupId>org.slf4j</groupId>
402                                                                                 <artifactId>slf4j-log4j12</artifactId>
403                                                                 </exclusion>
404                                                                 <exclusion>
405                                                                                 <artifactId>apache-log4j-extras</artifactId>
406                                                                                 <groupId>log4j</groupId>
407                                                                 </exclusion>
408                                                                 <exclusion>
409                                                                                 <groupId>mysql</groupId>
410                                                                                 <artifactId>mysql-connector-java</artifactId>
411                                                                 </exclusion>
412                                                                 <exclusion>
413                                                                                 <groupId>commons-io</groupId>
414                                                                                 <artifactId>commons-io</artifactId>
415                                                                 </exclusion>
416                                                                 <exclusion>
417                                                                                 <artifactId>grizzly-http-server</artifactId>
418                                                                                 <groupId>org.glassfish.grizzly</groupId>
419                                                                 </exclusion>
420                                                                 <exclusion>
421                                                                                 <groupId>org.onap.dmaap.messagerouter.dmaapclient</groupId>
422                                                                                 <artifactId>dmaapClient</artifactId>
423                                                                 </exclusion>
424                                                                 <exclusion>
425                                                                                 <groupId>org.onap.policy.common</groupId>
426                                                                                 <artifactId>integrity-monitor</artifactId>
427                                                                 </exclusion>
428                                                                 <exclusion>
429                                                                                 <groupId>org.onap.policy.common</groupId>
430                                                                                 <artifactId>integrity-audit</artifactId>
431                                                                 </exclusion>
432                                                                 <exclusion>
433                                                                                 <groupId>org.onap.aaf.cadi</groupId>
434                                                                                 <artifactId>cadi-aaf</artifactId>
435                                                                 </exclusion>
436                                                                 <exclusion>
437                                                                                 <groupId>javax.jms</groupId>
438                                                                                 <artifactId>jms</artifactId>
439                                                                 </exclusion>
440                                                 </exclusions>
441                                 </dependency>
442                                 <dependency>
443                                                 <groupId>org.onap.policy.common</groupId>
444                                                 <artifactId>ONAP-Logging</artifactId>
445                                                 <version>1.1.3</version>
446                                                 <exclusions>
447                                                                 <exclusion>
448                                                                                 <artifactId>log4j</artifactId>
449                                                                                 <groupId>log4j</groupId>
450                                                                 </exclusion>
451                                                                 <exclusion>
452                                                                                 <groupId>org.slf4j</groupId>
453                                                                                 <artifactId>slf4j-log4j12</artifactId>
454                                                                 </exclusion>
455                                                                 <exclusion>
456                                                                                 <artifactId>apache-log4j-extras</artifactId>
457                                                                                 <groupId>log4j</groupId>
458                                                                 </exclusion>
459                                                 </exclusions>
460                                 </dependency>
461                                 <dependency>
462                                                 <groupId>org.onap.policy.drools-applications</groupId>
463                                                 <artifactId>policy-yaml</artifactId>
464                                                 <version>1.1.3</version>
465                                                 <exclusions>
466                                                                 <exclusion>
467                                                                                 <artifactId>log4j</artifactId>
468                                                                                 <groupId>log4j</groupId>
469                                                                 </exclusion>
470                                                                 <exclusion>
471                                                                                 <groupId>org.slf4j</groupId>
472                                                                                 <artifactId>slf4j-log4j12</artifactId>
473                                                                 </exclusion>
474                                                                 <exclusion>
475                                                                                 <artifactId>apache-log4j-extras</artifactId>
476                                                                                 <groupId>log4j</groupId>
477                                                                 </exclusion>
478                                                 </exclusions>
479                                 </dependency>
480                                 <dependency>
481                                                 <groupId>org.onap.policy.drools-applications</groupId>
482                                                 <artifactId>sdc</artifactId>
483                                                 <version>1.1.3</version>
484                                                 <exclusions>
485                                                                 <exclusion>
486                                                                                 <artifactId>log4j</artifactId>
487                                                                                 <groupId>log4j</groupId>
488                                                                 </exclusion>
489                                                                 <exclusion>
490                                                                                 <groupId>org.slf4j</groupId>
491                                                                                 <artifactId>slf4j-log4j12</artifactId>
492                                                                 </exclusion>
493                                                                 <exclusion>
494                                                                                 <artifactId>apache-log4j-extras</artifactId>
495                                                                                 <groupId>log4j</groupId>
496                                                                 </exclusion>
497                                                 </exclusions>
498                                 </dependency>
499                                 <dependency>
500                                                 <groupId>org.onap.policy.drools-applications</groupId>
501                                                 <artifactId>aai</artifactId>
502                                                 <version>1.1.3</version>
503                                                 <exclusions>
504                                                                 <exclusion>
505                                                                                 <artifactId>log4j</artifactId>
506                                                                                 <groupId>log4j</groupId>
507                                                                 </exclusion>
508                                                                 <exclusion>
509                                                                                 <groupId>org.slf4j</groupId>
510                                                                                 <artifactId>slf4j-log4j12</artifactId>
511                                                                 </exclusion>
512                                                                 <exclusion>
513                                                                                 <artifactId>apache-log4j-extras</artifactId>
514                                                                                 <groupId>log4j</groupId>
515                                                                 </exclusion>
516                                                 </exclusions>
517                                 </dependency>
518                                 <dependency>
519                                                 <groupId>org.apache.commons</groupId>
520                                                 <artifactId>commons-csv</artifactId>
521                                                 <version>1.3</version>
522                                 </dependency>
523                                 <!-- Other dependencies to fix nexus IQ reported vulnerabilities -->
524                                 <dependency>
525                                                 <groupId>org.codehaus.plexus</groupId>
526                                                 <artifactId>plexus-utils</artifactId>
527                                                 <version>3.0.24</version>
528                                 </dependency>
529                                 <dependency>
530                                                 <groupId>commons-fileupload</groupId>
531                                                 <artifactId>commons-fileupload</artifactId>
532                                                 <version>1.3.3</version>
533                                 </dependency>
534                                 <dependency>
535                                                 <groupId>org.jboss.spec.javax.ws.rs</groupId>
536                                                 <artifactId>jboss-jaxrs-api_2.0_spec</artifactId>
537                                                 <version>1.0.1.Final</version>
538                                 </dependency>
539                                 <dependency>
540                                                 <groupId>com.google.guava</groupId>
541                                                 <artifactId>guava</artifactId>
542                                                 <version>25.1-jre</version>
543                                 </dependency>
544                                 <!-- Remove the MYSQL connector and replace it by Mariadb -->
545                                 <dependency>
546                                                 <groupId>org.mariadb.jdbc</groupId>
547                                                 <artifactId>mariadb-java-client</artifactId>
548                                                 <version>2.2.1</version>
549                                 </dependency>
550                                 <!-- For SDC Controller -->
551                                 <dependency>
552                                                 <groupId>org.onap.sdc.sdc-distribution-client</groupId>
553                                                 <artifactId>sdc-distribution-client</artifactId>
554                                                 <version>1.3.0</version>
555                                 </dependency>
556                                 <dependency>
557                                                 <groupId>org.onap.sdc.sdc-tosca</groupId>
558                                                 <artifactId>sdc-tosca</artifactId>
559                                                 <version>1.3.0</version>
560                                 </dependency>
561                                 <!-- TESTING -->
562                                 <dependency>
563                                                 <groupId>org.assertj</groupId>
564                                                 <artifactId>assertj-core</artifactId>
565                                                 <version>3.10.0</version>
566                                                 <scope>test</scope>
567                                 </dependency>
568                                 <dependency>
569                                         <groupId>org.mockito</groupId>
570                                         <artifactId>mockito-core</artifactId>
571                                         <version>1.10.19</version>
572                                         <scope>test</scope>
573                                 </dependency>
574                 </dependencies>
575                 <pluginRepositories>
576                                 <pluginRepository>
577                                                 <snapshots>
578                                                                 <enabled>false</enabled>
579                                                 </snapshots>
580                                                 <id>jcenter-releases</id>
581                                                 <name>jcenter</name>
582                                                 <url>http://jcenter.bintray.com</url>
583                                 </pluginRepository>
584                 </pluginRepositories>
585                 <build>
586                                 <finalName>clamp</finalName>
587
588                                 <testResources>
589                                                 <testResource>
590                                                                 <directory>src/test/resources</directory>
591                                                                 <excludes>
592                                                                                 <exclude>**/*.jks</exclude>
593                                                                                 <exclude>**/*.csar</exclude>
594                                                                 </excludes>
595                                                                 <filtering>true</filtering>
596                                                 </testResource>
597                                                 <testResource>
598                                                                 <directory>src/test/resources/https</directory>
599                                                                 <includes>
600                                                                                 <include>**.jks</include>
601                                                                 </includes>
602                                                                 <filtering>false</filtering>
603                                                                 <targetPath>https</targetPath>
604                                                 </testResource>
605                                                 <testResource>
606                                                                 <directory>src/test/resources/example/sdc</directory>
607                                                                 <includes>
608                                                                                 <include>**.csar</include>
609                                                                 </includes>
610                                                                 <filtering>false</filtering>
611                                                                 <targetPath>example/sdc</targetPath>
612                                                 </testResource>
613                                 </testResources>
614                                 <resources>
615                                                 <resource>
616                                                                 <directory>src/main/resources</directory>
617                                                                 <filtering>true</filtering>
618                                                 </resource>
619                                                 <resource>
620                                                                 <directory>src/main/docker</directory>
621                                                                 <includes>
622                                                                                 <include>**/*</include>
623                                                                 </includes>
624                                                                 <filtering>true</filtering>
625                                                 </resource>
626                                 </resources>
627
628                                 <plugins>
629                                                 <plugin>
630                                                                 <groupId>org.codehaus.groovy.maven</groupId>
631                                                                 <artifactId>gmaven-plugin</artifactId>
632                                                                 <version>1.0</version>
633                                                                 <executions>
634                                                                                 <execution>
635                                                                                                 <phase>validate</phase>
636                                                                                                 <goals>
637                                                                                                                 <goal>execute</goal>
638                                                                                                 </goals>
639                                                                                                 <configuration>
640                                                                                                                 <source>${project.basedir}/src/main/script/TagVersion.groovy</source>
641                                                                                                 </configuration>
642                                                                                 </execution>
643                                                                 </executions>
644                                                 </plugin>
645                                                 <plugin>
646                                                                 <groupId>org.apache.maven.plugins</groupId>
647                                                                 <artifactId>maven-jar-plugin</artifactId>
648                                                                 <version>3.0.2</version>
649                                                                 <executions>
650                                                                                 <execution>
651                                                                                                 <id>jar-with-only-classes</id>
652                                                                                                 <phase>package</phase>
653                                                                                                 <goals>
654                                                                                                                 <goal>jar</goal>
655                                                                                                 </goals>
656                                                                                                 <configuration>
657                                                                                                                 <classifier>classes</classifier>
658                                                                                                                 <includes>
659                                                                                                                                 <include>org/**</include>
660                                                                                                                 </includes>
661                                                                                                 </configuration>
662                                                                                 </execution>
663                                                                 </executions>
664                                                 </plugin>
665                                                 <plugin>
666                                                                 <groupId>org.codehaus.mojo</groupId>
667                                                                 <artifactId>build-helper-maven-plugin</artifactId>
668                                                                 <version>3.0.0</version>
669                                                                 <executions>
670                                                                                 <execution>
671                                                                                                 <goals>
672                                                                                                                 <goal>attach-artifact</goal>
673                                                                                                 </goals>
674                                                                                                 <phase>package</phase>
675                                                                                                 <configuration>
676                                                                                                                 <artifacts>
677                                                                                                                                 <artifact>
678                                                                                                                                                 <file>${project.build.directory}/clamp-classes.jar</file>
679                                                                                                                                                 <type>jar</type>
680                                                                                                                                                 <classifier>classes</classifier>
681                                                                                                                                 </artifact>
682                                                                                                                 </artifacts>
683                                                                                                 </configuration>
684                                                                                 </execution>
685                                                                 </executions>
686                                                 </plugin>
687
688                                                 <plugin>
689                                                                 <groupId>org.springframework.boot</groupId>
690                                                                 <artifactId>spring-boot-maven-plugin</artifactId>
691                                                                 <!-- Temporary fix -->
692                                                                 <version>1.5.13.RELEASE</version>
693                                                                 <!-- <version>${springboot.version}</version> -->
694                                                                 <executions>
695                                                                                 <execution>
696                                                                                                 <goals>
697                                                                                                                 <goal>repackage</goal>
698                                                                                                 </goals>
699                                                                                                 <phase>package</phase>
700                                                                                 </execution>
701                                                                 </executions>
702                                                 </plugin>
703                                                 <plugin>
704                                                                 <groupId>org.sonatype.plugins</groupId>
705                                                                 <artifactId>nexus-staging-maven-plugin</artifactId>
706                                                                 <version>1.6.7</version>
707                                                                 <extensions>true</extensions>
708                                                                 <configuration>
709                                                                                 <nexusUrl>https://nexus.onap.org</nexusUrl>
710                                                                                 <stagingProfileId>176c31dfe190a</stagingProfileId>
711                                                                                 <serverId>ecomp-staging</serverId>
712                                                                                 <skipNexusStagingDeployMojo>${skip.staging.artifacts}</skipNexusStagingDeployMojo>
713                                                                 </configuration>
714                                                 </plugin>
715
716                                                 <plugin>
717                                                                 <groupId>org.apache.maven.plugins</groupId>
718                                                                 <artifactId>maven-surefire-plugin</artifactId>
719                                                                 <version>2.19.1</version>
720                                                                 <configuration>
721                                                                                 <forkCount>1</forkCount>
722                                                                                 <reuseForks>false</reuseForks>
723                                                                 </configuration>
724                                                 </plugin>
725
726                                                 <plugin>
727                                                                 <groupId>org.apache.maven.plugins</groupId>
728                                                                 <artifactId>maven-failsafe-plugin</artifactId>
729                                                                 <version>2.17</version>
730
731                                                                 <executions>
732                                                                                 <execution>
733                                                                                                 <id>integration-tests</id>
734                                                                                                 <goals>
735                                                                                                                 <goal>integration-test</goal>
736                                                                                                                 <goal>verify</goal>
737                                                                                                 </goals>
738                                                                                                 <configuration>
739                                                                                                                 <includes>
740                                                                                                                                 <include>**/*ItCase.java</include>
741                                                                                                                 </includes>
742                                                                                                                 <forkCount>1</forkCount>
743                                                                                                                 <reuseForks>false</reuseForks>
744                                                                                                 </configuration>
745                                                                                 </execution>
746                                                                 </executions>
747
748                                                 </plugin>
749                                                 <plugin>
750                                                                 <groupId>io.fabric8</groupId>
751                                                                 <artifactId>docker-maven-plugin</artifactId>
752                                                                 <version>0.26.0</version>
753                                                                 <configuration>
754                                                                                 <verbose>true</verbose>
755                                                                                 <apiVersion>1.23</apiVersion>
756                                                                                 <images>
757                                                                                                 <image>
758                                                                                                                 <name>library/mariadb:10.1.11</name>
759                                                                                                                 <alias>mariadb</alias>
760                                                                                                                 <run>
761                                                                                                                                 <env>
762                                                                                                                                                 <MYSQL_ROOT_PASSWORD>strong_pitchou</MYSQL_ROOT_PASSWORD>
763                                                                                                                                 </env>
764                                                                                                                                 <hostname>mariadb</hostname>
765                                                                                                                                 <volumes>
766                                                                                                                                                 <bind>
767                                                                                                                                                                 <volume>${project.basedir}/extra/sql/:/docker-entrypoint-initdb.d</volume>
768                                                                                                                                                                 <volume>${project.basedir}/extra/docker/mariadb/conf1:/etc/mysql/conf.d</volume>
769                                                                                                                                                 </bind>
770                                                                                                                                 </volumes>
771                                                                                                                                 <wait>
772                                                                                                                                                 <log>socket: '/var/run/mysqld/mysqld.sock'  port: 3306  mariadb.org binary distribution</log>
773                                                                                                                                                 <time>600000</time>
774                                                                                                                                 </wait>
775                                                                                                                                 <ports>
776                                                                                                                                                 <port>${docker.mariadb.port.host}:3306</port>
777                                                                                                                                 </ports>
778                                                                                                                 </run>
779                                                                                                 </image>
780                                                                                                 <image>
781                                                                                                                 <name>library/python:2-slim</name>
782                                                                                                                 <alias>python</alias>
783                                                                                                                 <run>
784                                                                                                                                 <hostname>python</hostname>
785                                                                                                                                 <volumes>
786                                                                                                                                                 <bind>
787                                                                                                                                                                 <volume>${project.basedir}/src/test/resources/http-cache/:/usr/src/http-cache-app</volume>
788                                                                                                                                                                 <volume>${project.basedir}/src/test/resources/http-cache/example/:/usr/src/http-cache-app/data-cache</volume>
789                                                                                                                                                 </bind>
790                                                                                                                                 </volumes>
791                                                                                                                                 <wait>
792                                                                                                                                                 <tcp>
793                                                                                                                                                                 <ports>
794                                                                                                                                                                                 <port>8080</port>
795                                                                                                                                                                 </ports>
796                                                                                                                                                                 <mode>direct</mode>
797                                                                                                                                                 </tcp>
798                                                                                                                                                 <time>120000</time>
799                                                                                                                                 </wait>
800                                                                                                                                 <ports>
801                                                                                                                                                 <port>${docker.http-cache.port.host}:8080</port>
802                                                                                                                                 </ports>
803                                                                                                                                 <workingDir>/usr/src/http-cache-app</workingDir>
804                                                                                                                                 <cmd>
805                                                                                                                                                 <shell>./start_http_cache.sh ${python.http.proxy.param} --python_proxyaddress=localhost:${docker.http-cache.port.host}</shell>
806                                                                                                                                 </cmd>
807                                                                                                                 </run>
808                                                                                                 </image>
809                                                                                                 <image>
810                                                                                                                 <name>onap/clamp</name>
811                                                                                                                 <alias>onap-clamp</alias>
812                                                                                                                 <run>
813                                                                                                                         <skip>true</skip>
814                                                                                                                 </run>
815                                                                                                                 <build>
816                                                                                                                                 <cleanup>true</cleanup>
817                                                                                                                                 <tags>
818                                                                                                                                                 <tag>latest</tag>
819                                                                                                                                                 <tag>${project.docker.latesttagtimestamp.version}</tag>
820                                                                                                                                                 <tag>${project.docker.latesttag.version}</tag>
821                                                                                                                                 </tags>
822                                                                                                                                 <!-- A relative path is looked up in ${project.basedir}/src/main/docker 
823                                                                                                                                                 by default -->
824                                                                                                                                 <dockerFile>Dockerfile</dockerFile>
825                                                                                                                                 <assembly>
826                                                                                                                                                 <descriptor>assembly/clamp-files.xml</descriptor>
827                                                                                                                                                 <name>onap-clamp</name>
828                                                                                                                                 </assembly>
829                                                                                                                 </build>
830                                                                                                 </image>
831                                                                                 </images>
832                                                                 </configuration>
833
834                                                                 <executions>
835                                                                                 <execution>
836                                                                                                 <id>generate-images</id>
837                                                                                                 <phase>install</phase>
838                                                                                                 <goals>
839                                                                                                                 <goal>build</goal>
840                                                                                                 </goals>
841                                                                                 </execution>
842                                                                                 <execution>
843                                                                                                 <id>push-images</id>
844                                                                                                 <phase>deploy</phase>
845                                                                                                 <goals>
846                                                                                                                 <goal>push</goal>
847                                                                                                 </goals>
848                                                                                 </execution>
849                                                                                 <execution>
850                                                                                                 <id>docker-start-for-it</id>
851                                                                                                 <phase>pre-integration-test</phase>
852                                                                                                 <goals>
853                                                                                                                 <goal>start</goal>
854                                                                                                 </goals>
855                                                                                 </execution>
856                                                                                 <execution>
857                                                                                                 <id>docker-stop-for-it</id>
858                                                                                                 <phase>post-integration-test</phase>
859                                                                                                 <goals>
860                                                                                                                 <goal>stop</goal>
861                                                                                                 </goals>
862                                                                                 </execution>
863                                                                 </executions>
864                                                 </plugin>
865
866                                                 <plugin>
867                                                                 <groupId>org.jacoco</groupId>
868                                                                 <artifactId>jacoco-maven-plugin</artifactId>
869                                                                 <version>0.7.7.201606060606</version>
870                                                                 <configuration>
871                                                                                 <dumpOnExit>true</dumpOnExit>
872                                                                                 <includes>
873                                                                                                 <include>org.onap.clamp.*</include>
874                                                                                 </includes>
875                                                                 </configuration>
876                                                                 <executions>
877                                                                                 <execution>
878                                                                                                 <id>pre-unit-test</id>
879                                                                                                 <goals>
880                                                                                                                 <goal>prepare-agent</goal>
881                                                                                                 </goals>
882                                                                                                 <configuration>
883                                                                                                                 <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
884                                                                                                                 <!-- <append>true</append> -->
885                                                                                                 </configuration>
886                                                                                 </execution>
887                                                                                 <execution>
888                                                                                                 <id>pre-integration-test</id>
889                                                                                                 <phase>pre-integration-test</phase>
890                                                                                                 <goals>
891                                                                                                                 <goal>prepare-agent</goal>
892                                                                                                 </goals>
893                                                                                                 <configuration>
894                                                                                                                 <destFile>${project.build.directory}/coverage-reports/jacoco-it.exec</destFile>
895                                                                                                                 <!-- <append>true</append> -->
896                                                                                                 </configuration>
897                                                                                 </execution>
898                                                                                 <execution>
899                                                                                                 <goals>
900                                                                                                                 <goal>merge</goal>
901                                                                                                 </goals>
902                                                                                                 <phase>post-integration-test</phase>
903                                                                                                 <configuration>
904                                                                                                                 <fileSets>
905                                                                                                                                 <fileSet implementation="org.apache.maven.shared.model.fileset.FileSet">
906                                                                                                                                                 <directory>${project.build.directory}/coverage-reports</directory>
907                                                                                                                                                 <includes>
908                                                                                                                                                                 <include>*.exec</include>
909                                                                                                                                                 </includes>
910                                                                                                                                 </fileSet>
911                                                                                                                 </fileSets>
912                                                                                                                 <destFile>${project.build.directory}/jacoco-dev.exec</destFile>
913                                                                                                 </configuration>
914                                                                                 </execution>
915                                                                 </executions>
916                                                 </plugin>
917
918                                                 <!-- This plugin will be useful when we will have multi-modules project -->
919                                                 <plugin>
920                                                                 <groupId>org.codehaus.mojo</groupId>
921                                                                 <artifactId>versions-maven-plugin</artifactId>
922                                                                 <version>1.3.1</version>
923                                                 </plugin>
924                                 </plugins>
925                 </build>
926 </project>