1 <?xml version="1.0" encoding="UTF-8"?>
\r
3 ~ Copyright © 2017-2018 AT&T Intellectual Property.
\r
5 ~ Modifications Copyright © 2018 IBM.
\r
7 ~ Licensed under the Apache License, Version 2.0 (the "License");
\r
8 ~ you may not use this file except in compliance with the License.
\r
9 ~ You may obtain a copy of the License at
\r
11 ~ http://www.apache.org/licenses/LICENSE-2.0
\r
13 ~ Unless required by applicable law or agreed to in writing, software
\r
14 ~ distributed under the License is distributed on an "AS IS" BASIS,
\r
15 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
\r
16 ~ See the License for the specific language governing permissions and
\r
17 ~ limitations under the License.
\r
21 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
\r
22 xmlns="http://maven.apache.org/POM/4.0.0"
\r
23 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
\r
24 <modelVersion>4.0.0</modelVersion>
\r
26 <groupId>org.onap.ccsdk.apps.controllerblueprints</groupId>
\r
27 <artifactId>parent</artifactId>
\r
28 <version>0.3.0-SNAPSHOT</version>
\r
29 <relativePath>../parent</relativePath>
\r
31 <artifactId>application</artifactId>
\r
32 <name>Controller Blueprints Application</name>
\r
34 <swagger.directory>${basedir}/src/main/resources/swagger-ui/dist</swagger.directory>
\r
35 <java.version>1.8</java.version>
\r
36 <name.space>org.onap.ccsdk.apps</name.space> <!-- <name.space>${namespace}</name.space> -->
\r
37 <serviceArtifactName>controllerblueprints</serviceArtifactName>
\r
39 <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
\r
40 <sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis>
\r
41 <sonar.surefire.reportsPath>${basedir}/target/surefire-reports</sonar.surefire.reportsPath>
\r
42 <sonar.failsafe.reportsPath>${basedir}/target/failsafe-reports</sonar.failsafe.reportsPath>
\r
43 <jacoco.path>${basedir}/target/jacoco_report</jacoco.path>
\r
44 <jacoco.itPath>${basedir}/target/jacoco_itReport</jacoco.itPath>
\r
45 <sonar.jacoco.reportPath>${basedir}/target/jacoco-ut.exec</sonar.jacoco.reportPath>
\r
46 <sonar.jacoco.itReportPath>${basedir}/target/jacoco-it.exec</sonar.jacoco.itReportPath>
\r
47 <sonar.language>java</sonar.language>
\r
48 <ilib.version>2.0.7</ilib.version>
\r
53 <groupId>org.onap.ccsdk.apps.controllerblueprints</groupId>
\r
54 <artifactId>service</artifactId>
\r
57 <groupId>org.springframework.boot</groupId>
\r
58 <artifactId>spring-boot-starter-actuator</artifactId>
\r
61 <groupId>org.powermock</groupId>
\r
62 <artifactId>powermock-api-mockito2</artifactId>
\r
66 <groupId>org.springframework.boot</groupId>
\r
67 <artifactId>spring-boot-starter-test</artifactId>
\r
71 <groupId>org.jetbrains.kotlin</groupId>
\r
72 <artifactId>kotlin-test</artifactId>
\r
76 <groupId>io.projectreactor</groupId>
\r
77 <artifactId>reactor-test</artifactId>
\r
84 <!--config and resource files -->
\r
85 <directory>${basedir}/etc</directory>
\r
86 <targetPath>${basedir}/target/etc</targetPath>
\r
87 <filtering>true</filtering>
\r
89 <include>**/*</include>
\r
93 <!--config and resource files -->
\r
94 <directory>${basedir}/src/main/resources</directory>
\r
95 <targetPath>${basedir}/target/src/main/resources</targetPath>
\r
96 <filtering>true</filtering>
\r
98 <include>**/*</include>
\r
102 <directory>src/main/resources</directory>
\r
104 <include>**/*</include>
\r
106 <filtering>true</filtering>
\r
111 <artifactId>maven-resources-plugin</artifactId>
\r
112 <version>2.6</version>
\r
115 <id>copy-dockerfile</id>
\r
117 <goal>copy-resources</goal>
\r
118 </goals><!-- here the phase you need -->
\r
119 <phase>validate</phase>
\r
121 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
\r
124 <directory>src/main/docker</directory>
\r
126 <include>*</include>
\r
128 <filtering>true</filtering>
\r
137 <groupId>org.jacoco</groupId>
\r
138 <artifactId>jacoco-maven-plugin</artifactId>
\r
139 <version>0.7.5.201505241946</version>
\r
141 <!-- Prepares the property pointing to the JaCoCo runtime agent which
\r
142 is passed as VM argument when Maven the Surefire plugin is executed. -->
\r
144 <id>pre-unit-test</id>
\r
146 <goal>prepare-agent</goal>
\r
149 <!-- Sets the path to the file which contains the execution data. -->
\r
150 <destFile>${sonar.jacoco.reportPath}</destFile>
\r
151 <propertyName>surefireArgLine</propertyName>
\r
154 <!-- Ensures that the code coverage report for unit tests is created
\r
155 after unit tests have been run. -->
\r
157 <id>post-unit-test</id>
\r
158 <phase>test</phase>
\r
160 <goal>report</goal>
\r
163 <!-- Sets the path to the file which contains the execution data. -->
\r
164 <dataFile>${sonar.jacoco.reportPath}</dataFile>
\r
165 <!-- Sets the output directory for the code coverage report. -->
\r
166 <outputDirectory>${jacoco.path}</outputDirectory>
\r
172 <groupId>org.apache.maven.plugins</groupId>
\r
173 <artifactId>maven-antrun-plugin</artifactId>
\r
177 <phase>package</phase>
\r
180 <fixcrlf srcdir="${basedir}" eol="unix"
\r
181 includes="**/*.sh, **/*.source"/>
\r
191 <artifactId>maven-compiler-plugin</artifactId>
\r
192 <version>3.1</version>
\r
194 <!-- <skip>${skip.compile}</skip>-->
\r
195 <source>1.8</source>
\r
196 <target>1.8</target>
\r