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