blob: bb0f7686dcbd1df106b2459e474489500df010e8 [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 ~
Brinda Santhe4d1a922018-08-23 23:34:05 -04005 ~ Modifications Copyright © 2018 IBM.
6 ~
Singal, Kapil (ks220y)aa748652018-08-09 20:47:29 +00007 ~ Licensed under the Apache License, Version 2.0 (the "License");
8 ~ you may not use this file except in compliance with the License.
9 ~ You may obtain a copy of the License at
10 ~
11 ~ http://www.apache.org/licenses/LICENSE-2.0
12 ~
13 ~ Unless required by applicable law or agreed to in writing, software
14 ~ distributed under the License is distributed on an "AS IS" BASIS,
15 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 ~ See the License for the specific language governing permissions and
17 ~ limitations under the License.
18 -->
19
20<project
21 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
22 xmlns="http://maven.apache.org/POM/4.0.0"
23 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
24 <modelVersion>4.0.0</modelVersion>
25 <parent>
Muthuramalingam, Brinda Santh(bs2796)d3efe722018-08-23 15:54:30 +000026 <groupId>org.onap.ccsdk.apps.controllerblueprints</groupId>
27 <artifactId>parent</artifactId>
Timoney, Dan (dt5972)71ed2c92018-10-25 10:34:51 -040028 <version>0.4.0-SNAPSHOT</version>
Singal, Kapil (ks220y)aa748652018-08-09 20:47:29 +000029 <relativePath>../parent</relativePath>
30 </parent>
Muthuramalingam, Brinda Santh(bs2796)d3efe722018-08-23 15:54:30 +000031 <artifactId>application</artifactId>
Singal, Kapil (ks220y)aa748652018-08-09 20:47:29 +000032 <name>Controller Blueprints Application</name>
33 <properties>
Muthuramalingam, Brinda Santh(bs2796)bd288182018-12-01 19:54:07 -050034 <swagger.directory>${basedir}/target/src/main/resources/swagger-ui</swagger.directory>
Singal, Kapil (ks220y)aa748652018-08-09 20:47:29 +000035 <java.version>1.8</java.version>
Singal, Kapil (ks220y)aa748652018-08-09 20:47:29 +000036 <name.space>org.onap.ccsdk.apps</name.space> <!-- <name.space>${namespace}</name.space> -->
Singal, Kapil (ks220y)aa748652018-08-09 20:47:29 +000037 <serviceArtifactName>controllerblueprints</serviceArtifactName>
Singal, Kapil (ks220y)aa748652018-08-09 20:47:29 +000038 <!-- Sonar -->
39 <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
40 <sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis>
41 <sonar.surefire.reportsPath>${basedir}/target/surefire-reports</sonar.surefire.reportsPath>
42 <sonar.failsafe.reportsPath>${basedir}/target/failsafe-reports</sonar.failsafe.reportsPath>
43 <jacoco.path>${basedir}/target/jacoco_report</jacoco.path>
44 <jacoco.itPath>${basedir}/target/jacoco_itReport</jacoco.itPath>
45 <sonar.jacoco.reportPath>${basedir}/target/jacoco-ut.exec</sonar.jacoco.reportPath>
46 <sonar.jacoco.itReportPath>${basedir}/target/jacoco-it.exec</sonar.jacoco.itReportPath>
47 <sonar.language>java</sonar.language>
48 <ilib.version>2.0.7</ilib.version>
Singal, Kapil (ks220y)aa748652018-08-09 20:47:29 +000049 </properties>
50
51 <dependencies>
Singal, Kapil (ks220y)aa748652018-08-09 20:47:29 +000052 <dependency>
Muthuramalingam, Brinda Santh(bs2796)d3efe722018-08-23 15:54:30 +000053 <groupId>org.onap.ccsdk.apps.controllerblueprints</groupId>
54 <artifactId>service</artifactId>
Singal, Kapil (ks220y)aa748652018-08-09 20:47:29 +000055 </dependency>
56 <dependency>
57 <groupId>org.springframework.boot</groupId>
Muthuramalingam, Brinda Santh(bs2796)c5fd6492018-09-21 04:15:10 +000058 <artifactId>spring-boot-starter-security</artifactId>
59 </dependency>
60 <dependency>
61 <groupId>org.springframework.boot</groupId>
Singal, Kapil (ks220y)aa748652018-08-09 20:47:29 +000062 <artifactId>spring-boot-starter-actuator</artifactId>
63 </dependency>
64 <dependency>
Brinda Santhe4d1a922018-08-23 23:34:05 -040065 <groupId>org.powermock</groupId>
66 <artifactId>powermock-api-mockito2</artifactId>
67 <scope>test</scope>
Singal, Kapil (ks220y)aa748652018-08-09 20:47:29 +000068 </dependency>
69 <dependency>
Singal, Kapil (ks220y)aa748652018-08-09 20:47:29 +000070 <groupId>org.springframework.boot</groupId>
71 <artifactId>spring-boot-starter-test</artifactId>
72 <scope>test</scope>
73 </dependency>
Brinda Santhe4d1a922018-08-23 23:34:05 -040074 <dependency>
Muthuramalingam, Brinda Santh(bs2796)c5fd6492018-09-21 04:15:10 +000075 <groupId>org.springframework.security</groupId>
76 <artifactId>spring-security-test</artifactId>
77 <scope>test</scope>
78 </dependency>
79 <dependency>
Brinda Santhe4d1a922018-08-23 23:34:05 -040080 <groupId>org.jetbrains.kotlin</groupId>
Muthuramalingam, Brinda Santh(bs2796)a9bf0542018-11-10 11:54:05 -050081 <artifactId>kotlin-test-junit</artifactId>
Brinda Santhe4d1a922018-08-23 23:34:05 -040082 <scope>test</scope>
83 </dependency>
84 <dependency>
85 <groupId>io.projectreactor</groupId>
86 <artifactId>reactor-test</artifactId>
87 <scope>test</scope>
88 </dependency>
Singal, Kapil (ks220y)aa748652018-08-09 20:47:29 +000089 </dependencies>
90 <build>
91 <resources>
92 <resource>
93 <!--config and resource files -->
94 <directory>${basedir}/etc</directory>
95 <targetPath>${basedir}/target/etc</targetPath>
96 <filtering>true</filtering>
97 <includes>
98 <include>**/*</include>
99 </includes>
100 </resource>
101 <resource>
102 <!--config and resource files -->
103 <directory>${basedir}/src/main/resources</directory>
104 <targetPath>${basedir}/target/src/main/resources</targetPath>
105 <filtering>true</filtering>
106 <includes>
107 <include>**/*</include>
108 </includes>
109 </resource>
110 <resource>
111 <directory>src/main/resources</directory>
112 <includes>
113 <include>**/*</include>
114 </includes>
115 <filtering>true</filtering>
116 </resource>
Singal, Kapil (ks220y)aa748652018-08-09 20:47:29 +0000117 </resources>
118 <plugins>
119 <plugin>
Muthuramalingam, Brinda Santh(bs2796)d3efe722018-08-23 15:54:30 +0000120 <artifactId>maven-resources-plugin</artifactId>
121 <version>2.6</version>
122 <executions>
123 <execution>
124 <id>copy-dockerfile</id>
125 <goals>
126 <goal>copy-resources</goal>
127 </goals><!-- here the phase you need -->
128 <phase>validate</phase>
129 <configuration>
130 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
131 <resources>
132 <resource>
133 <directory>src/main/docker</directory>
134 <includes>
135 <include>*</include>
136 </includes>
137 <filtering>true</filtering>
138 </resource>
139 </resources>
140 </configuration>
141 </execution>
142 </executions>
143 </plugin>
144
145 <plugin>
Singal, Kapil (ks220y)aa748652018-08-09 20:47:29 +0000146 <groupId>org.jacoco</groupId>
147 <artifactId>jacoco-maven-plugin</artifactId>
148 <version>0.7.5.201505241946</version>
149 <executions>
150 <!-- Prepares the property pointing to the JaCoCo runtime agent which
151 is passed as VM argument when Maven the Surefire plugin is executed. -->
152 <execution>
153 <id>pre-unit-test</id>
154 <goals>
155 <goal>prepare-agent</goal>
156 </goals>
157 <configuration>
158 <!-- Sets the path to the file which contains the execution data. -->
159 <destFile>${sonar.jacoco.reportPath}</destFile>
160 <propertyName>surefireArgLine</propertyName>
161 </configuration>
162 </execution>
163 <!-- Ensures that the code coverage report for unit tests is created
164 after unit tests have been run. -->
165 <execution>
166 <id>post-unit-test</id>
167 <phase>test</phase>
168 <goals>
169 <goal>report</goal>
170 </goals>
171 <configuration>
172 <!-- Sets the path to the file which contains the execution data. -->
173 <dataFile>${sonar.jacoco.reportPath}</dataFile>
174 <!-- Sets the output directory for the code coverage report. -->
175 <outputDirectory>${jacoco.path}</outputDirectory>
176 </configuration>
177 </execution>
178 </executions>
179 </plugin>
180 <plugin>
Singal, Kapil (ks220y)aa748652018-08-09 20:47:29 +0000181 <groupId>org.apache.maven.plugins</groupId>
182 <artifactId>maven-antrun-plugin</artifactId>
183 <executions>
184 <execution>
185 <id>ant-test</id>
186 <phase>package</phase>
187 <configuration>
188 <tasks>
189 <fixcrlf srcdir="${basedir}" eol="unix"
190 includes="**/*.sh, **/*.source"/>
191 </tasks>
192 </configuration>
193 <goals>
194 <goal>run</goal>
195 </goals>
196 </execution>
197 </executions>
198 </plugin>
199 <plugin>
Singal, Kapil (ks220y)aa748652018-08-09 20:47:29 +0000200 <artifactId>maven-compiler-plugin</artifactId>
201 <version>3.1</version>
202 <configuration>
203 <!-- <skip>${skip.compile}</skip>-->
204 <source>1.8</source>
205 <target>1.8</target>
206 </configuration>
207 </plugin>
Muthuramalingam, Brinda Santh(bs2796)bd288182018-12-01 19:54:07 -0500208 <plugin>
209 <groupId>com.github.kongchen</groupId>
210 <artifactId>swagger-maven-plugin</artifactId>
211 <version>3.1.7</version>
212 <configuration>
213 <apiSources>
214 <apiSource>
215 <springmvc>true</springmvc>
216 <locations>org.onap.ccsdk.apps.controllerblueprints.service.rs
217 </locations>
218 <schemes>
219 <scheme>http</scheme>
220 <scheme>https</scheme>
221 </schemes>
222 <basePath>/api/v1</basePath>
223 <info>
224 <title>Controller Blueprints</title>
225 <version>${project.version}</version>
226 <description>
227 Controller blueprints API for VNF Self Service.
228 </description>
229 <termsOfService>
230 Terms of service
231 </termsOfService>
232 <contact>
233 <email>brindasanth@gmail.com</email>
234 <name>Brinda Santh</name>
235 <url>http://onap.com</url>
236 </contact>
237 <license>
238 <url>http://www.apache.org/licenses/LICENSE-2.0.html</url>
239 <name>Apache 2.0</name>
240 </license>
241 </info>
242 <swaggerDirectory>${swagger.directory}</swaggerDirectory>
243 </apiSource>
244 </apiSources>
245 </configuration>
246 <executions>
247 <execution>
248 <phase>compile</phase>
249 <goals>
250 <goal>generate</goal>
251 </goals>
252 </execution>
253 </executions>
254 </plugin>
Singal, Kapil (ks220y)aa748652018-08-09 20:47:29 +0000255 </plugins>
256 </build>
Muthuramalingam, Brinda Santh(bs2796)bd288182018-12-01 19:54:07 -0500257
258
Singal, Kapil (ks220y)aa748652018-08-09 20:47:29 +0000259</project>
260