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