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