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.1-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-security</artifactId>
\r
61 <groupId>org.springframework.boot</groupId>
\r
62 <artifactId>spring-boot-starter-actuator</artifactId>
\r
65 <groupId>org.powermock</groupId>
\r
66 <artifactId>powermock-api-mockito2</artifactId>
\r
70 <groupId>org.springframework.boot</groupId>
\r
71 <artifactId>spring-boot-starter-test</artifactId>
\r
75 <groupId>org.springframework.security</groupId>
\r
76 <artifactId>spring-security-test</artifactId>
\r
80 <groupId>org.jetbrains.kotlin</groupId>
\r
81 <artifactId>kotlin-test</artifactId>
\r
85 <groupId>io.projectreactor</groupId>
\r
86 <artifactId>reactor-test</artifactId>
\r
93 <!--config and resource files -->
\r
94 <directory>${basedir}/etc</directory>
\r
95 <targetPath>${basedir}/target/etc</targetPath>
\r
96 <filtering>true</filtering>
\r
98 <include>**/*</include>
\r
102 <!--config and resource files -->
\r
103 <directory>${basedir}/src/main/resources</directory>
\r
104 <targetPath>${basedir}/target/src/main/resources</targetPath>
\r
105 <filtering>true</filtering>
\r
107 <include>**/*</include>
\r
111 <directory>src/main/resources</directory>
\r
113 <include>**/*</include>
\r
115 <filtering>true</filtering>
\r
120 <artifactId>maven-resources-plugin</artifactId>
\r
121 <version>2.6</version>
\r
124 <id>copy-dockerfile</id>
\r
126 <goal>copy-resources</goal>
\r
127 </goals><!-- here the phase you need -->
\r
128 <phase>validate</phase>
\r
130 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
\r
133 <directory>src/main/docker</directory>
\r
135 <include>*</include>
\r
137 <filtering>true</filtering>
\r
146 <groupId>org.jacoco</groupId>
\r
147 <artifactId>jacoco-maven-plugin</artifactId>
\r
148 <version>0.7.5.201505241946</version>
\r
150 <!-- Prepares the property pointing to the JaCoCo runtime agent which
\r
151 is passed as VM argument when Maven the Surefire plugin is executed. -->
\r
153 <id>pre-unit-test</id>
\r
155 <goal>prepare-agent</goal>
\r
158 <!-- Sets the path to the file which contains the execution data. -->
\r
159 <destFile>${sonar.jacoco.reportPath}</destFile>
\r
160 <propertyName>surefireArgLine</propertyName>
\r
163 <!-- Ensures that the code coverage report for unit tests is created
\r
164 after unit tests have been run. -->
\r
166 <id>post-unit-test</id>
\r
167 <phase>test</phase>
\r
169 <goal>report</goal>
\r
172 <!-- Sets the path to the file which contains the execution data. -->
\r
173 <dataFile>${sonar.jacoco.reportPath}</dataFile>
\r
174 <!-- Sets the output directory for the code coverage report. -->
\r
175 <outputDirectory>${jacoco.path}</outputDirectory>
\r
181 <groupId>org.apache.maven.plugins</groupId>
\r
182 <artifactId>maven-antrun-plugin</artifactId>
\r
186 <phase>package</phase>
\r
189 <fixcrlf srcdir="${basedir}" eol="unix"
\r
190 includes="**/*.sh, **/*.source"/>
\r
200 <artifactId>maven-compiler-plugin</artifactId>
\r
201 <version>3.1</version>
\r
203 <!-- <skip>${skip.compile}</skip>-->
\r
204 <source>1.8</source>
\r
205 <target>1.8</target>
\r