Remove actuator
[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                                 <eelf.core.version>1.0.0</eelf.core.version>
71                                 <camel.version>2.22.0</camel.version>
72                                 <springboot.version>2.0.3.RELEASE</springboot.version>
73
74                                 <sonar.language>java</sonar.language>
75                                 <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
76                                 <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
77                                 <sonar.jacoco.reportPath>${project.build.directory}/coverage-reports/jacoco.exec</sonar.jacoco.reportPath>
78                                 <sonar.jacoco.itReportPath>${project.build.directory}/coverage-reports/jacoco-it.exec</sonar.jacoco.itReportPath>
79                                 <sonar.jacoco.reportMissing.force.zero>true</sonar.jacoco.reportMissing.force.zero>
80                                 <sonar.projectVersion>${project.version}</sonar.projectVersion>
81
82                                 <docker.push.registry>localhost:5000</docker.push.registry>
83                                 <docker.pull.registry>nexus3.onap.org:10001</docker.pull.registry>
84                                 <docker.skip.build>true</docker.skip.build>
85                                 <docker.skip.push>true</docker.skip.push>
86                                 <docker.skip.tag>true</docker.skip.tag>
87                                 <skip.staging.artifacts>false</skip.staging.artifacts>
88                                 <python.http.proxy.param></python.http.proxy.param>
89                                 <tomcat.version>8.5.32</tomcat.version>
90                 </properties>
91
92                 <profiles>
93                                 <profile>
94                                                 <id>without-test</id>
95                                                 <activation>
96                                                         <property>
97                                                                 <name>maven.test.skip</name>
98                                                                 <value>true</value>
99                                                         </property>
100                                                 </activation>
101                                                 <properties>
102                                                         <docker.skip.run>true</docker.skip.run>
103                                                         <docker.skip>true</docker.skip>
104                                                 </properties>
105                                 </profile>
106                                 <profile>
107                                                 <id>without-IT-only</id>
108                                                 <activation>
109                                                         <property>
110                                                                 <name>skipITs</name>
111                                                                 <value>true</value>
112                                                         </property>
113                                                 </activation>
114                                                 <properties>
115                                                         <docker.skip.run>true</docker.skip.run>
116                                                         <docker.skip>true</docker.skip>
117                                                 </properties>
118                                 </profile>
119                                 <profile>
120                                                 <id>without-IT-only2</id>
121                                                 <activation>
122                                                         <property>
123                                                                 <name>skipTests</name>
124                                                                 <value>true</value>
125                                                         </property>
126                                                 </activation>
127                                                 <properties>
128                                                         <docker.skip.run>true</docker.skip.run>
129                                                         <docker.skip>true</docker.skip>
130                                                 </properties>
131                                 </profile>
132                                 <profile>
133                                                 <id>docker</id>
134                                                 <properties>
135                                                                 <skip.staging.artifacts>true</skip.staging.artifacts>
136                                                                 <docker.skip.build>false</docker.skip.build>
137                                                                 <docker.skip.tag>false</docker.skip.tag>
138                                                                 <docker.skip.push>false</docker.skip.push>
139                                                                 <docker.skip>false</docker.skip>
140                                                 </properties>
141                                 </profile>
142                 </profiles>
143
144                 <distributionManagement>
145                                 <repository>
146                                                 <id>ecomp-releases</id>
147                                                 <name>Clamp Release Repository</name>
148                                                 <url>https://nexus.onap.org/content/repositories/releases/</url>
149                                 </repository>
150                                 <snapshotRepository>
151                                                 <id>ecomp-snapshots</id>
152                                                 <name>Clamp Snapshot Repository</name>
153                                                 <url>https://nexus.onap.org/content/repositories/snapshots/</url>
154                                 </snapshotRepository>
155                                 <site>
156                                                 <id>ecomp-site</id>
157                                                 <url>dav:https://nexus.onap.org/content/sites/site/org/onap/clamp/${project.version}</url>
158                                 </site>
159                 </distributionManagement>
160
161                 <repositories>
162                                 <repository>
163                                                 <id>central</id>
164                                                 <name>Maven 2 repository 2</name>
165                                                 <url>http://repo2.maven.org/maven2/</url>
166                                 </repository>
167                                 <repository>
168                                                 <id>ecomp-releases</id>
169                                                 <name>ONAP Release Repository</name>
170                                                 <url>https://nexus.onap.org/content/repositories/releases/</url>
171                                 </repository>
172                                 <repository>
173                                                 <id>ecomp-staging</id>
174                                                 <name>ONAP Staging Repository</name>
175                                                 <url>https://nexus.onap.org/content/repositories/staging/</url>
176                                 </repository>
177                                 <repository>
178                                                 <id>ecomp-snapshots</id>
179                                                 <name>ONAP Snapshot Repository</name>
180                                                 <url>https://nexus.onap.org/content/repositories/snapshots/</url>
181                                                 <snapshots>
182                                                                 <enabled>true</enabled>
183                                                 </snapshots>
184                                                 <releases>
185                                                                 <enabled>false</enabled>
186                                                 </releases>
187                                 </repository>
188                                 <repository>
189                                                 <id>spring-repo</id>
190                                                 <name>Spring repo</name>
191                                                 <url>https://artifacts.alfresco.com/nexus/content/repositories/public/</url>
192                                 </repository>
193                                 <repository>
194                                                 <id>repository.jboss.org-public</id>
195                                                 <name>JBoss.org Maven repository</name>
196                                                 <url>https://repository.jboss.org/nexus/content/groups/public</url>
197                                 </repository>
198                 </repositories>
199
200                 <dependencyManagement>
201                                 <dependencies>
202                                                 <!-- Spring Boot BOM -->
203                                                 <dependency>
204                                                                 <groupId>org.springframework.boot</groupId>
205                                                                 <artifactId>spring-boot-dependencies</artifactId>
206                                                                 <version>${springboot.version}</version>
207                                                                 <type>pom</type>
208                                                                 <scope>import</scope>
209                                                 </dependency>
210                                                 <!-- Camel BOM -->
211                                                 <dependency>
212                                                                 <groupId>org.apache.camel</groupId>
213                                                                 <artifactId>camel-spring-boot-dependencies</artifactId>
214                                                                 <version>${camel.version}</version>
215                                                                 <type>pom</type>
216                                                                 <scope>import</scope>
217                                                 </dependency>
218                                 </dependencies>
219                 </dependencyManagement>
220
221                 <dependencies>
222                                 <dependency>
223                                                 <groupId>com.att.eelf</groupId>
224                                                 <artifactId>eelf-core</artifactId>
225                                                 <version>${eelf.core.version}</version>
226                                 </dependency>
227                                 <dependency>
228                                                 <groupId>org.codehaus.janino</groupId>
229                                                 <artifactId>janino</artifactId>
230                                                 <version>3.0.8</version>
231                                 </dependency>
232                                 <dependency>
233                                                 <groupId>org.apache.tomcat.embed</groupId>
234                                                 <artifactId>tomcat-embed-core</artifactId>
235                                                 <version>${tomcat.version}</version>
236                                 </dependency>
237                                 <dependency>
238                                                 <groupId>org.apache.tomcat.embed</groupId>
239                                                 <artifactId>tomcat-embed-el</artifactId>
240                                                 <version>${tomcat.version}</version>
241                                 </dependency>
242                                 <dependency>
243                                                 <groupId>org.apache.tomcat.embed</groupId>
244                                                 <artifactId>tomcat-embed-websocket</artifactId>
245                                                 <version>${tomcat.version}</version>
246                                 </dependency>
247                                 <dependency>
248                                                 <groupId>org.apache.tomcat</groupId>
249                                                 <artifactId>tomcat-annotations-api</artifactId>
250                                                 <version>${tomcat.version}</version>
251                                 </dependency>
252                                 <!-- For CAMEL -->
253                                 <dependency>
254                                                 <groupId>org.apache.camel</groupId>
255                                                 <artifactId>camel-spring-boot-starter</artifactId>
256                                 </dependency>
257                                 <dependency>
258                                                 <groupId>org.apache.camel</groupId>
259                                                 <artifactId>camel-jaxb-starter</artifactId>
260                                 </dependency>
261                                 <dependency>
262                                                 <groupId>org.apache.camel</groupId>
263                                                 <artifactId>camel-servlet-starter</artifactId>
264                                 </dependency>
265                                 <dependency>
266                                         <groupId>org.apache.camel</groupId> 
267                                         <artifactId>camel-jackson-starter</artifactId>
268                                 </dependency>
269                                 <dependency>
270                                         <groupId>org.apache.camel</groupId>
271                                         <artifactId>camel-swagger-java-starter</artifactId>
272                                         <exclusions>
273                                                 <exclusion>
274                                                         <groupId>javax.ws.rs</groupId>
275                                                         <artifactId>jsr311-api</artifactId>
276                                                 </exclusion>
277                                                 <exclusion>
278                                                         <groupId>org.slf4j</groupId>
279                                                         <artifactId>slf4j-ext</artifactId>
280                                                 </exclusion>
281                                         </exclusions>
282                                 </dependency>
283                                 <dependency>
284                                                 <groupId>javax.xml.bind</groupId>
285                                                 <artifactId>jaxb-api</artifactId>
286                                                 <version>2.3.0</version>
287                                 </dependency>
288                                 <dependency>
289                                         <groupId>org.glassfish.jersey.core</groupId>
290                                         <artifactId>jersey-common</artifactId>
291                                         <version>2.27</version>
292                                 </dependency>
293                                 <!-- Spring famework -->
294                                 <dependency>
295                                                 <groupId>org.springframework.boot</groupId>
296                                                 <artifactId>spring-boot-starter-web</artifactId>
297                                 </dependency>
298                                 <dependency>
299                                                 <groupId>org.springframework.boot</groupId>
300                                                 <artifactId>spring-boot-starter-tomcat</artifactId>
301                                 </dependency>
302                                 <dependency>
303                                                 <groupId>org.springframework</groupId>
304                                                 <artifactId>spring-jdbc</artifactId>
305                                 </dependency>
306                                 <dependency>
307                                                 <groupId>org.springframework.boot</groupId>
308                                                 <artifactId>spring-boot-starter-security</artifactId>
309                                 </dependency>
310                                 <dependency>
311                                                 <groupId>org.springframework.boot</groupId>
312                                         <artifactId>spring-boot-autoconfigure</artifactId>
313                                 </dependency>
314                                 <dependency>
315                                                 <groupId>org.springframework.boot</groupId>
316                                                 <artifactId>spring-boot-starter-test</artifactId>
317                                                 <scope>test</scope>
318                                                 <exclusions>
319                                                                 <exclusion>
320                                                                                 <groupId>com.vaadin.external.google</groupId>
321                                                                                 <artifactId>android-json</artifactId>
322                                                                 </exclusion>
323                                                 </exclusions>
324                                 </dependency>
325                                 <!-- Others dependencies -->
326                                 <dependency>
327                                         <groupId>org.onap.aaf.authz</groupId>
328                                         <artifactId>aaf-cadi-aaf</artifactId>
329                                         <version>2.1.1</version>
330                                         <exclusions>
331                                                 <exclusion>
332                                                         <groupId>javax.servlet</groupId>
333                                                         <artifactId>servlet-api</artifactId>
334                                                 </exclusion>
335                                         </exclusions>
336                                 </dependency>
337                                 <dependency>
338                                                 <groupId>ch.qos.logback</groupId>
339                                                 <artifactId>logback-core</artifactId>
340                                                 <version>1.2.3</version>
341                                 </dependency>
342                                 <dependency>
343                                                 <groupId>ch.qos.logback</groupId>
344                                                 <artifactId>logback-classic</artifactId>
345                                                 <version>1.2.3</version>
346                                 </dependency>
347                                 <dependency>
348                                                 <groupId>commons-dbcp</groupId>
349                                                 <artifactId>commons-dbcp</artifactId>
350                                                 <version>1.4</version>
351                                 </dependency>
352                                 <dependency>
353                                                 <groupId>commons-io</groupId>
354                                                 <artifactId>commons-io</artifactId>
355                                                 <version>2.6</version>
356                                 </dependency>
357                                 <dependency>
358                                                 <groupId>com.googlecode.json-simple</groupId>
359                                                 <artifactId>json-simple</artifactId>
360                                 </dependency>
361                                 <dependency>
362                                                 <groupId>org.apache.commons</groupId>
363                                                 <artifactId>commons-vfs2</artifactId>
364                                                 <version>2.2</version>
365                                 </dependency>
366                                 <dependency>
367                                                 <groupId>joda-time</groupId>
368                                                 <artifactId>joda-time</artifactId>
369                                 </dependency>
370                                 <dependency>
371                                                 <groupId>org.slf4j</groupId>
372                                                 <artifactId>slf4j-api</artifactId>
373                                 </dependency>
374                                 <dependency>
375                                                 <groupId>javax.ws.rs</groupId>
376                                                 <artifactId>javax.ws.rs-api</artifactId>
377                                                 <version>2.0</version>
378                                 </dependency>
379                                 <dependency>
380                                                 <groupId>junit</groupId>
381                                                 <artifactId>junit</artifactId>
382                                 </dependency>
383                                 <dependency>
384                                                 <groupId>javax.transaction</groupId>
385                                                 <artifactId>jta</artifactId>
386                                                 <version>1.1</version>
387                                 </dependency>
388                                 <dependency>
389                                                 <groupId>javax.persistence</groupId>
390                                                 <artifactId>persistence-api</artifactId>
391                                                 <version>1.0.2</version>
392                                 </dependency>
393                                 <dependency>
394                                                 <groupId>org.onap.policy.engine</groupId>
395                                                 <artifactId>PolicyEngineAPI</artifactId>
396                                                 <version>1.2.0</version>
397                                                 <exclusions>
398                                                                 <exclusion>
399                                                                                 <groupId>com.google.guava</groupId>
400                                                                                 <artifactId>guava</artifactId>
401                                                                 </exclusion>
402                                                                 <exclusion>
403                                                                                 <artifactId>log4j</artifactId>
404                                                                                 <groupId>log4j</groupId>
405                                                                 </exclusion>
406                                                                 <exclusion>
407                                                                                 <groupId>org.slf4j</groupId>
408                                                                                 <artifactId>slf4j-log4j12</artifactId>
409                                                                 </exclusion>
410                                                                 <exclusion>
411                                                                                 <artifactId>apache-log4j-extras</artifactId>
412                                                                                 <groupId>log4j</groupId>
413                                                                 </exclusion>
414                                                                 <exclusion>
415                                                                                 <groupId>mysql</groupId>
416                                                                                 <artifactId>mysql-connector-java</artifactId>
417                                                                 </exclusion>
418                                                                 <exclusion>
419                                                                                 <groupId>commons-io</groupId>
420                                                                                 <artifactId>commons-io</artifactId>
421                                                                 </exclusion>
422                                                                 <exclusion>
423                                                                                 <artifactId>grizzly-http-server</artifactId>
424                                                                                 <groupId>org.glassfish.grizzly</groupId>
425                                                                 </exclusion>
426                                                                 <exclusion>
427                                                                                 <groupId>org.onap.dmaap.messagerouter.dmaapclient</groupId>
428                                                                                 <artifactId>dmaapClient</artifactId>
429                                                                 </exclusion>
430                                                                 <exclusion>
431                                                                                 <groupId>org.onap.policy.common</groupId>
432                                                                                 <artifactId>integrity-monitor</artifactId>
433                                                                 </exclusion>
434                                                                 <exclusion>
435                                                                                 <groupId>org.onap.policy.common</groupId>
436                                                                                 <artifactId>integrity-audit</artifactId>
437                                                                 </exclusion>
438                                                                 <exclusion>
439                                                                                 <groupId>org.onap.aaf.cadi</groupId>
440                                                                                 <artifactId>cadi-aaf</artifactId>
441                                                                 </exclusion>
442                                                                 <exclusion>
443                                                                                 <groupId>javax.jms</groupId>
444                                                                                 <artifactId>jms</artifactId>
445                                                                 </exclusion>
446                                                 </exclusions>
447                                 </dependency>
448                                 <dependency>
449                                                 <groupId>org.onap.policy.common</groupId>
450                                                 <artifactId>ONAP-Logging</artifactId>
451                                                 <version>1.1.3</version>
452                                                 <exclusions>
453                                                                 <exclusion>
454                                                                                 <artifactId>log4j</artifactId>
455                                                                                 <groupId>log4j</groupId>
456                                                                 </exclusion>
457                                                                 <exclusion>
458                                                                                 <groupId>org.slf4j</groupId>
459                                                                                 <artifactId>slf4j-log4j12</artifactId>
460                                                                 </exclusion>
461                                                                 <exclusion>
462                                                                                 <artifactId>apache-log4j-extras</artifactId>
463                                                                                 <groupId>log4j</groupId>
464                                                                 </exclusion>
465                                                 </exclusions>
466                                 </dependency>
467                                 <dependency>
468                                                 <groupId>org.onap.policy.drools-applications</groupId>
469                                                 <artifactId>policy-yaml</artifactId>
470                                                 <version>1.1.3</version>
471                                                 <exclusions>
472                                                                 <exclusion>
473                                                                                 <artifactId>log4j</artifactId>
474                                                                                 <groupId>log4j</groupId>
475                                                                 </exclusion>
476                                                                 <exclusion>
477                                                                                 <groupId>org.slf4j</groupId>
478                                                                                 <artifactId>slf4j-log4j12</artifactId>
479                                                                 </exclusion>
480                                                                 <exclusion>
481                                                                                 <artifactId>apache-log4j-extras</artifactId>
482                                                                                 <groupId>log4j</groupId>
483                                                                 </exclusion>
484                                                 </exclusions>
485                                 </dependency>
486                                 <dependency>
487                                                 <groupId>org.onap.policy.drools-applications</groupId>
488                                                 <artifactId>sdc</artifactId>
489                                                 <version>1.1.3</version>
490                                                 <exclusions>
491                                                                 <exclusion>
492                                                                                 <artifactId>log4j</artifactId>
493                                                                                 <groupId>log4j</groupId>
494                                                                 </exclusion>
495                                                                 <exclusion>
496                                                                                 <groupId>org.slf4j</groupId>
497                                                                                 <artifactId>slf4j-log4j12</artifactId>
498                                                                 </exclusion>
499                                                                 <exclusion>
500                                                                                 <artifactId>apache-log4j-extras</artifactId>
501                                                                                 <groupId>log4j</groupId>
502                                                                 </exclusion>
503                                                 </exclusions>
504                                 </dependency>
505                                 <dependency>
506                                                 <groupId>org.onap.policy.drools-applications</groupId>
507                                                 <artifactId>aai</artifactId>
508                                                 <version>1.1.3</version>
509                                                 <exclusions>
510                                                                 <exclusion>
511                                                                                 <artifactId>log4j</artifactId>
512                                                                                 <groupId>log4j</groupId>
513                                                                 </exclusion>
514                                                                 <exclusion>
515                                                                                 <groupId>org.slf4j</groupId>
516                                                                                 <artifactId>slf4j-log4j12</artifactId>
517                                                                 </exclusion>
518                                                                 <exclusion>
519                                                                                 <artifactId>apache-log4j-extras</artifactId>
520                                                                                 <groupId>log4j</groupId>
521                                                                 </exclusion>
522                                                 </exclusions>
523                                 </dependency>
524                                 <dependency>
525                                                 <groupId>org.apache.commons</groupId>
526                                                 <artifactId>commons-csv</artifactId>
527                                                 <version>1.3</version>
528                                 </dependency>
529                                 <!-- Other dependencies to fix nexus IQ reported vulnerabilities -->
530                                 <dependency>
531                                                 <groupId>org.codehaus.plexus</groupId>
532                                                 <artifactId>plexus-utils</artifactId>
533                                                 <version>3.0.24</version>
534                                 </dependency>
535                                 <dependency>
536                                                 <groupId>commons-fileupload</groupId>
537                                                 <artifactId>commons-fileupload</artifactId>
538                                                 <version>1.3.3</version>
539                                 </dependency>
540                                 <dependency>
541                                                 <groupId>org.jboss.spec.javax.ws.rs</groupId>
542                                                 <artifactId>jboss-jaxrs-api_2.0_spec</artifactId>
543                                                 <version>1.0.1.Final</version>
544                                 </dependency>
545                                 <dependency>
546                                                 <groupId>com.google.guava</groupId>
547                                                 <artifactId>guava</artifactId>
548                                                 <version>25.1-jre</version>
549                                 </dependency>
550                                 <!-- Remove the MYSQL connector and replace it by Mariadb -->
551                                 <dependency>
552                                                 <groupId>org.mariadb.jdbc</groupId>
553                                                 <artifactId>mariadb-java-client</artifactId>
554                                                 <version>2.2.1</version>
555                                 </dependency>
556                                 <!-- For SDC Controller -->
557                                 <dependency>
558                                                 <groupId>org.onap.sdc.sdc-distribution-client</groupId>
559                                                 <artifactId>sdc-distribution-client</artifactId>
560                                                 <version>1.3.0</version>
561                                 </dependency>
562                                 <dependency>
563                                                 <groupId>org.onap.sdc.sdc-tosca</groupId>
564                                                 <artifactId>sdc-tosca</artifactId>
565                                                 <version>1.3.0</version>
566                                 </dependency>
567                                 <!-- TESTING -->
568                                 <dependency>
569                                                 <groupId>org.assertj</groupId>
570                                                 <artifactId>assertj-core</artifactId>
571                                                 <version>3.10.0</version>
572                                                 <scope>test</scope>
573                                 </dependency>
574                                 <dependency>
575                                         <groupId>org.mockito</groupId>
576                                         <artifactId>mockito-core</artifactId>
577                                         <version>1.10.19</version>
578                                         <scope>test</scope>
579                                 </dependency>
580                 </dependencies>
581                 <pluginRepositories>
582                                 <pluginRepository>
583                                                 <id>central-for-plugins</id>
584                                                 <name>Maven 2 repository 2</name>
585                                                 <url>http://repo2.maven.org/maven2/</url>
586                                 </pluginRepository>
587                                 <pluginRepository>
588                                                 <snapshots>
589                                                                 <enabled>false</enabled>
590                                                 </snapshots>
591                                                 <id>jcenter-releases-for-plugins</id>
592                                                 <name>jcenter</name>
593                                                 <url>http://jcenter.bintray.com</url>
594                                 </pluginRepository>
595                 </pluginRepositories>
596                 <build>
597                                 <finalName>clamp</finalName>
598
599                                 <testResources>
600                                                 <testResource>
601                                                                 <directory>src/test/resources</directory>
602                                                                 <excludes>
603                                                                                 <exclude>**/*.jks</exclude>
604                                                                                 <exclude>**/*.csar</exclude>
605                                                                 </excludes>
606                                                                 <filtering>true</filtering>
607                                                 </testResource>
608                                                 <testResource>
609                                                                 <directory>src/test/resources/https</directory>
610                                                                 <includes>
611                                                                                 <include>**.jks</include>
612                                                                 </includes>
613                                                                 <filtering>false</filtering>
614                                                                 <targetPath>https</targetPath>
615                                                 </testResource>
616                                                 <testResource>
617                                                                 <directory>src/test/resources/example/sdc</directory>
618                                                                 <includes>
619                                                                                 <include>**.csar</include>
620                                                                 </includes>
621                                                                 <filtering>false</filtering>
622                                                                 <targetPath>example/sdc</targetPath>
623                                                 </testResource>
624                                 </testResources>
625                                 <resources>
626                                                 <!--  For AAF folder maven should not try to filter Keystores/Truststores ... 
627                                                           Otherwise they will be broken and unreadable
628                                                 -->
629                                                 <resource>
630                                                                 <directory>src/main/resources</directory>
631                                                                 <filtering>true</filtering>
632                                                                 <excludes>
633                                                                         <exclude>clds/aaf/**</exclude>
634                                                                 </excludes>
635                                                 </resource>
636                                                 <resource>
637                                                                 <directory>src/main/resources</directory>
638                                                                 <filtering>false</filtering>
639                                                                 <includes>
640                                                                         <include>clds/aaf/**</include>
641                                                                 </includes>
642                                                 </resource>
643                                                 <resource>
644                                                                 <directory>src/main/docker</directory>
645                                                                 <includes>
646                                                                                 <include>**/*</include>
647                                                                 </includes>
648                                                                 <filtering>true</filtering>
649                                                 </resource>
650                                 </resources>
651
652                                 <plugins>
653                                                 <!-- Read the swagger.json file and the definition from SwaggerConfig.java; 
654                                                         generate a list of .adoc files containing the APIs info in more structured 
655                                                         way -->
656                                                 <plugin>
657                                                                 <groupId>io.github.swagger2markup</groupId>
658                                                                 <artifactId>swagger2markup-maven-plugin</artifactId>
659                                                                 <version>1.3.3</version>
660                                                                 <dependencies>
661                                                                                 <dependency>
662                                                                                                 <groupId>io.github.swagger2markup</groupId>
663                                                                                                 <artifactId>swagger2markup-import-files-ext</artifactId>
664                                                                                                 <version>1.3.3</version>
665                                                                                 </dependency>
666                                                                                 <dependency>
667                                                                                                 <groupId>io.github.swagger2markup</groupId>
668                                                                                                 <artifactId>swagger2markup-spring-restdocs-ext</artifactId>
669                                                                                                 <version>1.3.3</version>
670                                                                                 </dependency>
671                                                                 </dependencies>
672                                                                 <configuration>
673                                                                                 <swaggerInput>${project.basedir}/docs/swagger/swagger.json</swaggerInput>
674                                                                                 <outputDir>${project.build.directory}/asciidoc/generated</outputDir>
675                                                                                 <config>
676                                                                                                 <swagger2markup.markupLanguage>ASCIIDOC</swagger2markup.markupLanguage>
677                                                                                 </config>
678                                                                 </configuration>
679                                                                 <executions>
680                                                                                 <execution>
681                                                                                                 <phase>post-integration-test</phase>
682                                                                                                 <goals>
683                                                                                                                 <goal>convertSwagger2markup</goal>
684                                                                                                 </goals>
685                                                                                 </execution>
686                                                                 </executions>
687                                                 </plugin>
688
689                                                 <!-- Run the generated asciidoc through Asciidoctor to generate other 
690                                                                 documentation types, such as PDFs or HTML5 -->
691                                                 <plugin>
692                                                                 <groupId>org.asciidoctor</groupId>
693                                                                 <artifactId>asciidoctor-maven-plugin</artifactId>
694                                                                 <version>1.5.6</version>
695                                                                 <dependencies>
696                                                                                 <dependency>
697                                                                                                 <groupId>org.asciidoctor</groupId>
698                                                                                                 <artifactId>asciidoctorj-pdf</artifactId>
699                                                                                                 <version>1.5.0-alpha.10.1</version>
700                                                                                 </dependency>
701                                                                                 <dependency>
702                                                                                                 <groupId>org.jruby</groupId>
703                                                                                                 <artifactId>jruby-complete</artifactId>
704                                                                                                 <version>1.7.21</version>
705                                                                                 </dependency>
706                                                                 </dependencies>
707                                                                 <configuration>
708                                                                                 <sourceDirectory>${project.basedir}/src/main/resources/asciidoc</sourceDirectory>
709                                                                                 <sourceDocumentName>swagger.adoc</sourceDocumentName>
710                                                                                 <attributes>
711                                                                                                 <doctype>book</doctype>
712                                                                                                 <toc>left</toc>
713                                                                                                 <toclevels>3</toclevels>
714                                                                                                 <numbered></numbered>
715                                                                                                 <hardbreaks></hardbreaks>
716                                                                                                 <sectlinks></sectlinks>
717                                                                                                 <sectanchors></sectanchors>
718                                                                                                 <generated>${project.build.directory}/asciidoc/generated</generated>
719                                                                                 </attributes>
720                                                                 </configuration>
721
722                                                                 <executions>
723                                                                                 <execution>
724                                                                                                 <id>output-html</id>
725                                                                                                 <phase>post-integration-test</phase>
726                                                                                                 <goals>
727                                                                                                                 <goal>process-asciidoc</goal>
728                                                                                                 </goals>
729                                                                                                 <configuration>
730                                                                                                                 <backend>html5</backend>
731                                                                                                                 <outputDirectory>${project.basedir}/docs/swagger</outputDirectory>
732                                                                                                                 <outputDirectory>${project.basedir}/src/main/resources/META-INF/resources/</outputDirectory>
733                                                                                                 </configuration>
734                                                                                 </execution>
735                                                                                 <execution>
736                                                                                                 <id>output-pdf</id>
737                                                                                                 <phase>post-integration-test</phase>
738                                                                                                 <goals>
739                                                                                                                 <goal>process-asciidoc</goal>
740                                                                                                 </goals>
741                                                                                                 <configuration>
742                                                                                                                 <backend>pdf</backend>
743                                                                                                                 <outputDirectory>${project.basedir}/docs/swagger</outputDirectory>
744                                                                                                 </configuration>
745                                                                                 </execution>
746                                                                 </executions>
747                                                 </plugin>
748                                                 <plugin>
749                                                                 <groupId>org.codehaus.groovy.maven</groupId>
750                                                                 <artifactId>gmaven-plugin</artifactId>
751                                                                 <version>1.0</version>
752                                                                 <executions>
753                                                                                 <execution>
754                                                                                                 <phase>validate</phase>
755                                                                                                 <goals>
756                                                                                                                 <goal>execute</goal>
757                                                                                                 </goals>
758                                                                                                 <configuration>
759                                                                                                                 <source>${project.basedir}/src/main/script/TagVersion.groovy</source>
760                                                                                                 </configuration>
761                                                                                 </execution>
762                                                                 </executions>
763                                                 </plugin>
764                                                 <plugin>
765                                                                 <groupId>org.apache.maven.plugins</groupId>
766                                                                 <artifactId>maven-jar-plugin</artifactId>
767                                                                 <version>3.0.2</version>
768                                                                 <executions>
769                                                                                 <execution>
770                                                                                                 <id>jar-with-only-classes</id>
771                                                                                                 <phase>package</phase>
772                                                                                                 <goals>
773                                                                                                                 <goal>jar</goal>
774                                                                                                 </goals>
775                                                                                                 <configuration>
776                                                                                                                 <classifier>classes</classifier>
777                                                                                                                 <includes>
778                                                                                                                                 <include>org/**</include>
779                                                                                                                 </includes>
780                                                                                                 </configuration>
781                                                                                 </execution>
782                                                                 </executions>
783                                                 </plugin>
784                                                 <plugin>
785                                                                 <groupId>org.codehaus.mojo</groupId>
786                                                                 <artifactId>build-helper-maven-plugin</artifactId>
787                                                                 <version>3.0.0</version>
788                                                                 <executions>
789                                                                                 <execution>
790                                                                                                 <goals>
791                                                                                                                 <goal>attach-artifact</goal>
792                                                                                                 </goals>
793                                                                                                 <phase>package</phase>
794                                                                                                 <configuration>
795                                                                                                                 <artifacts>
796                                                                                                                                 <artifact>
797                                                                                                                                                 <file>${project.build.directory}/clamp-classes.jar</file>
798                                                                                                                                                 <type>jar</type>
799                                                                                                                                                 <classifier>classes</classifier>
800                                                                                                                                 </artifact>
801                                                                                                                 </artifacts>
802                                                                                                 </configuration>
803                                                                                 </execution>
804                                                                 </executions>
805                                                 </plugin>
806
807                                                 <plugin>
808                                                                 <groupId>org.springframework.boot</groupId>
809                                                                 <artifactId>spring-boot-maven-plugin</artifactId>
810                                                                 <!-- Temporary fix -->
811                                                                 <version>1.5.13.RELEASE</version>
812                                                                 <!-- <version>${springboot.version}</version> -->
813                                                                 <executions>
814                                                                                 <execution>
815                                                                                                 <goals>
816                                                                                                                 <goal>repackage</goal>
817                                                                                                 </goals>
818                                                                                                 <phase>package</phase>
819                                                                                 </execution>
820                                                                 </executions>
821                                                 </plugin>
822                                                 <plugin>
823                                                                 <groupId>org.sonatype.plugins</groupId>
824                                                                 <artifactId>nexus-staging-maven-plugin</artifactId>
825                                                                 <version>1.6.7</version>
826                                                                 <extensions>true</extensions>
827                                                                 <configuration>
828                                                                                 <nexusUrl>https://nexus.onap.org</nexusUrl>
829                                                                                 <stagingProfileId>176c31dfe190a</stagingProfileId>
830                                                                                 <serverId>ecomp-staging</serverId>
831                                                                                 <skipNexusStagingDeployMojo>${skip.staging.artifacts}</skipNexusStagingDeployMojo>
832                                                                 </configuration>
833                                                 </plugin>
834
835                                                 <plugin>
836                                                                 <groupId>org.apache.maven.plugins</groupId>
837                                                                 <artifactId>maven-surefire-plugin</artifactId>
838                                                                 <version>2.19.1</version>
839                                                                 <configuration>
840                                                                                 <forkCount>1</forkCount>
841                                                                                 <reuseForks>false</reuseForks>
842                                                                 </configuration>
843                                                 </plugin>
844
845                                                 <plugin>
846                                                                 <groupId>org.apache.maven.plugins</groupId>
847                                                                 <artifactId>maven-failsafe-plugin</artifactId>
848                                                                 <version>2.17</version>
849
850                                                                 <executions>
851                                                                                 <execution>
852                                                                                                 <id>integration-tests</id>
853                                                                                                 <goals>
854                                                                                                                 <goal>integration-test</goal>
855                                                                                                                 <goal>verify</goal>
856                                                                                                 </goals>
857                                                                                                 <configuration>
858                                                                                                                 <includes>
859                                                                                                                                 <include>**/*ItCase.java</include>
860                                                                                                                 </includes>
861                                                                                                                 <forkCount>1</forkCount>
862                                                                                                                 <reuseForks>false</reuseForks>
863                                                                                                 </configuration>
864                                                                                 </execution>
865                                                                 </executions>
866
867                                                 </plugin>
868                                                 <plugin>
869                                                                 <groupId>io.fabric8</groupId>
870                                                                 <artifactId>docker-maven-plugin</artifactId>
871                                                                 <version>0.26.0</version>
872                                                                 <configuration>
873                                                                                 <verbose>true</verbose>
874                                                                                 <apiVersion>1.23</apiVersion>
875                                                                                 <images>
876                                                                                                 <image>
877                                                                                                                 <name>library/mariadb:10.1.11</name>
878                                                                                                                 <alias>mariadb</alias>
879                                                                                                                 <run>
880                                                                                                                                 <env>
881                                                                                                                                                 <MYSQL_ROOT_PASSWORD>strong_pitchou</MYSQL_ROOT_PASSWORD>
882                                                                                                                                 </env>
883                                                                                                                                 <hostname>mariadb</hostname>
884                                                                                                                                 <volumes>
885                                                                                                                                                 <bind>
886                                                                                                                                                                 <volume>${project.basedir}/extra/sql/:/docker-entrypoint-initdb.d</volume>
887                                                                                                                                                                 <volume>${project.basedir}/extra/docker/mariadb/conf1:/etc/mysql/conf.d</volume>
888                                                                                                                                                 </bind>
889                                                                                                                                 </volumes>
890                                                                                                                                 <wait>
891                                                                                                                                                 <log>socket: '/var/run/mysqld/mysqld.sock'  port: 3306  mariadb.org binary distribution</log>
892                                                                                                                                                 <time>600000</time>
893                                                                                                                                 </wait>
894                                                                                                                                 <ports>
895                                                                                                                                                 <port>${docker.mariadb.port.host}:3306</port>
896                                                                                                                                 </ports>
897                                                                                                                 </run>
898                                                                                                 </image>
899                                                                                                 <image>
900                                                                                                                 <name>library/python:2-slim</name>
901                                                                                                                 <alias>python</alias>
902                                                                                                                 <run>
903                                                                                                                                 <hostname>python</hostname>
904                                                                                                                                 <volumes>
905                                                                                                                                                 <bind>
906                                                                                                                                                                 <volume>${project.basedir}/src/test/resources/http-cache/:/usr/src/http-cache-app</volume>
907                                                                                                                                                                 <volume>${project.basedir}/src/test/resources/http-cache/example/:/usr/src/http-cache-app/data-cache</volume>
908                                                                                                                                                 </bind>
909                                                                                                                                 </volumes>
910                                                                                                                                 <wait>
911                                                                                                                                                 <tcp>
912                                                                                                                                                                 <ports>
913                                                                                                                                                                                 <port>8080</port>
914                                                                                                                                                                 </ports>
915                                                                                                                                                                 <mode>direct</mode>
916                                                                                                                                                 </tcp>
917                                                                                                                                                 <time>120000</time>
918                                                                                                                                 </wait>
919                                                                                                                                 <ports>
920                                                                                                                                                 <port>${docker.http-cache.port.host}:8080</port>
921                                                                                                                                 </ports>
922                                                                                                                                 <workingDir>/usr/src/http-cache-app</workingDir>
923                                                                                                                                 <cmd>
924                                                                                                                                                 <shell>./start_http_cache.sh ${python.http.proxy.param} --python_proxyaddress=localhost:${docker.http-cache.port.host}</shell>
925                                                                                                                                 </cmd>
926                                                                                                                 </run>
927                                                                                                 </image>
928                                                                                                 <image>
929                                                                                                                 <name>onap/clamp</name>
930                                                                                                                 <alias>onap-clamp</alias>
931                                                                                                                 <run>
932                                                                                                                         <skip>true</skip>
933                                                                                                                 </run>
934                                                                                                                 <build>
935                                                                                                                                 <cleanup>true</cleanup>
936                                                                                                                                 <tags>
937                                                                                                                                                 <tag>latest</tag>
938                                                                                                                                                 <tag>${project.docker.latesttagtimestamp.version}</tag>
939                                                                                                                                                 <tag>${project.docker.latesttag.version}</tag>
940                                                                                                                                 </tags>
941                                                                                                                                 <!-- A relative path is looked up in ${project.basedir}/src/main/docker 
942                                                                                                                                                 by default -->
943                                                                                                                                 <dockerFile>Dockerfile</dockerFile>
944                                                                                                                                 <assembly>
945                                                                                                                                                 <descriptor>assembly/clamp-files.xml</descriptor>
946                                                                                                                                                 <name>onap-clamp</name>
947                                                                                                                                 </assembly>
948                                                                                                                 </build>
949                                                                                                 </image>
950                                                                                 </images>
951                                                                 </configuration>
952
953                                                                 <executions>
954                                                                                 <execution>
955                                                                                                 <id>generate-images</id>
956                                                                                                 <phase>install</phase>
957                                                                                                 <goals>
958                                                                                                                 <goal>build</goal>
959                                                                                                 </goals>
960                                                                                 </execution>
961                                                                                 <execution>
962                                                                                                 <id>push-images</id>
963                                                                                                 <phase>deploy</phase>
964                                                                                                 <goals>
965                                                                                                                 <goal>push</goal>
966                                                                                                 </goals>
967                                                                                 </execution>
968                                                                                 <execution>
969                                                                                                 <id>docker-start-for-it</id>
970                                                                                                 <phase>pre-integration-test</phase>
971                                                                                                 <goals>
972                                                                                                                 <goal>start</goal>
973                                                                                                 </goals>
974                                                                                 </execution>
975                                                                                 <execution>
976                                                                                                 <id>docker-stop-for-it</id>
977                                                                                                 <phase>post-integration-test</phase>
978                                                                                                 <goals>
979                                                                                                                 <goal>stop</goal>
980                                                                                                 </goals>
981                                                                                 </execution>
982                                                                 </executions>
983                                                 </plugin>
984
985                                                 <plugin>
986                                                                 <groupId>org.jacoco</groupId>
987                                                                 <artifactId>jacoco-maven-plugin</artifactId>
988                                                                 <version>0.7.7.201606060606</version>
989                                                                 <configuration>
990                                                                                 <dumpOnExit>true</dumpOnExit>
991                                                                                 <includes>
992                                                                                                 <include>org.onap.clamp.*</include>
993                                                                                 </includes>
994                                                                 </configuration>
995                                                                 <executions>
996                                                                                 <execution>
997                                                                                                 <id>pre-unit-test</id>
998                                                                                                 <goals>
999                                                                                                                 <goal>prepare-agent</goal>
1000                                                                                                 </goals>
1001                                                                                                 <configuration>
1002                                                                                                                 <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
1003                                                                                                                 <!-- <append>true</append> -->
1004                                                                                                 </configuration>
1005                                                                                 </execution>
1006                                                                                 <execution>
1007                                                                                                 <id>pre-integration-test</id>
1008                                                                                                 <phase>pre-integration-test</phase>
1009                                                                                                 <goals>
1010                                                                                                                 <goal>prepare-agent</goal>
1011                                                                                                 </goals>
1012                                                                                                 <configuration>
1013                                                                                                                 <destFile>${project.build.directory}/coverage-reports/jacoco-it.exec</destFile>
1014                                                                                                                 <!-- <append>true</append> -->
1015                                                                                                 </configuration>
1016                                                                                 </execution>
1017                                                                                 <execution>
1018                                                                                                 <goals>
1019                                                                                                                 <goal>merge</goal>
1020                                                                                                 </goals>
1021                                                                                                 <phase>post-integration-test</phase>
1022                                                                                                 <configuration>
1023                                                                                                                 <fileSets>
1024                                                                                                                                 <fileSet implementation="org.apache.maven.shared.model.fileset.FileSet">
1025                                                                                                                                                 <directory>${project.build.directory}/coverage-reports</directory>
1026                                                                                                                                                 <includes>
1027                                                                                                                                                                 <include>*.exec</include>
1028                                                                                                                                                 </includes>
1029                                                                                                                                 </fileSet>
1030                                                                                                                 </fileSets>
1031                                                                                                                 <destFile>${project.build.directory}/jacoco-dev.exec</destFile>
1032                                                                                                 </configuration>
1033                                                                                 </execution>
1034                                                                 </executions>
1035                                                 </plugin>
1036
1037                                                 <!-- This plugin will be useful when we will have multi-modules project -->
1038                                                 <plugin>
1039                                                                 <groupId>org.codehaus.mojo</groupId>
1040                                                                 <artifactId>versions-maven-plugin</artifactId>
1041                                                                 <version>1.3.1</version>
1042                                                 </plugin>
1043                                 </plugins>
1044                 </build>
1045 </project>