1 <?xml version="1.0" encoding="UTF-8"?>
\r
3 ~ Copyright © 2017-2018 AT&T Intellectual Property.
\r
5 ~ Licensed under the Apache License, Version 2.0 (the "License");
\r
6 ~ you may not use this file except in compliance with the License.
\r
7 ~ You may obtain a copy of the License at
\r
9 ~ http://www.apache.org/licenses/LICENSE-2.0
\r
11 ~ Unless required by applicable law or agreed to in writing, software
\r
12 ~ distributed under the License is distributed on an "AS IS" BASIS,
\r
13 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
\r
14 ~ See the License for the specific language governing permissions and
\r
15 ~ limitations under the License.
\r
19 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
\r
20 xmlns="http://maven.apache.org/POM/4.0.0"
\r
21 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
\r
22 <modelVersion>4.0.0</modelVersion>
\r
24 <groupId>org.onap.ccsdk.apps</groupId>
\r
25 <artifactId>controllerblueprints-parent</artifactId>
\r
26 <version>0.3.0-SNAPSHOT</version>
\r
27 <relativePath>../parent</relativePath>
\r
29 <artifactId>controllerblueprints-application</artifactId>
\r
30 <name>Controller Blueprints Application</name>
\r
32 <swagger.directory>${basedir}/src/main/resources/swagger-ui/dist</swagger.directory>
\r
33 <java.version>1.8</java.version>
\r
34 <docker.registry>xxxxxxxxx:5100</docker.registry>
\r
35 <assembly.id>distribution</assembly.id>
\r
36 <build.number>local</build.number>
\r
37 <name.space>org.onap.ccsdk.apps</name.space> <!-- <name.space>${namespace}</name.space> -->
\r
38 <grm.namespace>org.onap.ccsdk.apps</grm.namespace>
\r
39 <archetypeVersion>200.0.49</archetypeVersion>
\r
40 <serviceArtifactName>controllerblueprints</serviceArtifactName>
\r
43 <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
\r
44 <sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis>
\r
45 <sonar.surefire.reportsPath>${basedir}/target/surefire-reports</sonar.surefire.reportsPath>
\r
46 <sonar.failsafe.reportsPath>${basedir}/target/failsafe-reports</sonar.failsafe.reportsPath>
\r
47 <jacoco.path>${basedir}/target/jacoco_report</jacoco.path>
\r
48 <jacoco.itPath>${basedir}/target/jacoco_itReport</jacoco.itPath>
\r
49 <sonar.jacoco.reportPath>${basedir}/target/jacoco-ut.exec</sonar.jacoco.reportPath>
\r
50 <sonar.jacoco.itReportPath>${basedir}/target/jacoco-it.exec</sonar.jacoco.itReportPath>
\r
51 <sonar.language>java</sonar.language>
\r
52 <ilib.version>2.0.7</ilib.version>
\r
53 <!--<skip.assembly>false</skip.assembly>-->
\r
54 <!--<skip.swagger.generation>false</skip.swagger.generation>-->
\r
60 <groupId>org.onap.ccsdk.apps</groupId>
\r
61 <artifactId>controllerblueprints-service</artifactId>
\r
64 <groupId>org.springframework.boot</groupId>
\r
65 <artifactId>spring-boot-starter-actuator</artifactId>
\r
68 <groupId>org.springframework.boot</groupId>
\r
69 <artifactId>spring-boot-devtools</artifactId>
\r
70 <optional>true</optional>
\r
73 <groupId>com.h2database</groupId>
\r
74 <artifactId>h2</artifactId>
\r
75 <scope>runtime</scope>
\r
78 <groupId>org.springframework.boot</groupId>
\r
79 <artifactId>spring-boot-starter-test</artifactId>
\r
86 <!--config and resource files -->
\r
87 <directory>${basedir}/etc</directory>
\r
88 <targetPath>${basedir}/target/etc</targetPath>
\r
89 <filtering>true</filtering>
\r
91 <include>**/*</include>
\r
95 <!--config and resource files -->
\r
96 <directory>${basedir}/src/main/resources</directory>
\r
97 <targetPath>${basedir}/target/src/main/resources</targetPath>
\r
98 <filtering>true</filtering>
\r
100 <include>**/*</include>
\r
104 <directory>src/main/resources</directory>
\r
106 <include>**/*</include>
\r
108 <filtering>true</filtering>
\r
111 <directory>src/main/docker</directory>
\r
112 <targetPath>${basedir}/target</targetPath>
\r
114 <include>**/*</include>
\r
116 <filtering>true</filtering>
\r
121 <groupId>org.jacoco</groupId>
\r
122 <artifactId>jacoco-maven-plugin</artifactId>
\r
123 <version>0.7.5.201505241946</version>
\r
125 <!-- Prepares the property pointing to the JaCoCo runtime agent which
\r
126 is passed as VM argument when Maven the Surefire plugin is executed. -->
\r
128 <id>pre-unit-test</id>
\r
130 <goal>prepare-agent</goal>
\r
133 <!-- Sets the path to the file which contains the execution data. -->
\r
134 <destFile>${sonar.jacoco.reportPath}</destFile>
\r
135 <propertyName>surefireArgLine</propertyName>
\r
138 <!-- Ensures that the code coverage report for unit tests is created
\r
139 after unit tests have been run. -->
\r
141 <id>post-unit-test</id>
\r
142 <phase>test</phase>
\r
144 <goal>report</goal>
\r
147 <!-- Sets the path to the file which contains the execution data. -->
\r
148 <dataFile>${sonar.jacoco.reportPath}</dataFile>
\r
149 <!-- Sets the output directory for the code coverage report. -->
\r
150 <outputDirectory>${jacoco.path}</outputDirectory>
\r
156 <groupId>com.github.kongchen</groupId>
\r
157 <artifactId>swagger-maven-plugin</artifactId>
\r
158 <version>3.1.7</version>
\r
160 <!-- <skipSwaggerGeneration>${skip.swagger.generation}</skipSwaggerGeneration>-->
\r
164 <scheme>http</scheme>
\r
165 <scheme>https</scheme>
\r
168 <location>org.onap.ccsdk.apps.controllerblueprints</location>
\r
170 <basePath>/api/controller-blueprints/v1</basePath>
\r
172 <title>Controller Blueprint Service</title>
\r
173 <version>${project.version}</version>
\r
175 <swaggerDirectory>${swagger.directory}</swaggerDirectory>
\r
181 <!-- <phase>compile</phase> -->
\r
182 <phase>package</phase>
\r
184 <goal>generate</goal>
\r
190 <groupId>org.apache.maven.plugins</groupId>
\r
191 <artifactId>maven-antrun-plugin</artifactId>
\r
195 <phase>package</phase>
\r
198 <fixcrlf srcdir="${basedir}" eol="unix"
\r
199 includes="**/*.sh, **/*.source"/>
\r
209 <!--build the final artifact for docker deployment -->
\r
210 <artifactId>maven-assembly-plugin</artifactId>
\r
211 <version>3.0.0</version>
\r
213 <!-- <skipAssembly>${skip.assembly}</skipAssembly>-->
\r
214 <outputDirectory>target</outputDirectory>
\r
216 <descriptor>src/assembly/distribution.xml</descriptor>
\r
218 <tarLongFileMode>posix</tarLongFileMode>
\r
222 <id>${assembly.id}</id>
\r
223 <phase>package</phase>
\r
225 <goal>single</goal>
\r
231 <artifactId>maven-compiler-plugin</artifactId>
\r
232 <version>3.1</version>
\r
234 <!-- <skip>${skip.compile}</skip>-->
\r
235 <source>1.8</source>
\r
236 <target>1.8</target>
\r