Added service for Edit CBA
[ccsdk/cds.git] / ms / controllerblueprints / application / pom.xml
1 <?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.cds.controllerblueprints</groupId>
23         <artifactId>parent</artifactId>
24         <version>0.5.2-SNAPSHOT</version>
25         <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.cds</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.cds.controllerblueprints</groupId>
50             <artifactId>service</artifactId>
51         </dependency>
52         <dependency>
53             <groupId>org.springframework.boot</groupId>
54             <artifactId>spring-boot-starter-security</artifactId>
55             <exclusions>
56                 <exclusion>
57                     <groupId>org.springframework.boot</groupId>
58                     <artifactId>spring-boot-starter-logging</artifactId>
59                 </exclusion>
60             </exclusions>
61         </dependency>
62         <dependency>
63             <groupId>org.springframework.boot</groupId>
64             <artifactId>spring-boot-starter-actuator</artifactId>
65             <exclusions>
66                 <exclusion>
67                     <groupId>org.springframework.boot</groupId>
68                     <artifactId>spring-boot-starter-logging</artifactId>
69                 </exclusion>
70             </exclusions>
71         </dependency>
72         <dependency>
73             <groupId>org.powermock</groupId>
74             <artifactId>powermock-api-mockito2</artifactId>
75             <scope>test</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         <dependency>
83             <groupId>org.springframework.security</groupId>
84             <artifactId>spring-security-test</artifactId>
85             <scope>test</scope>
86         </dependency>
87         <dependency>
88             <groupId>org.jetbrains.kotlin</groupId>
89             <artifactId>kotlin-test-junit</artifactId>
90             <scope>test</scope>
91         </dependency>
92         <dependency>
93             <groupId>io.projectreactor</groupId>
94             <artifactId>reactor-test</artifactId>
95             <scope>test</scope>
96         </dependency>
97     </dependencies>
98     <build>
99         <resources>
100             <resource>
101                 <!--config and resource files -->
102                 <directory>${basedir}/etc</directory>
103                 <targetPath>${basedir}/target/etc</targetPath>
104                 <filtering>true</filtering>
105                 <includes>
106                     <include>**/*</include>
107                 </includes>
108             </resource>
109             <resource>
110                 <!--config and resource files -->
111                 <directory>${basedir}/src/main/resources</directory>
112                 <targetPath>${basedir}/target/src/main/resources</targetPath>
113                 <filtering>true</filtering>
114                 <includes>
115                     <include>**/*</include>
116                 </includes>
117             </resource>
118             <resource>
119                 <directory>src/main/resources</directory>
120                 <includes>
121                     <include>**/*</include>
122                 </includes>
123                 <filtering>true</filtering>
124             </resource>
125         </resources>
126         <plugins>
127             <plugin>
128                 <artifactId>maven-resources-plugin</artifactId>
129                 <version>2.6</version>
130                 <executions>
131                     <execution>
132                         <id>copy-dockerfile</id>
133                         <goals>
134                             <goal>copy-resources</goal>
135                         </goals><!-- here the phase you need -->
136                         <phase>validate</phase>
137                         <configuration>
138                             <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
139                             <resources>
140                                 <resource>
141                                     <directory>src/main/docker</directory>
142                                     <includes>
143                                         <include>*</include>
144                                     </includes>
145                                     <filtering>true</filtering>
146                                 </resource>
147                             </resources>
148                         </configuration>
149                     </execution>
150                 </executions>
151             </plugin>
152
153             <plugin>
154                 <groupId>org.jacoco</groupId>
155                 <artifactId>jacoco-maven-plugin</artifactId>
156                 <version>0.7.5.201505241946</version>
157                 <executions>
158                     <!-- Prepares the property pointing to the JaCoCo runtime agent which
159                         is passed as VM argument when Maven the Surefire plugin is executed. -->
160                     <execution>
161                         <id>pre-unit-test</id>
162                         <goals>
163                             <goal>prepare-agent</goal>
164                         </goals>
165                         <configuration>
166                             <!-- Sets the path to the file which contains the execution data. -->
167                             <destFile>${sonar.jacoco.reportPath}</destFile>
168                             <propertyName>surefireArgLine</propertyName>
169                         </configuration>
170                     </execution>
171                     <!-- Ensures that the code coverage report for unit tests is created
172                         after unit tests have been run. -->
173                     <execution>
174                         <id>post-unit-test</id>
175                         <phase>test</phase>
176                         <goals>
177                             <goal>report</goal>
178                         </goals>
179                         <configuration>
180                             <!-- Sets the path to the file which contains the execution data. -->
181                             <dataFile>${sonar.jacoco.reportPath}</dataFile>
182                             <!-- Sets the output directory for the code coverage report. -->
183                             <outputDirectory>${jacoco.path}</outputDirectory>
184                         </configuration>
185                     </execution>
186                 </executions>
187             </plugin>
188             <plugin>
189                 <groupId>org.apache.maven.plugins</groupId>
190                 <artifactId>maven-antrun-plugin</artifactId>
191                 <executions>
192                     <execution>
193                         <id>ant-test</id>
194                         <phase>package</phase>
195                         <configuration>
196                             <tasks>
197                                 <fixcrlf srcdir="${basedir}" eol="unix" includes="**/*.sh, **/*.source"/>
198                             </tasks>
199                         </configuration>
200                         <goals>
201                             <goal>run</goal>
202                         </goals>
203                     </execution>
204                 </executions>
205             </plugin>
206             <plugin>
207                 <artifactId>maven-compiler-plugin</artifactId>
208                 <version>3.1</version>
209                 <configuration>
210                     <!-- <skip>${skip.compile}</skip>-->
211                     <source>1.8</source>
212                     <target>1.8</target>
213                 </configuration>
214             </plugin>
215             <plugin>
216                 <groupId>com.github.kongchen</groupId>
217                 <artifactId>swagger-maven-plugin</artifactId>
218                 <version>3.1.7</version>
219                 <configuration>
220                     <apiSources>
221                         <apiSource>
222                             <springmvc>true</springmvc>
223                             <locations>org.onap.ccsdk.cds.controllerblueprints.service.rs
224                             </locations>
225                             <schemes>
226                                 <scheme>http</scheme>
227                                 <scheme>https</scheme>
228                             </schemes>
229                             <basePath>/api/v1</basePath>
230                             <info>
231                                 <title>Controller Blueprints</title>
232                                 <version>${project.version}</version>
233                                 <description>
234                                     Controller blueprints API for VNF Self Service.
235                                 </description>
236                                 <termsOfService>
237                                     Terms of service
238                                 </termsOfService>
239                                 <contact>
240                                     <email>brindasanth@gmail.com</email>
241                                     <name>Brinda Santh</name>
242                                     <url>http://onap.com</url>
243                                 </contact>
244                                 <license>
245                                     <url>http://www.apache.org/licenses/LICENSE-2.0.html</url>
246                                     <name>Apache 2.0</name>
247                                 </license>
248                             </info>
249                             <swaggerDirectory>${swagger.directory}</swaggerDirectory>
250                         </apiSource>
251                     </apiSources>
252                 </configuration>
253                 <executions>
254                     <execution>
255                         <phase>compile</phase>
256                         <goals>
257                             <goal>generate</goal>
258                         </goals>
259                     </execution>
260                 </executions>
261             </plugin>
262         </plugins>
263     </build>
264
265
266 </project>