Update babel dependencies
[aai/babel.git] / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3
4     ============LICENSE_START=======================================================
5     org.onap.aai
6     ================================================================================
7     Copyright (c) 2017-2019 AT&T Intellectual Property. All rights reserved.
8     Copyright (c) 2017-2019 European Software Marketing Ltd.
9     ================================================================================
10     Licensed under the Apache License, Version 2.0 (the "License");
11     you may not use this file except in compliance with the License.
12     You may obtain a copy of the License at
13
14           http://www.apache.org/licenses/LICENSE-2.0
15
16     Unless required by applicable law or agreed to in writing, software
17     distributed under the License is distributed on an "AS IS" BASIS,
18     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19     See the License for the specific language governing permissions and
20     limitations under the License.
21     ============LICENSE_END=========================================================
22 -->
23
24 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
25                  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
26         <modelVersion>4.0.0</modelVersion>
27
28         <parent>
29                 <groupId>org.onap.aai.aai-common</groupId>
30                 <artifactId>aai-parent</artifactId>
31                 <version>1.9.4</version>
32         </parent>
33
34         <groupId>org.onap.aai</groupId>
35         <artifactId>babel</artifactId>
36         <version>1.11.0-SNAPSHOT</version>
37         <packaging>jar</packaging>
38
39         <name>aai-babel</name>
40         <description>ONAP AAI Babel Microservice</description>
41
42         <properties>
43                 <!-- Spring boot version -->
44
45                 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
46                 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
47
48                 <aai.schema.source.folder>onap/aai_schema</aai.schema.source.folder>
49                 <aai.schema.target.folder>${project.build.directory}/aai-schema</aai.schema.target.folder>
50
51                 <sonar.jacoco.reportPath />
52                 <sonar.jacoco.itReportPath />
53                 <sonar.jacoco.reportMissing.force.zero />
54
55                 <jacoco.report.directory>${project.build.directory}/code-coverage</jacoco.report.directory>
56                 <jacoco.line.coverage.limit>0.90</jacoco.line.coverage.limit>
57                 <sonar.jacoco.reportPath />
58                 <sonar.jacoco.itReportPath />
59                 <sonar.jacoco.reportMissing.force.zero />
60
61                 <jacoco-maven-plugin.version>0.8.6</jacoco-maven-plugin.version>
62
63                 <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>
64                 <sonar.coverage.jacoco.xmlReportPaths>${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths>
65                 <sonar.exclusions>**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**</sonar.exclusions>
66
67                 <sonar.scanner.version>3.7.0.1746</sonar.scanner.version>
68
69                 <!-- java 11 related properties -->
70                 <maven-javadoc-plugin.version>3.2.0</maven-javadoc-plugin.version>
71                 <maven-compiler-plugin.version>3.8.1</maven-compiler-plugin.version>
72                 <maven-compiler-plugin.source>11</maven-compiler-plugin.source>
73                 <maven-compiler-plugin.target>11</maven-compiler-plugin.target>
74                 <maven-compiler-plugin.test.source>11</maven-compiler-plugin.test.source>
75                 <maven-compiler-plugin.test.target>11</maven-compiler-plugin.test.target>
76                 <sonar-maven-plugin.version>3.7.0.1746</sonar-maven-plugin.version>
77
78                 <!-- docker related properties -->
79                 <docker.fabric.version>0.28.0</docker.fabric.version>
80                 <aai.docker.version>1.0.0</aai.docker.version>
81                 <aai.build.directory>${project.build.directory}/${project.artifactId}-${project.version}-build/
82         </aai.build.directory>
83                 <aai.docker.namespace>onap</aai.docker.namespace>
84                 <aai.base.image>alpine</aai.base.image>
85                 <aai.base.image.version>1.9.0</aai.base.image.version>
86
87                 <!-- Dependency Versions -->
88                 <sdc.tosca.version>1.6.5</sdc.tosca.version>
89
90                 <aai.common.version>1.9.4</aai.common.version>
91                 <aaf.version>2.7.4</aaf.version>
92                 <logback.core.version>1.2.11</logback.core.version>
93                 <groovy.version>3.0.13</groovy.version>
94
95                 <commons.compress.version>1.22</commons.compress.version>
96                 <commons.codec.version>1.15</commons.codec.version>
97
98                 <javax.ws.rs.version>2.1.1</javax.ws.rs.version>
99                 <mvn.jaxb2.version>0.15.1</mvn.jaxb2.version>
100                 <aai-schema.group.id>org.onap.aai.schema-service</aai-schema.group.id>
101
102                 <aai-schema.version>1.9.7</aai-schema.version>
103                 <commons.lang3.version>3.12.0</commons.lang3.version>
104                 <aai.rest.client.version>1.6.4</aai.rest.client.version>
105
106                 <sdc.distribution.client.version>1.4.5</sdc.distribution.client.version>
107                 <!-- TODO: use xml-legacy -->
108                 <xmlunit.version>1.6</xmlunit.version>
109
110                 <antrun.version>3.1.0</antrun.version>
111                 <jakarta.activation.version>1.2.2</jakarta.activation.version>
112                 <!-- This will be used for the docker images as the default format of maven build has issues -->
113                 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
114
115         </properties>
116
117         <profiles>
118                 <!-- Docker profile to be used for building docker image and pushing to nexus -->
119                 <profile>
120                         <id>docker</id>
121                         <build>
122                                 <plugins>
123                                         <plugin>
124                                                 <groupId>org.codehaus.mojo</groupId>
125                                                 <artifactId>build-helper-maven-plugin</artifactId>
126                                                 <version>3.3.0</version>
127                                                 <executions>
128                                                         <execution>
129                                                                 <phase>pre-clean</phase>
130                                                                 <id>parse-version</id>
131                                                                 <goals>
132                                                                         <goal>parse-version</goal>
133                                                                 </goals>
134                                                         </execution>
135                                                 </executions>
136                                         </plugin>
137                                         <plugin>
138                                                 <groupId>org.codehaus.gmavenplus</groupId>
139                                                 <artifactId>gmavenplus-plugin</artifactId>
140                                                 <version>1.13.1</version>
141                                                 <executions>
142                                                         <execution>
143                                                                 <phase>pre-clean</phase>
144                                                                 <goals>
145                                                                         <goal>execute</goal>
146                                                                 </goals>
147                                                                 <configuration>
148                                                                         <source>
149                                                                                 def userAaiBaseImage = session.userProperties['aai.base.image'];
150                                                                                 def userAaiCommonVersion = session.userProperties['aai.base.image.version'];
151                                                                                 if (userAaiCommonVersion != null) {
152                                                                                         project.properties['aai.base.image.version'] = userAaiCommonVersion;
153                                                                                 }
154                                                                                 if (userAaiBaseImage != null) {
155                                                                                         project.properties['aai.base.image'] = userAaiBaseImage;
156                                                                                 }
157                                                                                 log.info 'Base image flavour: ' + project.properties['aai.base.image'];
158                                                                                 log.info 'Base image version: ' + project.properties['aai.base.image.version'];
159                                                                         </source>
160                                                                 </configuration>
161                                                         </execution>
162                                                 </executions>
163                                         </plugin>
164                                         <plugin>
165                                                 <groupId>io.fabric8</groupId>
166                                                 <artifactId>docker-maven-plugin</artifactId>
167                                                 <version>${docker.fabric.version}</version>
168                                                 <configuration>
169                                                         <verbose>true</verbose>
170                                                         <apiVersion>1.23</apiVersion>
171                                                         <images>
172                                                                 <image>
173                                                                         <name>${docker.push.registry}/${aai.docker.namespace}/${project.artifactId}:%l</name>
174                                                                         <build>
175                                                                                 <filter>@</filter>
176                                                                                 <tags>
177                                                                                         <tag>latest</tag>
178                                                                                         <tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest</tag>
179                                                                                         <tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-${maven.build.timestamp}</tag>
180                                                                                         <tag>${image.tag}</tag>
181                                                                                 </tags>
182                                                                                 <cleanup>try</cleanup>
183                                                                                 <dockerFileDir>${project.basedir}/src/main/docker</dockerFileDir>
184                                                                                 <assembly>
185                                                                                         <inline>
186                                                                                                 <fileSets>
187                                                                                                         <fileSet>
188                                                                                                                 <directory>${aai.build.directory}</directory>
189                                                                                                                 <outputDirectory>/${project.artifactId}</outputDirectory>
190                                                                                                         </fileSet>
191                                                                                                 </fileSets>
192                                                                                         </inline>
193                                                                                 </assembly>
194                                                                         </build>
195                                                                 </image>
196                                                         </images>
197                                                 </configuration>
198                                                 <executions>
199                                                         <execution>
200                                                                 <id>clean-images</id>
201                                                                 <phase>pre-clean</phase>
202                                                                 <goals>
203                                                                         <goal>remove</goal>
204                                                                 </goals>
205                                                                 <configuration>
206                                                                         <removeAll>true</removeAll>
207                                                                 </configuration>
208                                                         </execution>
209                                                         <execution>
210                                                                 <id>generate-images</id>
211                                                                 <phase>package</phase>
212                                                                 <goals>
213                                                                         <goal>build</goal>
214                                                                 </goals>
215                                                         </execution>
216                                                         <execution>
217                                                                 <id>push-images</id>
218                                                                 <phase>deploy</phase>
219                                                                 <goals>
220                                                                         <goal>push</goal>
221                                                                 </goals>
222                                                         </execution>
223                                                 </executions>
224                                         </plugin>
225                                 </plugins>
226                         </build>
227                 </profile>
228         </profiles>
229
230         <dependencies>
231                 <dependency>
232                         <groupId>org.springframework.boot</groupId>
233                         <artifactId>spring-boot-starter-jetty</artifactId>
234                 </dependency>
235                 <dependency>
236                         <groupId>org.springframework.boot</groupId>
237                         <artifactId>spring-boot-starter-jersey</artifactId>
238                         <exclusions>
239                                 <exclusion>
240                                         <groupId>org.springframework.boot</groupId>
241                                         <artifactId>spring-boot-starter-jetty</artifactId>
242                                 </exclusion>
243                                 <exclusion>
244                                         <groupId>org.springframework.boot</groupId>
245                                         <artifactId>spring-boot-starter-tomcat</artifactId>
246                                 </exclusion>
247                         </exclusions>
248                 </dependency>
249                 <dependency>
250                         <groupId>org.springframework.boot</groupId>
251                         <artifactId>spring-boot-starter-web</artifactId>
252                         <exclusions>
253                                 <exclusion>
254                                         <groupId>org.springframework.boot</groupId>
255                                         <artifactId>spring-boot-starter-jetty</artifactId>
256                                 </exclusion>
257                                 <exclusion>
258                                         <groupId>org.springframework.boot</groupId>
259                                         <artifactId>spring-boot-starter-tomcat</artifactId>
260                                 </exclusion>
261                         </exclusions>
262                 </dependency>
263                 <dependency>
264                         <groupId>org.springframework.boot</groupId>
265                         <artifactId>spring-boot-starter-aop</artifactId>
266                         <exclusions>
267                                 <exclusion>
268                                         <groupId>org.springframework.boot</groupId>
269                                         <artifactId>spring-boot-starter-tomcat</artifactId>
270                                 </exclusion>
271                         </exclusions>
272                 </dependency>
273                 <dependency>
274                         <groupId>org.onap.aai.logging-service</groupId>
275                         <artifactId>common-logging</artifactId>
276                 </dependency>
277                 <dependency>
278                         <groupId>ch.qos.logback</groupId>
279                         <artifactId>logback-classic</artifactId>
280                 </dependency>
281                 <dependency>
282                         <groupId>ch.qos.logback</groupId>
283                         <artifactId>logback-core</artifactId>
284                         <version>${logback.core.version}</version>
285                 </dependency>
286                 <dependency>
287                         <groupId>commons-codec</groupId>
288                         <artifactId>commons-codec</artifactId>
289                         <version>${commons.codec.version}</version>
290                 </dependency>
291                 <dependency>
292                         <groupId>org.apache.commons</groupId>
293                         <artifactId>commons-compress</artifactId>
294                         <version>${commons.compress.version}</version>
295                 </dependency>
296                 <dependency>
297                         <groupId>org.apache.commons</groupId>
298                         <artifactId>commons-lang3</artifactId>
299                         <version>${commons.lang3.version}</version>
300                 </dependency>
301                 <dependency>
302                         <groupId>javax.ws.rs</groupId>
303                         <artifactId>javax.ws.rs-api</artifactId>
304                         <version>${javax.ws.rs.version}</version>
305                 </dependency>
306                 <dependency>
307                         <groupId>org.codehaus.groovy</groupId>
308                         <artifactId>groovy</artifactId>
309                         <version>${groovy.version}</version>
310                 </dependency>
311                 <dependency>
312                         <groupId>org.onap.sdc.sdc-tosca</groupId>
313                         <artifactId>sdc-tosca</artifactId>
314                         <version>${sdc.tosca.version}</version>
315                 </dependency>
316                 <dependency>
317                         <groupId>org.onap.aai</groupId>
318                         <artifactId>rest-client</artifactId>
319                 </dependency>
320                 <dependency>
321                         <groupId>org.onap.aai.aai-common</groupId>
322                         <artifactId>aai-aaf-auth</artifactId>
323                         <version>${aai.common.version}</version>
324                         <exclusions>
325                                 <exclusion>
326                                         <groupId>org.springframework.boot</groupId>
327                                         <artifactId>spring-boot-starter-web</artifactId>
328                                 </exclusion>
329                         </exclusions>
330                 </dependency>
331                 <dependency>
332                         <groupId>org.onap.aaf.authz</groupId>
333                         <artifactId>aaf-cadi-core</artifactId>
334                         <version>${aaf.version}</version>
335                         <scope>compile</scope>
336                 </dependency>
337                 <dependency>
338                         <groupId>org.onap.aaf.authz</groupId>
339                         <artifactId>aaf-cadi-aaf</artifactId>
340                         <version>${aaf.version}</version>
341                         <scope>compile</scope>
342                 </dependency>
343                 <dependency>
344                         <groupId>org.onap.aaf.authz</groupId>
345                         <artifactId>aaf-auth-client</artifactId>
346                         <version>${aaf.version}</version>
347                 </dependency>
348                 <dependency>
349                         <groupId>org.onap.aaf.authz</groupId>
350                         <artifactId>aaf-cadi-client</artifactId>
351                         <version>${aaf.version}</version>
352                 </dependency>
353                 <dependency>
354                         <groupId>org.onap.aaf.authz</groupId>
355                         <artifactId>aaf-misc-env</artifactId>
356                         <version>${aaf.version}</version>
357                 </dependency>
358                 <dependency>
359                         <groupId>org.onap.aaf.authz</groupId>
360                         <artifactId>aaf-misc-rosetta</artifactId>
361                         <version>${aaf.version}</version>
362                 </dependency>
363
364                 <!-- Testing -->
365                 <dependency>
366                         <groupId>org.springframework.boot</groupId>
367                         <artifactId>spring-boot-starter-test</artifactId>
368                         <scope>test</scope>
369                 </dependency>
370                 <dependency>
371                         <groupId>org.onap.sdc.sdc-distribution-client</groupId>
372                         <artifactId>sdc-distribution-client</artifactId>
373                         <version>${sdc.distribution.client.version}</version>
374                         <scope>test</scope>
375                 </dependency>
376                 <dependency>
377                         <groupId>junit</groupId>
378                         <artifactId>junit</artifactId>
379                         <version>4.12</version>
380                         <scope>test</scope>
381                 </dependency>
382
383                 <dependency>
384                         <groupId>xmlunit</groupId>
385                         <artifactId>xmlunit</artifactId>
386                         <version>${xmlunit.version}</version>
387                         <scope>test</scope>
388                 </dependency>
389                 <dependency>
390                         <groupId>javax.xml.bind</groupId>
391                         <artifactId>jaxb-api</artifactId>
392                 </dependency>
393                 <dependency>
394                         <groupId>javax.xml.ws</groupId>
395                         <artifactId>jaxws-api</artifactId>
396                 </dependency>
397                 <dependency>
398                         <groupId>com.sun.xml.bind</groupId>
399                         <artifactId>jaxb-core</artifactId>
400                 </dependency>
401                 <dependency>
402                         <groupId>com.sun.xml.bind</groupId>
403                         <artifactId>jaxb-impl</artifactId>
404                 </dependency>
405                 <dependency>
406                         <groupId>jakarta.activation</groupId>
407                         <artifactId>jakarta.activation-api</artifactId>
408                         <version>${jakarta.activation.version}</version>
409                 </dependency>
410         </dependencies>
411
412         <build>
413                 <plugins>
414                         <plugin>
415                                 <groupId>org.springframework.boot</groupId>
416                                 <artifactId>spring-boot-maven-plugin</artifactId>
417                                 <version>${spring.boot.version}</version>
418                                 <configuration>
419                                         <jvmArguments>
420                                                 -DCONFIG_HOME=./appconfig-local
421                                                 -DAPP_HOME=.
422                                                 -Dtosca.mappings.config=./appconfig-local/tosca-mappings.json
423                                                 -DKEY_STORE_PASSWORD=${KEY_STORE_PASSWORD}
424                                         </jvmArguments>
425                                 </configuration>
426                                 <executions>
427                                         <execution>
428                                                 <goals>
429                                                         <goal>repackage</goal>
430                                                 </goals>
431                                         </execution>
432                                 </executions>
433                         </plugin>
434                         <plugin>
435                                 <groupId>org.apache.maven.plugins</groupId>
436                                 <artifactId>maven-dependency-plugin</artifactId>
437                                 <executions>
438                                         <execution>
439                                                 <id>unpack</id>
440                                                 <phase>initialize</phase>
441                                                 <goals>
442                                                         <goal>unpack</goal>
443                                                 </goals>
444                                                 <configuration>
445                                                         <artifactItems>
446                                                                 <artifactItem>
447                                                                         <groupId>${aai-schema.group.id}</groupId>
448                                                                         <artifactId>aai-schema</artifactId>
449                                                                         <version>${aai-schema.version}</version>
450                                                                         <type>jar</type>
451                                                                         <includes>${aai.schema.source.folder}/aai_schema_v**.xsd</includes>
452                                                                         <outputDirectory>${project.build.directory}/tmp</outputDirectory>
453                                                                 </artifactItem>
454                                                         </artifactItems>
455                                                 </configuration>
456                                         </execution>
457                                 </executions>
458                         </plugin>
459                         <plugin>
460                                 <groupId>org.apache.maven.plugins</groupId>
461                                 <artifactId>maven-antrun-plugin</artifactId>
462                                 <version>${antrun.version}</version>
463                                 <executions>
464                                         <execution>
465                                                 <id>Flatten XSDs</id>
466                                                 <phase>initialize</phase>
467                                                 <goals>
468                                                         <goal>run</goal>
469                                                 </goals>
470                                                 <configuration>
471                                                         <target>
472                                                                 <copy todir="${aai.schema.target.folder}" flatten="true">
473                                                                         <fileset dir="${project.build.directory}/tmp">
474                                                                                 <include name="**/*.xsd" />
475                                                                         </fileset>
476                                                                 </copy>
477                                                         </target>
478                                                 </configuration>
479                                         </execution>
480                                 </executions>
481                         </plugin>
482                         <plugin>
483                                 <groupId>org.jvnet.jaxb2.maven2</groupId>
484                                 <artifactId>maven-jaxb2-plugin</artifactId>
485                                 <version>${mvn.jaxb2.version}</version>
486                                 <executions>
487                                         <execution>
488                                                 <phase>process-sources</phase>
489                                                 <goals>
490                                                         <goal>generate</goal>
491                                                 </goals>
492                                         </execution>
493                                 </executions>
494                                 <configuration>
495                                         <schemaDirectory>${aai.schema.target.folder}</schemaDirectory>
496                                         <generatePackage>org.onap.aai.babel.xml.generator.xsd</generatePackage>
497                                         <generateDirectory>${project.build.directory}/generated-sources</generateDirectory>
498                                         <schemaIncludes>
499                                                 <include>aai_schema_latest.xsd</include>
500                                         </schemaIncludes>
501                                         <extension>true</extension>
502                                         <args>
503                                                 <arg>-Xannotate</arg>
504                                         </args>
505                                         <plugins>
506                                                 <plugin>
507                                                         <groupId>org.jvnet.jaxb2_commons</groupId>
508                                                         <artifactId>jaxb2-basics-annotate</artifactId>
509                                                         <version>0.6.4</version>
510                                                 </plugin>
511                                                 <!-- Add the dependencies with your annotations as 'plugins' below -->
512                                                 <plugin>
513                                                         <groupId>org.jvnet.jaxb2_commons</groupId>
514                                                         <artifactId>jaxb2-annotate-plugin-test-annox-annotations</artifactId>
515                                                         <version>1.0.0</version>
516                                                 </plugin>
517                                         </plugins>
518                                 </configuration>
519                         </plugin>
520                         <plugin>
521                                 <artifactId>exec-maven-plugin</artifactId>
522                                 <groupId>org.codehaus.mojo</groupId>
523                                 <version>1.5.0</version>
524                                 <executions>
525                                         <execution>
526                                                 <!-- Run our script to get latest xsd version -->
527                                                 <id>Get latest xsd version</id>
528                                                 <phase>generate-sources</phase>
529                                                 <goals>
530                                                         <goal>exec</goal>
531                                                 </goals>
532                                                 <configuration>
533                                                         <workingDirectory>${basedir}/scripts</workingDirectory>
534                                                         <executable>bash</executable>
535                                                         <commandlineArgs>get-latest-xsd-version.sh ${basedir}</commandlineArgs>
536                                                 </configuration>
537                                         </execution>
538                                 </executions>
539                         </plugin>
540                         <plugin>
541                                 <artifactId>maven-assembly-plugin</artifactId>
542                                 <configuration>
543                                         <descriptors>
544                                                 <descriptor>src/main/assembly/descriptor.xml</descriptor>
545                                         </descriptors>
546                                 </configuration>
547                                 <executions>
548                                         <execution>
549                                                 <id>make-assembly</id>
550                                                 <phase>package</phase>
551                                                 <goals>
552                                                         <goal>single</goal>
553                                                 </goals>
554                                         </execution>
555                                 </executions>
556                         </plugin>
557                         <plugin>
558                                 <groupId>com.mycila</groupId>
559                                 <artifactId>license-maven-plugin</artifactId>
560                                 <version>3.0</version>
561                                 <configuration>
562                                         <header>License.txt</header>
563                                         <includes>
564                                                 <include>src/main/java/**</include>
565                                                 <include>src/test/java/**</include>
566                                                 <include>pom.xml</include>
567                                         </includes>
568                                         <skipExistingHeaders>true</skipExistingHeaders>
569                                 </configuration>
570                                 <executions>
571                                         <execution>
572                                                 <goals>
573                                                         <!-- Set goal from "check" to "format" to auto update license headers -->
574                                                         <goal>check</goal>
575                                                 </goals>
576                                                 <phase>validate</phase>
577                                         </execution>
578                                 </executions>
579                         </plugin>
580                         <plugin>
581                                 <groupId>org.apache.maven.plugins</groupId>
582                                 <artifactId>maven-compiler-plugin</artifactId>
583                                 <version>${maven-compiler-plugin.version}</version>
584                                 <inherited>true</inherited>
585                                 <configuration>
586                                         <source>${maven-compiler-plugin.source}</source>
587                                         <target>${maven-compiler-plugin.target}</target>
588                                         <testSource>${maven-compiler-plugin.test.source}</testSource>
589                                         <testTarget>${maven-compiler-plugin.test.target}</testTarget>
590                                 </configuration>
591                         </plugin>
592                         <plugin>
593                                 <groupId>org.apache.maven.plugins</groupId>
594                                 <artifactId>maven-jar-plugin</artifactId>
595                                 <version>3.0.2</version>
596                                 <executions>
597                                         <execution>
598                                                 <phase>package</phase>
599                                                 <goals>
600                                                         <goal>jar</goal>
601                                                 </goals>
602                                                 <configuration>
603                                                         <classifier>client</classifier>
604                                                         <includes>
605                                                                 <include>**/babel/service/data/*</include>
606                                                         </includes>
607                                                 </configuration>
608                                         </execution>
609                                 </executions>
610                         </plugin>
611                         <plugin>
612                                 <groupId>org.apache.maven.plugins</groupId>
613                                 <artifactId>maven-deploy-plugin</artifactId>
614                                 <configuration>
615                                         <classifier>client</classifier>
616                                 </configuration>
617                         </plugin>
618
619
620                         <!-- once we connect aai-parent or oparent 3.0+ we can take out this
621                  whole section -->
622
623                         <plugin>
624                                 <groupId>org.jacoco</groupId>
625                                 <artifactId>jacoco-maven-plugin</artifactId>
626                                 <version>${jacoco-maven-plugin.version}</version>
627                                 <configuration>
628                                         <!-- Note: This exclusion list should match <sonar.exclusions> property
629                      above -->
630                                         <excludes>
631                                                 <exclude>**/gen/**</exclude>
632                                                 <exclude>**/generated-sources/**</exclude>
633                                                 <exclude>**/yang-gen/**</exclude>
634                                                 <exclude>**/pax/**</exclude>
635                                                 <exclude>org/onap/aai/babel/xml/generator/xsd/*</exclude>
636                                         </excludes>
637                                 </configuration>
638                                 <executions>
639                                         <!-- Prepares the property pointing to the JaCoCo runtime agent which
640                      is passed as VM argument when Maven the Surefire plugin is executed. -->
641                                         <execution>
642                                                 <id>pre-unit-test</id>
643                                                 <goals>
644                                                         <goal>prepare-agent</goal>
645                                                 </goals>
646                                                 <configuration>
647                                                         <!-- Sets the path to the file which contains the execution data
648                                  . -->
649                                                         <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
650                                                         <!-- Sets the name of the property containing the settings for JaCoCo
651                                  runtime agent. -->
652                                                         <propertyName>surefireArgLine</propertyName>
653                                                 </configuration>
654                                         </execution>
655                                         <!-- Ensures that the code coverage report for unit tests is created
656                      after unit tests have been run. -->
657                                         <execution>
658                                                 <id>post-unit-test</id>
659                                                 <phase>test</phase>
660                                                 <goals>
661                                                         <goal>report</goal>
662                                                 </goals>
663                                                 <configuration>
664                                                         <!-- Sets the path to the file which contains the execution data
665                                  . -->
666                                                         <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
667                                                         <!-- Sets the output directory for the code coverage report. -->
668                                                         <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
669                                                 </configuration>
670                                         </execution>
671                                         <execution>
672                                                 <id>pre-integration-test</id>
673                                                 <phase>pre-integration-test</phase>
674                                                 <goals>
675                                                         <goal>prepare-agent</goal>
676                                                 </goals>
677                                                 <configuration>
678                                                         <!-- Sets the path to the file which contains the execution data
679                                  . -->
680                                                         <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
681                                                         <!-- Sets the name of the property containing the settings for JaCoCo
682                                  runtime agent. -->
683                                                         <propertyName>failsafeArgLine</propertyName>
684                                                 </configuration>
685                                         </execution>
686                                         <!-- Ensures that the code coverage report for integration tests after
687                      integration tests have been run. -->
688                                         <execution>
689                                                 <id>post-integration-test</id>
690                                                 <phase>post-integration-test</phase>
691                                                 <goals>
692                                                         <goal>report</goal>
693                                                 </goals>
694                                                 <configuration>
695                                                         <!-- Sets the path to the file which contains the execution data
696                                  . -->
697                                                         <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
698                                                         <!-- Sets the output directory for the code coverage report. -->
699                                                         <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
700                                                 </configuration>
701                                         </execution>
702                                         <execution>
703                                                 <id>default-check</id>
704                                                 <goals>
705                                                         <goal>check</goal>
706                                                 </goals>
707                                                 <configuration>
708                                                         <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
709                                                         <rules>
710                                                                 <rule implementation="org.jacoco.maven.RuleConfiguration">
711                                                                         <element>BUNDLE</element>
712                                                                         <limits>
713                                                                                 <limit implementation="org.jacoco.report.check.Limit">
714                                                                                         <counter>LINE</counter>
715                                                                                         <value>COVEREDRATIO</value>
716                                                                                         <minimum>${jacoco.line.coverage.limit}</minimum>
717                                                                                 </limit>
718                                                                         </limits>
719                                                                 </rule>
720                                                         </rules>
721                                                 </configuration>
722                                         </execution>
723                                 </executions>
724                         </plugin>
725                         <plugin>
726                                 <groupId>org.apache.maven.plugins</groupId>
727                                 <artifactId>maven-surefire-plugin</artifactId>
728                                 <version>3.0.0-M4</version>
729                                 <configuration>
730                                         <!-- Sets the VM argument line used when unit tests are run. -->
731                                         <reuseForks>false</reuseForks>
732                                         <forkCount>1</forkCount>
733                                         <environmentVariables>
734                                                 <APP_HOME>.</APP_HOME>
735                                                 <CONFIG_HOME>src/test/resources</CONFIG_HOME>
736                                         </environmentVariables>
737                                         <argLine>${surefireArgLine}</argLine>
738                                         <!-- Excludes integration tests when unit tests are run. -->
739                                         <excludes>
740                                                 <exclude>**/IT*.java</exclude>
741                                         </excludes>
742                                 </configuration>
743                         </plugin>
744                         <plugin>
745                                 <groupId>org.apache.maven.plugins</groupId>
746                                 <artifactId>maven-failsafe-plugin</artifactId>
747                                 <version>3.0.0-M5</version>
748                                 <executions>
749                                         <!-- Ensures that both integration-test and verify goals of the Failsafe
750                      Maven plugin are executed. -->
751                                         <execution>
752                                                 <id>integration-tests</id>
753                                                 <goals>
754                                                         <goal>integration-test</goal>
755                                                         <goal>verify</goal>
756                                                 </goals>
757                                                 <configuration>
758                                                         <!-- Sets the VM argument line used when integration tests are run. -->
759                                                         <argLine>${failsafeArgLine}</argLine>
760                                                 </configuration>
761                                         </execution>
762                                 </executions>
763                         </plugin>
764                         <plugin>
765                                 <groupId>org.sonarsource.scanner.maven</groupId>
766                                 <artifactId>sonar-maven-plugin</artifactId>
767                                 <version>${sonar.scanner.version}</version>
768                         </plugin>
769                         <!-- end removable sonar config, note the additional exclusion for babel above -->
770                 </plugins>
771         </build>
772
773 </project>