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