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