blob: a01a61347a6b204392087071b8ef49abdbeb7ced [file] [log] [blame]
Timoney, Dan (dt5972)ad9f4ae2019-01-08 14:40:54 -05001<?xml version="1.0" encoding="UTF-8"?>
2<!--
3 ~ Copyright © 2017-2018 AT&T Intellectual Property.
4 ~
5 ~ Modifications Copyright © 2018 IBM.
6 ~
7 ~ 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<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
20 <modelVersion>4.0.0</modelVersion>
21 <parent>
22 <groupId>org.onap.ccsdk.apps.controllerblueprints</groupId>
23 <artifactId>parent</artifactId>
Timoney, Dan (dt5972)13f58212019-01-04 10:43:33 -050024 <version>0.4.1-SNAPSHOT</version>
Timoney, Dan (dt5972)ad9f4ae2019-01-08 14:40:54 -050025 <relativePath>../parent</relativePath>
26 </parent>
27 <artifactId>application</artifactId>
28 <name>Controller Blueprints Application</name>
29 <properties>
30 <swagger.directory>${basedir}/target/src/main/resources/swagger-ui</swagger.directory>
31 <java.version>1.8</java.version>
32 <name.space>org.onap.ccsdk.apps</name.space> <!-- <name.space>${namespace}</name.space> -->
33 <serviceArtifactName>controllerblueprints</serviceArtifactName>
34 <!-- Sonar -->
35 <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
36 <sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis>
37 <sonar.surefire.reportsPath>${basedir}/target/surefire-reports</sonar.surefire.reportsPath>
38 <sonar.failsafe.reportsPath>${basedir}/target/failsafe-reports</sonar.failsafe.reportsPath>
39 <jacoco.path>${basedir}/target/jacoco_report</jacoco.path>
40 <jacoco.itPath>${basedir}/target/jacoco_itReport</jacoco.itPath>
41 <sonar.jacoco.reportPath>${basedir}/target/jacoco-ut.exec</sonar.jacoco.reportPath>
42 <sonar.jacoco.itReportPath>${basedir}/target/jacoco-it.exec</sonar.jacoco.itReportPath>
43 <sonar.language>java</sonar.language>
44 <ilib.version>2.0.7</ilib.version>
45 </properties>
46
47 <dependencies>
48 <dependency>
49 <groupId>org.onap.ccsdk.apps.controllerblueprints</groupId>
50 <artifactId>service</artifactId>
51 </dependency>
52 <dependency>
53 <groupId>org.springframework.boot</groupId>
54 <artifactId>spring-boot-starter-security</artifactId>
55 </dependency>
56 <dependency>
57 <groupId>org.springframework.boot</groupId>
58 <artifactId>spring-boot-starter-actuator</artifactId>
59 </dependency>
60 <dependency>
61 <groupId>org.powermock</groupId>
62 <artifactId>powermock-api-mockito2</artifactId>
63 <scope>test</scope>
64 </dependency>
65 <dependency>
66 <groupId>org.springframework.boot</groupId>
67 <artifactId>spring-boot-starter-test</artifactId>
68 <scope>test</scope>
69 </dependency>
70 <dependency>
71 <groupId>org.springframework.security</groupId>
72 <artifactId>spring-security-test</artifactId>
73 <scope>test</scope>
74 </dependency>
75 <dependency>
76 <groupId>org.jetbrains.kotlin</groupId>
77 <artifactId>kotlin-test-junit</artifactId>
78 <scope>test</scope>
79 </dependency>
80 <dependency>
81 <groupId>io.projectreactor</groupId>
82 <artifactId>reactor-test</artifactId>
83 <scope>test</scope>
84 </dependency>
85 </dependencies>
86 <build>
87 <resources>
88 <resource>
89 <!--config and resource files -->
90 <directory>${basedir}/etc</directory>
91 <targetPath>${basedir}/target/etc</targetPath>
92 <filtering>true</filtering>
93 <includes>
94 <include>**/*</include>
95 </includes>
96 </resource>
97 <resource>
98 <!--config and resource files -->
99 <directory>${basedir}/src/main/resources</directory>
100 <targetPath>${basedir}/target/src/main/resources</targetPath>
101 <filtering>true</filtering>
102 <includes>
103 <include>**/*</include>
104 </includes>
105 </resource>
106 <resource>
107 <directory>src/main/resources</directory>
108 <includes>
109 <include>**/*</include>
110 </includes>
111 <filtering>true</filtering>
112 </resource>
113 </resources>
114 <plugins>
115 <plugin>
116 <artifactId>maven-resources-plugin</artifactId>
117 <version>2.6</version>
118 <executions>
119 <execution>
120 <id>copy-dockerfile</id>
121 <goals>
122 <goal>copy-resources</goal>
123 </goals><!-- here the phase you need -->
124 <phase>validate</phase>
125 <configuration>
126 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
127 <resources>
128 <resource>
129 <directory>src/main/docker</directory>
130 <includes>
131 <include>*</include>
132 </includes>
133 <filtering>true</filtering>
134 </resource>
135 </resources>
136 </configuration>
137 </execution>
138 </executions>
139 </plugin>
140
141 <plugin>
142 <groupId>org.jacoco</groupId>
143 <artifactId>jacoco-maven-plugin</artifactId>
144 <version>0.7.5.201505241946</version>
145 <executions>
146 <!-- Prepares the property pointing to the JaCoCo runtime agent which
147 is passed as VM argument when Maven the Surefire plugin is executed. -->
148 <execution>
149 <id>pre-unit-test</id>
150 <goals>
151 <goal>prepare-agent</goal>
152 </goals>
153 <configuration>
154 <!-- Sets the path to the file which contains the execution data. -->
155 <destFile>${sonar.jacoco.reportPath}</destFile>
156 <propertyName>surefireArgLine</propertyName>
157 </configuration>
158 </execution>
159 <!-- Ensures that the code coverage report for unit tests is created
160 after unit tests have been run. -->
161 <execution>
162 <id>post-unit-test</id>
163 <phase>test</phase>
164 <goals>
165 <goal>report</goal>
166 </goals>
167 <configuration>
168 <!-- Sets the path to the file which contains the execution data. -->
169 <dataFile>${sonar.jacoco.reportPath}</dataFile>
170 <!-- Sets the output directory for the code coverage report. -->
171 <outputDirectory>${jacoco.path}</outputDirectory>
172 </configuration>
173 </execution>
174 </executions>
175 </plugin>
176 <plugin>
177 <groupId>org.apache.maven.plugins</groupId>
178 <artifactId>maven-antrun-plugin</artifactId>
179 <executions>
180 <execution>
181 <id>ant-test</id>
182 <phase>package</phase>
183 <configuration>
184 <tasks>
185 <fixcrlf srcdir="${basedir}" eol="unix" includes="**/*.sh, **/*.source"/>
186 </tasks>
187 </configuration>
188 <goals>
189 <goal>run</goal>
190 </goals>
191 </execution>
192 </executions>
193 </plugin>
194 <plugin>
195 <artifactId>maven-compiler-plugin</artifactId>
196 <version>3.1</version>
197 <configuration>
198 <!-- <skip>${skip.compile}</skip>-->
199 <source>1.8</source>
200 <target>1.8</target>
201 </configuration>
202 </plugin>
203 <plugin>
204 <groupId>com.github.kongchen</groupId>
205 <artifactId>swagger-maven-plugin</artifactId>
206 <version>3.1.7</version>
207 <configuration>
208 <apiSources>
209 <apiSource>
210 <springmvc>true</springmvc>
211 <locations>org.onap.ccsdk.apps.controllerblueprints.service.rs
212 </locations>
213 <schemes>
214 <scheme>http</scheme>
215 <scheme>https</scheme>
216 </schemes>
217 <basePath>/api/v1</basePath>
218 <info>
219 <title>Controller Blueprints</title>
220 <version>${project.version}</version>
221 <description>
222 Controller blueprints API for VNF Self Service.
223 </description>
224 <termsOfService>
225 Terms of service
226 </termsOfService>
227 <contact>
228 <email>brindasanth@gmail.com</email>
229 <name>Brinda Santh</name>
230 <url>http://onap.com</url>
231 </contact>
232 <license>
233 <url>http://www.apache.org/licenses/LICENSE-2.0.html</url>
234 <name>Apache 2.0</name>
235 </license>
236 </info>
237 <swaggerDirectory>${swagger.directory}</swaggerDirectory>
238 </apiSource>
239 </apiSources>
240 </configuration>
241 <executions>
242 <execution>
243 <phase>compile</phase>
244 <goals>
245 <goal>generate</goal>
246 </goals>
247 </execution>
248 </executions>
249 </plugin>
250 </plugins>
251 </build>
252
253
254</project>