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