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