blob: 18d9a9037658bbd3dabc365ae086d794fd8a3b2c [file] [log] [blame]
Singal, Kapil (ks220y)aa748652018-08-09 20:47:29 +00001<?xml version="1.0" encoding="UTF-8"?>
2<!--
3 ~ Copyright © 2017-2018 AT&T Intellectual Property.
4 ~
5 ~ Licensed under the Apache License, Version 2.0 (the "License");
6 ~ you may not use this file except in compliance with the License.
7 ~ You may obtain a copy of the License at
8 ~
9 ~ http://www.apache.org/licenses/LICENSE-2.0
10 ~
11 ~ Unless required by applicable law or agreed to in writing, software
12 ~ distributed under the License is distributed on an "AS IS" BASIS,
13 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 ~ See the License for the specific language governing permissions and
15 ~ limitations under the License.
16 -->
17
18<project
19 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
20 xmlns="http://maven.apache.org/POM/4.0.0"
21 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
22 <modelVersion>4.0.0</modelVersion>
23 <parent>
24 <groupId>org.onap.ccsdk.apps</groupId>
25 <artifactId>controllerblueprints-parent</artifactId>
26 <version>0.3.0-SNAPSHOT</version>
27 <relativePath>../parent</relativePath>
28 </parent>
29 <artifactId>controllerblueprints-application</artifactId>
30 <name>Controller Blueprints Application</name>
31 <properties>
32 <swagger.directory>${basedir}/src/main/resources/swagger-ui/dist</swagger.directory>
33 <java.version>1.8</java.version>
34 <docker.registry>xxxxxxxxx:5100</docker.registry>
35 <assembly.id>distribution</assembly.id>
36 <build.number>local</build.number>
37 <name.space>org.onap.ccsdk.apps</name.space> <!-- <name.space>${namespace}</name.space> -->
38 <grm.namespace>org.onap.ccsdk.apps</grm.namespace>
39 <archetypeVersion>200.0.49</archetypeVersion>
40 <serviceArtifactName>controllerblueprints</serviceArtifactName>
41
42 <!-- Sonar -->
43 <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
44 <sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis>
45 <sonar.surefire.reportsPath>${basedir}/target/surefire-reports</sonar.surefire.reportsPath>
46 <sonar.failsafe.reportsPath>${basedir}/target/failsafe-reports</sonar.failsafe.reportsPath>
47 <jacoco.path>${basedir}/target/jacoco_report</jacoco.path>
48 <jacoco.itPath>${basedir}/target/jacoco_itReport</jacoco.itPath>
49 <sonar.jacoco.reportPath>${basedir}/target/jacoco-ut.exec</sonar.jacoco.reportPath>
50 <sonar.jacoco.itReportPath>${basedir}/target/jacoco-it.exec</sonar.jacoco.itReportPath>
51 <sonar.language>java</sonar.language>
52 <ilib.version>2.0.7</ilib.version>
53 <!--<skip.assembly>false</skip.assembly>-->
54 <!--<skip.swagger.generation>false</skip.swagger.generation>-->
55 </properties>
56
57 <dependencies>
58
59 <dependency>
60 <groupId>org.onap.ccsdk.apps</groupId>
61 <artifactId>controllerblueprints-service</artifactId>
62 </dependency>
63 <dependency>
64 <groupId>org.springframework.boot</groupId>
65 <artifactId>spring-boot-starter-actuator</artifactId>
66 </dependency>
67 <dependency>
68 <groupId>org.springframework.boot</groupId>
69 <artifactId>spring-boot-devtools</artifactId>
70 <optional>true</optional>
71 </dependency>
72 <dependency>
73 <groupId>com.h2database</groupId>
74 <artifactId>h2</artifactId>
75 <scope>runtime</scope>
76 </dependency>
77 <dependency>
78 <groupId>org.springframework.boot</groupId>
79 <artifactId>spring-boot-starter-test</artifactId>
80 <scope>test</scope>
81 </dependency>
82 </dependencies>
83 <build>
84 <resources>
85 <resource>
86 <!--config and resource files -->
87 <directory>${basedir}/etc</directory>
88 <targetPath>${basedir}/target/etc</targetPath>
89 <filtering>true</filtering>
90 <includes>
91 <include>**/*</include>
92 </includes>
93 </resource>
94 <resource>
95 <!--config and resource files -->
96 <directory>${basedir}/src/main/resources</directory>
97 <targetPath>${basedir}/target/src/main/resources</targetPath>
98 <filtering>true</filtering>
99 <includes>
100 <include>**/*</include>
101 </includes>
102 </resource>
103 <resource>
104 <directory>src/main/resources</directory>
105 <includes>
106 <include>**/*</include>
107 </includes>
108 <filtering>true</filtering>
109 </resource>
110 <resource>
111 <directory>src/main/docker</directory>
112 <targetPath>${basedir}/target</targetPath>
113 <includes>
114 <include>**/*</include>
115 </includes>
116 <filtering>true</filtering>
117 </resource>
118 </resources>
119 <plugins>
120 <plugin>
121 <groupId>org.jacoco</groupId>
122 <artifactId>jacoco-maven-plugin</artifactId>
123 <version>0.7.5.201505241946</version>
124 <executions>
125 <!-- Prepares the property pointing to the JaCoCo runtime agent which
126 is passed as VM argument when Maven the Surefire plugin is executed. -->
127 <execution>
128 <id>pre-unit-test</id>
129 <goals>
130 <goal>prepare-agent</goal>
131 </goals>
132 <configuration>
133 <!-- Sets the path to the file which contains the execution data. -->
134 <destFile>${sonar.jacoco.reportPath}</destFile>
135 <propertyName>surefireArgLine</propertyName>
136 </configuration>
137 </execution>
138 <!-- Ensures that the code coverage report for unit tests is created
139 after unit tests have been run. -->
140 <execution>
141 <id>post-unit-test</id>
142 <phase>test</phase>
143 <goals>
144 <goal>report</goal>
145 </goals>
146 <configuration>
147 <!-- Sets the path to the file which contains the execution data. -->
148 <dataFile>${sonar.jacoco.reportPath}</dataFile>
149 <!-- Sets the output directory for the code coverage report. -->
150 <outputDirectory>${jacoco.path}</outputDirectory>
151 </configuration>
152 </execution>
153 </executions>
154 </plugin>
155 <plugin>
Singal, Kapil (ks220y)aa748652018-08-09 20:47:29 +0000156 <groupId>org.apache.maven.plugins</groupId>
157 <artifactId>maven-antrun-plugin</artifactId>
158 <executions>
159 <execution>
160 <id>ant-test</id>
161 <phase>package</phase>
162 <configuration>
163 <tasks>
164 <fixcrlf srcdir="${basedir}" eol="unix"
165 includes="**/*.sh, **/*.source"/>
166 </tasks>
167 </configuration>
168 <goals>
169 <goal>run</goal>
170 </goals>
171 </execution>
172 </executions>
173 </plugin>
174 <plugin>
175 <!--build the final artifact for docker deployment -->
176 <artifactId>maven-assembly-plugin</artifactId>
177 <version>3.0.0</version>
178 <configuration>
179 <!-- <skipAssembly>${skip.assembly}</skipAssembly>-->
180 <outputDirectory>target</outputDirectory>
181 <descriptors>
182 <descriptor>src/assembly/distribution.xml</descriptor>
183 </descriptors>
184 <tarLongFileMode>posix</tarLongFileMode>
185 </configuration>
186 <executions>
187 <execution>
188 <id>${assembly.id}</id>
189 <phase>package</phase>
190 <goals>
191 <goal>single</goal>
192 </goals>
193 </execution>
194 </executions>
195 </plugin>
196 <plugin>
197 <artifactId>maven-compiler-plugin</artifactId>
198 <version>3.1</version>
199 <configuration>
200 <!-- <skip>${skip.compile}</skip>-->
201 <source>1.8</source>
202 <target>1.8</target>
203 </configuration>
204 </plugin>
205 </plugins>
206 </build>
207</project>
208