blob: cf2007437b729fdc9b541d7ed7a09b953694d8d2 [file] [log] [blame]
Kajur, Harish (vk250x)d64d7892018-11-26 00:07:25 -05001<?xml version="1.0" encoding="UTF-8"?>
2<!--
3
4 ============LICENSE_START=======================================================
5 org.onap.aai
6 ================================================================================
7 Copyright © 2017-2018 AT&T Intellectual Property. All rights 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:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
24 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
25 <modelVersion>4.0.0</modelVersion>
26 <groupId>org.onap.aai.schema-service</groupId>
27 <artifactId>aai-schema-service</artifactId>
Jimmy Forsyth749dea32019-05-03 15:48:25 -040028 <version>1.0.7-SNAPSHOT</version>
Kajur, Harish (vk250x)d64d7892018-11-26 00:07:25 -050029 <parent>
30 <groupId>org.onap.aai.schema-service</groupId>
31 <artifactId>schema-service</artifactId>
Jimmy Forsyth749dea32019-05-03 15:48:25 -040032 <version>1.0.7-SNAPSHOT</version>
Kajur, Harish (vk250x)d64d7892018-11-26 00:07:25 -050033 </parent>
34 <properties>
35 <java.version>1.8</java.version>
36 <start-class>org.onap.aai.schemaservice.SchemaServiceApp</start-class>
37
Kajur, Harish (vk250x)d8393a82018-12-13 08:37:13 -050038 <aai.core.version>1.4.0</aai.core.version>
Kajur, Harish (vk250x)d64d7892018-11-26 00:07:25 -050039
Jimmy Forsyth4dddfa32019-04-09 12:25:14 -040040 <spring.boot.version>1.5.20.RELEASE</spring.boot.version>
Kajur, Harish (vk250x)d64d7892018-11-26 00:07:25 -050041
42 <!-- Start of the jacoco plugin properties -->
43 <sonar.language>java</sonar.language>
44 <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
45 <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
46 <sonar.jacoco.reportPath>${project.build.directory}/coverage-reports/jacoco.exec</sonar.jacoco.reportPath>
47 <sonar.jacoco.reportMissing.force.zero>false</sonar.jacoco.reportMissing.force.zero>
48 <sonar.projectVersion>${project.version}</sonar.projectVersion>
49 <!-- End of the jacoco plugin properties -->
50
51 <!-- Start of Application Dependencies -->
52 <eelf.core.version>1.0.0</eelf.core.version>
53 <logback.version>1.2.3</logback.version>
54 <hamcrest.junit.version>2.0.0.0</hamcrest.junit.version>
55 <junit.version>4.12</junit.version>
56 <google.guava.version>16.0.1</google.guava.version>
57 <janusgraph.version>0.2.0</janusgraph.version>
58 <mockito.version>1.10.19</mockito.version>
59 <powermock.version>1.6.2</powermock.version>
60 <jaxb.version>2.2.11</jaxb.version>
61 <eclipse.persistence.version>2.6.2</eclipse.persistence.version>
62 <!-- End of Application Dependencies -->
63
64 <docker.fabric.version>0.23.0</docker.fabric.version>
65 <!-- Default docker registry that maven fabric plugin will try to pull from -->
66 <docker.registry>docker.io</docker.registry>
67 <!-- Specifying the docker push registry where the image should be pushed -->
68 <!-- This value should be overwritten at runtime to wherever need to be pushed to -->
69 <docker.push.registry>localhost:5000</docker.push.registry>
Dmitry Puzikov7b11e7c2019-05-13 13:04:00 +020070 <aai.docker.version>1.0.0</aai.docker.version>
Kajur, Harish (vk250x)d64d7892018-11-26 00:07:25 -050071
72 <!--
73 Location where assembly of our scripts, resources and main jar will be held
74 Check the ${project.artifactId}/src/main/assembly/descriptor.xml for more info
75 -->
76 <aai.build.directory>${project.build.directory}/${project.artifactId}-${project.version}-build/
77 </aai.build.directory>
78 <aai.docker.namespace>onap</aai.docker.namespace>
79
80 <maven.skip.tests>true</maven.skip.tests>
81
Kajur, Harish (vk250x)47fe5842019-01-22 17:11:02 -050082 <jacoco.line.coverage.limit>0.44</jacoco.line.coverage.limit>
Kajur, Harish (vk250x)d64d7892018-11-26 00:07:25 -050083
84 <!-- This will be used for the docker images as the default format of maven build has issues -->
85 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
86 <javadoc.plugin.version>2.10.4</javadoc.plugin.version>
87
88 <!-- Start of Default ONAP Schema Properties -->
89 <schema.source.name>onap</schema.source.name>
90 <schema.configuration.location>N/A</schema.configuration.location>
91 <schema.nodes.location>${project.basedir}/src/main/resources/schema/${schema.source.name}/oxm</schema.nodes.location>
92 <schema.edges.location>${project.basedir}/src/main/resources/schema/${schema.source.name}/dbedgerules</schema.edges.location>
93 <schema.version.depth.start>v10</schema.version.depth.start>
94 <schema.version.related.link.start>v10</schema.version.related.link.start>
95 <schema.version.app.root.start>v11</schema.version.app.root.start>
96 <schema.version.namespace.change.start>v12</schema.version.namespace.change.start>
97 <schema.version.edge.label.start>v12</schema.version.edge.label.start>
Kajur, Harish (vk250x)9f6237d2019-02-18 10:17:23 -050098 <schema.version.api.default>v16</schema.version.api.default>
99 <schema.version.list>v10,v11,v12,v13,v14,v15,v16</schema.version.list>
Kajur, Harish (vk250x)d64d7892018-11-26 00:07:25 -0500100 <schema.uri.base.path>/aai/schema-service</schema.uri.base.path>
101 <!-- End of Default ONAP Schema Properties -->
102
103 <!-- Setting some default value to not complain by editor but it will be overridden by gmaven plugin -->
104 </properties>
105 <profiles>
106 <!-- Docker profile to be used for building docker image and pushing to nexus -->
107 <profile>
108 <id>docker</id>
109 <build>
110 <plugins>
111 <plugin>
112 <groupId>io.fabric8</groupId>
113 <artifactId>docker-maven-plugin</artifactId>
114 <version>${docker.fabric.version}</version>
115 <configuration>
116 <verbose>true</verbose>
117 <apiVersion>1.23</apiVersion>
118 <images>
119 <image>
120 <name>${docker.push.registry}/${aai.docker.namespace}/${project.artifactId}:%l</name>
121 <build>
122 <filter>@</filter>
123 <tags>
124 <tag>latest</tag>
125 <tag>${project.docker.latesttag.version}</tag>
126 <tag>${project.major.version}.${project.minor.version}-STAGING-${maven.build.timestamp}</tag>
127 </tags>
128 <cleanup>try</cleanup>
129 <dockerFileDir>${project.basedir}/src/main/docker</dockerFileDir>
130 <assembly>
131 <inline>
132 <fileSets>
133 <fileSet>
134 <directory>${aai.build.directory}</directory>
135 <outputDirectory>/${project.artifactId}</outputDirectory>
136 </fileSet>
137 </fileSets>
138 </inline>
139 </assembly>
140 </build>
141 </image>
142 </images>
143 </configuration>
144 <executions>
145 <execution>
146 <id>clean-images</id>
147 <phase>pre-clean</phase>
148 <goals>
149 <goal>remove</goal>
150 </goals>
151 <configuration>
152 <removeAll>true</removeAll>
153 </configuration>
154 </execution>
155 <execution>
156 <id>generate-images</id>
157 <phase>package</phase>
158 <goals>
159 <goal>build</goal>
160 </goals>
161 </execution>
162 <execution>
163 <id>push-images</id>
164 <phase>deploy</phase>
165 <goals>
166 <goal>push</goal>
167 </goals>
168 </execution>
169 </executions>
170 </plugin>
171 </plugins>
172 </build>
173 </profile>
174 <!-- Start of ONAP Profile -->
175 <profile>
176 <id>onap</id>
177 <properties>
178 <schema.source.name>onap</schema.source.name>
179 <schema.version.namespace.change.start>v12</schema.version.namespace.change.start>
Kajur, Harish (vk250x)9f6237d2019-02-18 10:17:23 -0500180 <schema.version.list>v10,v11,v12,v13,v14,v15,v16</schema.version.list>
Kajur, Harish (vk250x)d64d7892018-11-26 00:07:25 -0500181 </properties>
182 </profile>
183 <!-- End of ONAP Profile -->
184 <profile>
185 <id>runAjsc</id>
186 <properties>
187 <skipTests>${maven.skip.tests}</skipTests>
188 </properties>
189 <build>
190 <defaultGoal>pre-integration-test</defaultGoal>
191 <plugins>
192 <plugin>
193 <groupId>org.codehaus.mojo</groupId>
194 <artifactId>exec-maven-plugin</artifactId>
195 <version>1.6.0</version>
196 <executions>
197 <execution>
198 <id>run-spring-boot</id>
199 <phase>package</phase>
200 <goals>
201 <goal>java</goal>
202 </goals>
203 </execution>
204 </executions>
205 <configuration>
206 <mainClass>${start-class}</mainClass>
207 <systemProperties>
208 <property>
209 <key>schema.source.name</key>
210 <value>${schema.source.name}</value>
211 </property>
212 <property>
213 <key>schema.configuration.location</key>
214 <value>${schema.configuration.location}</value>
215 </property>
216 <property>
217 <key>schema.nodes.location</key>
218 <value>${schema.nodes.location}</value>
219 </property>
220 <property>
221 <key>schema.edges.location</key>
222 <value>${schema.edges.location}</value>
223 </property>
224 <property>
225 <key>schema.version.depth.start</key>
226 <value>${schema.version.depth.start}</value>
227 </property>
228 <property>
229 <key>schema.version.related.link.start</key>
230 <value>${schema.version.related.link.start}</value>
231 </property>
232 <property>
233 <key>schema.version.app.root.start</key>
234 <value>${schema.version.app.root.start}</value>
235 </property>
236 <property>
237 <key>schema.version.namespace.change.start</key>
238 <value>${schema.version.namespace.change.start}</value>
239 </property>
240 <property>
241 <key>schema.version.edge.label.start</key>
242 <value>${schema.version.edge.label.start}</value>
243 </property>
244 <property>
245 <key>schema.version.api.default</key>
246 <value>${schema.version.api.default}</value>
247 </property>
248 <property>
249 <key>schema.version.list</key>
250 <value>${schema.version.list}</value>
251 </property>
252 <property>
253 <key>schema.uri.base.path</key>
254 <value>${schema.uri.base.path}</value>
255 </property>
256 </systemProperties>
257 <executable>java</executable>
258 </configuration>
259 </plugin>
260 </plugins>
261 </build>
262 </profile>
263 </profiles>
264 <dependencyManagement>
265 <dependencies>
266 <dependency>
267 <groupId>org.springframework.boot</groupId>
268 <artifactId>spring-boot-starter-parent</artifactId>
269 <version>${spring.boot.version}</version>
270 <type>pom</type>
271 <scope>import</scope>
272 </dependency>
273 </dependencies>
274 </dependencyManagement>
275 <dependencies>
276 <dependency>
277 <groupId>com.att.eelf</groupId>
278 <artifactId>eelf-core</artifactId>
279 <version>${eelf.core.version}</version>
280 </dependency>
281 <dependency>
282 <groupId>ch.qos.logback</groupId>
283 <artifactId>logback-core</artifactId>
284 <version>${logback.version}</version>
285 </dependency>
286 <dependency>
287 <groupId>ch.qos.logback</groupId>
288 <artifactId>logback-classic</artifactId>
289 <version>${logback.version}</version>
290 </dependency>
291 <dependency>
292 <groupId>ch.qos.logback</groupId>
293 <artifactId>logback-access</artifactId>
294 <version>${logback.version}</version>
295 </dependency>
296 <dependency>
297 <groupId>org.onap.aai.aai-common</groupId>
298 <artifactId>aai-core</artifactId>
299 <version>${aai.core.version}</version>
300 <exclusions>
301 <exclusion>
302 <groupId>com.sun.jersey</groupId>
303 <artifactId>jersey-core</artifactId>
304 </exclusion>
305 <exclusion>
306 <groupId>org.codehaus.jackson</groupId>
307 <artifactId>jackson-mapper-asl</artifactId>
308 </exclusion>
309 <exclusion>
310 <groupId>org.eclipse.jetty</groupId>
311 <artifactId>jetty-http</artifactId>
312 </exclusion>
313 <exclusion>
314 <groupId>org.eclipse.jetty</groupId>
315 <artifactId>jetty-server</artifactId>
316 </exclusion>
317 <exclusion>
318 <groupId>org.springframework</groupId>
319 <artifactId>spring-web</artifactId>
320 </exclusion>
321 <exclusion>
322 <groupId>org.onap.aai</groupId>
323 <artifactId>aai-schema-ingest</artifactId>
324 </exclusion>
325 </exclusions>
326 </dependency>
327 <dependency>
328 <groupId>org.hamcrest</groupId>
329 <artifactId>hamcrest-junit</artifactId>
330 <version>${hamcrest.junit.version}</version>
331 </dependency>
332 <dependency>
333 <groupId>junit</groupId>
334 <artifactId>junit</artifactId>
335 <version>${junit.version}</version>
336 <scope>test</scope>
337 </dependency>
338 <dependency>
339 <groupId>com.google.guava</groupId>
340 <artifactId>guava</artifactId>
341 <version>${google.guava.version}</version>
342 </dependency>
343 <dependency>
344 <groupId>com.fasterxml.jackson.jaxrs</groupId>
345 <artifactId>jackson-jaxrs-json-provider</artifactId>
346 </dependency>
347 <dependency>
348 <groupId>org.mockito</groupId>
349 <artifactId>mockito-all</artifactId>
350 <version>${mockito.version}</version>
351 <scope>test</scope>
352 </dependency>
353 <dependency>
354 <groupId>javax.xml.bind</groupId>
355 <artifactId>jaxb-api</artifactId>
356 <version>${jaxb.version}</version>
357 </dependency>
358 <dependency>
359 <groupId>com.sun.xml.bind</groupId>
360 <artifactId>jaxb-impl</artifactId>
361 <version>${jaxb.version}</version>
362 </dependency>
363 <dependency>
364 <groupId>com.sun.xml.bind</groupId>
365 <artifactId>jaxb-core</artifactId>
366 <version>${jaxb.version}</version>
367 </dependency>
368 <dependency>
369 <groupId>com.sun.xml.bind</groupId>
370 <artifactId>jaxb-xjc</artifactId>
371 <version>${jaxb.version}</version>
372 </dependency>
373 <dependency>
374 <groupId>org.eclipse.persistence</groupId>
375 <artifactId>eclipselink</artifactId>
376 <version>${eclipse.persistence.version}</version>
377 </dependency>
378 <dependency>
379 <groupId>org.eclipse.persistence</groupId>
380 <artifactId>org.eclipse.persistence.moxy</artifactId>
381 <version>${eclipse.persistence.version}</version>
382 <scope>compile</scope>
383 </dependency>
384 <dependency>
385 <groupId>org.springframework.boot</groupId>
386 <artifactId>spring-boot-starter-web</artifactId>
387 <exclusions>
388 <exclusion>
389 <groupId>org.springframework.boot</groupId>
390 <artifactId>spring-boot-starter-tomcat</artifactId>
391 </exclusion>
392 </exclusions>
393 </dependency>
394 <dependency>
395 <groupId>org.springframework.boot</groupId>
396 <artifactId>spring-boot-starter-jetty</artifactId>
397 </dependency>
398 <dependency>
399 <groupId>org.springframework.boot</groupId>
400 <artifactId>spring-boot-starter-jersey</artifactId>
401 </dependency>
402 <dependency>
403 <groupId>org.springframework.boot</groupId>
404 <artifactId>spring-boot-starter-aop</artifactId>
405 </dependency>
406 <dependency>
407 <groupId>org.springframework.boot</groupId>
408 <artifactId>spring-boot-test</artifactId>
409 <scope>test</scope>
410 </dependency>
Kajur, Harish (vk250x)47fe5842019-01-22 17:11:02 -0500411 <dependency>
412 <groupId>org.springframework</groupId>
413 <artifactId>spring-test</artifactId>
414 <scope>test</scope>
415 </dependency>
416 <dependency>
417 <groupId>org.mockito</groupId>
418 <artifactId>mockito-all</artifactId>
419 <version>${mockito.version}</version>
420 <scope>test</scope>
421 </dependency>
422 <dependency>
423 <groupId>org.hamcrest</groupId>
424 <artifactId>hamcrest-junit</artifactId>
425 <version>${hamcrest.junit.version}</version>
426 </dependency>
Kajur, Harish (vk250x)d64d7892018-11-26 00:07:25 -0500427 </dependencies>
428 <build>
429 <resources>
430 <resource>
431 <directory>${project.basedir}/src/main/swm</directory>
432 <targetPath>${project.build.directory}/swm</targetPath>
433 <filtering>false</filtering>
434 </resource>
435 <resource>
436 <directory>${project.basedir}/src/main/resources</directory>
437 <includes>
438 <include>application.properties</include>
439 <include>dme2.properties</include>
440 <include>logback.xml</include>
441 <include>localhost-access-logback.xml</include>
442 </includes>
443 <targetPath>${project.build.directory}/swm/package/nix/dist_files/opt/app/${project.artifactId}/appconfig</targetPath>
444 <filtering>false</filtering>
445 </resource>
446 <resource>
447 <directory>${project.basedir}/src/main/resources</directory>
448 <includes>
449 <include>**/*</include>
450 </includes>
451 <filtering>true</filtering>
452 </resource>
453 <resource>
454 <directory>${project.basedir}/src/main/resources/etc/appprops/</directory>
455 <includes>
456 <include>aaiconfig.properties</include>
457 </includes>
458 <targetPath>${project.build.directory}/swm/package/nix/dist_files/opt/app/${project.artifactId}/appconfig</targetPath>
459 <filtering>false</filtering>
460 </resource>
461 <resource>
462 <directory>${project.basedir}/src/main/resources/etc/auth/</directory>
463 <includes>
464 <include>aai-client-cert.p12</include>
465 <include>tomcat_keystore</include>
466 <include>aai_policy.json</include>
467 </includes>
468 <targetPath>${project.build.directory}/swm/package/nix/dist_files/opt/app/${project.artifactId}/appconfig</targetPath>
469 <filtering>true</filtering>
470 </resource>
471 <resource>
472 <directory>${project.basedir}/src/main/resources/</directory>
473 <includes>
474 <include>logback.xml</include>
475 <include>localhost-access-logback.xml</include>
476 <include>hbase-site.xml</include>
477 </includes>
478 <targetPath>${project.build.directory}/swm/package/nix/dist_files/opt/app/${project.artifactId}/appconfig</targetPath>
479 <filtering>true</filtering>
480 </resource>
481 <resource>
482 <directory>${project.basedir}/src/main/docker</directory>
483 <includes>
484 <include>**/*</include>
485 </includes>
486 <targetPath>${aai.build.directory}</targetPath>
487 <filtering>true</filtering>
488 </resource>
489 <resource>
490 <directory>${project.build.directory}/</directory>
491 <includes>
492 <include>${project.artifactId}-${project.version}.jar</include>
493 </includes>
494 <targetPath>${aai.build.directory}/lib/</targetPath>
495 <filtering>false</filtering>
496 </resource>
Kajur, Harish (vk250x)d64d7892018-11-26 00:07:25 -0500497 </resources>
498 <pluginManagement>
499 <plugins>
500 <plugin>
501 <groupId>org.codehaus.groovy.maven</groupId>
502 <artifactId>gmaven-plugin</artifactId>
503 <version>1.0</version>
504 <executions>
505 <execution>
506 <phase>validate</phase>
507 <goals>
508 <goal>execute</goal>
509 </goals>
510 <configuration>
511 <source>
512 println project.properties['aai.project.version'];
513 def versionArray;
514 if (project.properties['aai.project.version'] != null) {
515 versionArray = project.properties['aai.project.version'].split('\\.');
516 }
517
518 project.properties["project.major.version"] = versionArray[0];
519 project.properties["project.minor.version"] = versionArray[1];
520 project.properties['project.docker.latesttag.version'] = versionArray[0] + '.' + versionArray[1] + '-STAGING-latest';
521 println 'New Tag for docker:' + project.properties['project.docker.latesttag.version'];
522 </source>
523 </configuration>
524 </execution>
525 </executions>
526 </plugin>
527 </plugins>
528 </pluginManagement>
529 <plugins>
530 <plugin>
531 <groupId>org.springframework.boot</groupId>
532 <artifactId>spring-boot-maven-plugin</artifactId>
533 </plugin>
534 <plugin>
535 <groupId>org.apache.maven.plugins</groupId>
536 <artifactId>maven-clean-plugin</artifactId>
537 <version>2.4.1</version>
538 <configuration>
539 <filesets>
540 <fileset>
541 <directory>${project.basedir}/src/main/resources/schema</directory>
542 <includes>
543 <include>**/*</include>
544 </includes>
545 <followSymlinks>false</followSymlinks>
546 </fileset>
547 </filesets>
548 </configuration>
549 </plugin>
550 <plugin>
551 <groupId>org.codehaus.groovy.maven</groupId>
552 <artifactId>gmaven-plugin</artifactId>
553 </plugin>
554 <plugin>
555 <groupId>org.apache.maven.plugins</groupId>
556 <artifactId>maven-dependency-plugin</artifactId>
557 <version>2.10</version>
558 </plugin>
559 <plugin>
560 <groupId>org.apache.maven.plugins</groupId>
561 <artifactId>maven-javadoc-plugin</artifactId>
562 <version>${javadoc.plugin.version}</version>
563 </plugin>
564 <plugin>
565 <artifactId>maven-assembly-plugin</artifactId>
566 <configuration>
567 <descriptors>
568 <descriptor>src/main/assembly/descriptor.xml</descriptor>
569 </descriptors>
570 </configuration>
571 <executions>
572 <execution>
573 <id>make-assembly</id> <!-- this is used for inheritance merges -->
574 <phase>package</phase> <!-- bind to the packaging phase -->
575 <goals>
576 <goal>single</goal>
577 </goals>
578 </execution>
579 </executions>
580 </plugin>
581 <plugin>
Kajur, Harish (vk250x)47fe5842019-01-22 17:11:02 -0500582 <artifactId>maven-resources-plugin</artifactId>
583 <version>2.7</version>
584 <executions>
585 <execution>
586 <id>copy-oxm-edgerules-project</id>
587 <phase>initialize</phase>
588 <goals>
589 <goal>copy-resources</goal>
590 </goals>
591 <configuration>
592 <outputDirectory>${project.basedir}/src/main/resources/schema</outputDirectory>
593 <resources>
594 <resource>
595 <directory>${project.basedir}/../aai-schema/src/main/resources/</directory>
596 <includes>
597 <include>**/oxm/**/*.xml</include>
598 <include>**/dbedgerules/**/*.json</include>
599 </includes>
600 </resource>
601 </resources>
602 </configuration>
603 </execution>
604 <execution>
605 <id>copy-queries-project</id>
606 <phase>initialize</phase>
607 <goals>
608 <goal>copy-resources</goal>
609 </goals>
610 <configuration>
611 <outputDirectory>${project.basedir}/src/main/resources/schema</outputDirectory>
612 <resources>
613 <resource>
614 <directory>${project.basedir}/../aai-queries/src/main/resources/schema</directory>
615 <includes>
616 <include>**/query/**/*.json</include>
617 </includes>
618 </resource>
619 </resources>
620 </configuration>
621 </execution>
622 <execution>
623 <id>copy-oxm-edgerules</id>
624 <phase>initialize</phase>
625 <goals>
626 <goal>copy-resources</goal>
627 </goals>
628 <configuration>
629 <outputDirectory>${project.build.directory}/swm/package/nix/dist_files/opt/app/${project.artifactId}/appconfig/schema/</outputDirectory>
630 <resources>
631 <resource>
632 <directory>${project.basedir}/../aai-schema/src/main/resources/</directory>
633 <includes>
634 <include>**/oxm/**/*.xml</include>
635 <include>**/dbedgerules/**/*.json</include>
636 </includes>
637 </resource>
638 </resources>
639 </configuration>
640 </execution>
641 <execution>
642 <id>copy-queries</id>
643 <phase>initialize</phase>
644 <goals>
645 <goal>copy-resources</goal>
646 </goals>
647 <configuration>
648 <outputDirectory>${project.build.directory}/swm/package/nix/dist_files/opt/app/${project.artifactId}/appconfig/schema/</outputDirectory>
649 <resources>
650 <resource>
651 <directory>${project.basedir}/../aai-queries/src/main/resources/schema</directory>
652 <includes>
653 <include>**/query/**/*.json</include>
654 </includes>
655 </resource>
656 </resources>
657 </configuration>
658 </execution>
659 </executions>
660 </plugin>
661 <plugin>
Kajur, Harish (vk250x)d64d7892018-11-26 00:07:25 -0500662 <groupId>org.apache.maven.plugins</groupId>
663 <artifactId>maven-surefire-plugin</artifactId>
664 <version>2.12.4</version>
665 <configuration>
666 <argLine>-noverify ${argLine}</argLine>
667 <runOrder>alphabetical</runOrder>
668 </configuration>
669 </plugin>
670 <plugin>
671 <groupId>com.mycila</groupId>
672 <artifactId>license-maven-plugin</artifactId>
673 </plugin>
674 <plugin>
675 <groupId>org.codehaus.mojo</groupId>
676 <artifactId>sonar-maven-plugin</artifactId>
677 <version>3.3</version>
678 </plugin>
679 <plugin>
680 <groupId>org.jacoco</groupId>
681 <artifactId>jacoco-maven-plugin</artifactId>
682 <version>0.7.9</version>
683 <configuration>
684 <dumpOnExit>true</dumpOnExit>
685 <excludes>
686 <exclude>**/**/models/**/*.class</exclude>
687 </excludes>
688 </configuration>
689 <executions>
690 <execution>
691 <id>jacoco-initialize-unit-tests</id>
692 <goals>
693 <goal>prepare-agent</goal>
694 </goals>
695 <configuration>
696 <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
697 <!-- <append>true</append> -->
698 </configuration>
699 </execution>
700 <execution>
701 <id>post-unit-test</id>
702 <phase>test</phase>
703 <goals>
704 <goal>report</goal>
705 </goals>
706 <configuration>
707 <!-- Sets the path to the file which contains the execution data. -->
708 <dataFile>${project.build.directory}/coverage-reports/jacoco.exec</dataFile>
709 <!-- Sets the output directory for the code coverage report. -->
710 <outputDirectory>${project.reporting.outputDirectory}/jacoco</outputDirectory>
711 </configuration>
712 </execution>
713 <execution>
714 <id>default-check</id>
715 <goals>
716 <goal>check</goal>
717 </goals>
718 <configuration>
719 <dataFile>${project.build.directory}/coverage-reports/jacoco.exec</dataFile>
720 <rules>
721 <!-- implementation is needed only for Maven 2 -->
722 <rule implementation="org.jacoco.maven.RuleConfiguration">
723 <element>BUNDLE</element>
724 <limits>
725 <limit implementation="org.jacoco.report.check.Limit">
726 <counter>LINE</counter>
727 <value>COVEREDRATIO</value>
728 <minimum>${jacoco.line.coverage.limit}</minimum>
729 </limit>
730 </limits>
731 </rule>
732 </rules>
733 </configuration>
734 </execution>
735 </executions>
736 </plugin>
737 <plugin>
738 <groupId>org.apache.maven.plugins</groupId>
739 <artifactId>maven-deploy-plugin</artifactId>
740 <executions>
741 <execution>
742 <id>default-deploy</id>
743 <phase>none</phase>
744 </execution>
745 </executions>
746 </plugin>
747 <plugin>
748 <groupId>org.sonatype.plugins</groupId>
749 <artifactId>nexus-staging-maven-plugin</artifactId>
750 <version>1.6.7</version>
751 <extensions>true</extensions>
752 <configuration>
753 <nexusUrl>${nexusproxy}</nexusUrl>
754 <stagingProfileId>176c31dfe190a</stagingProfileId>
755 <serverId>ecomp-staging</serverId>
756 </configuration>
757 </plugin>
758 <plugin>
759 <groupId>org.springframework.boot</groupId>
760 <artifactId>spring-boot-maven-plugin</artifactId>
761 <version>${spring.boot.version}</version>
762 <configuration>
763 <mainClass>${start-class}</mainClass>
764 <layout>ZIP</layout>
765 </configuration>
766 <executions>
767 <execution>
768 <goals>
769 <goal>repackage</goal>
770 </goals>
771 </execution>
772 </executions>
773 </plugin>
774 <plugin>
775 <groupId>org.apache.maven.plugins</groupId>
776 <artifactId>maven-clean-plugin</artifactId>
777 <version>2.4.1</version>
778 <configuration>
779 <filesets>
780 <fileset>
781 <directory>${project.basedir}/src/main/resources/schema</directory>
782 <includes>
783 <include>**/*</include>
784 </includes>
785 <followSymlinks>false</followSymlinks>
786 </fileset>
787 </filesets>
788 </configuration>
789 </plugin>
790 </plugins>
791 </build>
792 <reporting>
793 <plugins>
794 <plugin>
795 <groupId>org.apache.maven.plugins</groupId>
796 <artifactId>maven-javadoc-plugin</artifactId>
797 <version>2.10.4</version>
798 <configuration>
799 <failOnError>false</failOnError>
800 <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
801 <docletArtifact>
802 <groupId>org.umlgraph</groupId>
803 <artifactId>umlgraph</artifactId>
804 <version>5.6</version>
805 </docletArtifact>
806 <additionalparam>-views</additionalparam>
807 <useStandardDocletOptions>true</useStandardDocletOptions>
808 </configuration>
809 </plugin>
810 </plugins>
811 </reporting>
812</project>