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