Fix error about coverage
[vfc/nfvo/driver/sfc.git] / zte / sfc-driver / sfc-driver / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3
4     Copyright 2016 ZTE Corporation.
5
6     Licensed under the Apache License, Version 2.0 (the "License");
7     you may not use this file except in compliance with the License.
8     You may obtain a copy of the License at
9
10             http://www.apache.org/licenses/LICENSE-2.0
11
12     Unless required by applicable law or agreed to in writing, software
13     distributed under the License is distributed on an "AS IS" BASIS,
14     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15     See the License for the specific language governing permissions and
16     limitations under the License.
17
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     <parent>
21         <groupId>org.onap.vfc.nfvo.driver.sfc</groupId>
22         <artifactId>sfc-driver-parent</artifactId>
23         <version>1.3.0-SNAPSHOT</version>
24     </parent>
25     <modelVersion>4.0.0</modelVersion>
26     <groupId>org.onap.vfc.nfvo.driver.sfc.zte.sfc-driver</groupId>
27     <artifactId>sfc-driver</artifactId>
28     <name>vfc/nfvo/driver/sfc/zte/sfc-driver/sfc-driver</name>
29     <packaging>jar</packaging>
30     <version>1.3.0-SNAPSHOT</version>
31     <properties>
32         <dropwizard.version>1.3.9</dropwizard.version>
33         <jetty.version>9.4.18.v20190429</jetty.version>
34         <jackson-version>2.5.1</jackson-version>
35         <jersey.version>2.22.2</jersey.version>
36         <swagger.version>1.5.3</swagger.version>
37         <junit.version>4.11</junit.version>
38         <powermock.version>1.6.6</powermock.version>
39         <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
40         <sonar.coverage.jacoco.xmlReportPaths>${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths>
41         <sonar.jacoco.reportMissing.force.zero>true</sonar.jacoco.reportMissing.force.zero>
42         <sonar.projectVersion>${project.version}</sonar.projectVersion>
43         <sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis>
44     </properties>
45
46
47     <dependencyManagement>
48         <dependencies>
49
50 <!--        <dependency>
51             <groupId>org.glassfish.jersey.media</groupId>
52             <artifactId>jersey-media-multipart</artifactId>
53             <version>${jersey.version}</version>
54         </dependency>-->
55
56 <!--        <dependency>
57             <groupId>org.glassfish.jersey.containers</groupId>
58             <artifactId>jersey-container-servlet-core</artifactId>
59             <version>${jersey.version}</version>
60         </dependency>
61                 
62                 <dependency>
63                         <groupId>org.glassfish.jersey.containers</groupId>
64                         <artifactId>jersey-container-servlet</artifactId>
65                         <version>2.16</version>
66                 </dependency>
67                 <dependency>
68                         <groupId>org.glassfish.jersey.core</groupId>
69                         <artifactId>jersey-client</artifactId>
70                         <version>2.16</version>
71                 </dependency>
72                 <dependency>
73                         <groupId>org.glassfish.jersey.core</groupId>
74                         <artifactId>jersey-common</artifactId>
75                         <version>2.16</version>
76                 </dependency>-->
77
78 <!--        <dependency>
79           <groupId>com.fasterxml.jackson.dataformat</groupId>
80           <artifactId>jackson-dataformat-xml</artifactId>
81           <version>${jackson-version}</version>
82         </dependency>-->
83
84 <!--            <dependency>
85                 <groupId>org.glassfish.jersey.containers</groupId>
86                 <artifactId>jersey-container-servlet-core</artifactId>
87                 <version>${jersey.version}</version>
88             </dependency>
89
90             <dependency>
91                 <groupId>org.glassfish.jersey.core</groupId>
92                 <artifactId>jersey-common</artifactId>
93                 <version>${jersey.version}</version>
94             </dependency>-->
95
96          <dependency>
97                 <groupId>org.codehaus.jackson</groupId>
98                 <artifactId>jackson-jaxrs</artifactId>
99                 <version>1.9.11</version>
100          </dependency>
101
102 <!--            <dependency>
103           <groupId>com.fasterxml.jackson.core</groupId>
104           <artifactId>jackson-annotations</artifactId>
105           <version>${jackson-version}</version>
106         </dependency>-->
107
108     </dependencies>
109     </dependencyManagement>
110
111   <dependencies>
112
113     <dependency>
114         <groupId>io.dropwizard</groupId>
115         <artifactId>dropwizard-core</artifactId>
116         <version>${dropwizard.version}</version>
117     </dependency>
118     <dependency>
119         <groupId>io.dropwizard</groupId>
120         <artifactId>dropwizard-assets</artifactId>
121         <version>${dropwizard.version}</version>
122     </dependency>
123     <dependency>
124       <groupId>io.swagger</groupId>
125       <artifactId>swagger-jersey2-jaxrs</artifactId>
126       <version>${swagger.version}</version>
127       <scope>compile</scope>
128     </dependency>
129       <dependency>
130           <groupId>com.eclipsesource.jaxrs</groupId>
131           <artifactId>consumer</artifactId>
132           <version>2.3</version>
133       </dependency>
134
135         <dependency>
136             <groupId>com.google.code.gson</groupId>
137             <artifactId>gson</artifactId>
138             <version>2.2.4</version>
139         </dependency>
140                 
141     <dependency>
142             <groupId>junit</groupId>
143             <artifactId>junit</artifactId>
144          <version>${junit.version}</version>
145          <scope>test</scope>
146     </dependency>
147   
148         <dependency>
149                 <groupId>org.powermock</groupId>
150                 <artifactId>powermock-module-junit4</artifactId>
151                 <version>${powermock.version}</version>
152                 <scope>test</scope>
153         </dependency>
154         <dependency>
155                 <groupId>org.powermock</groupId>
156                 <artifactId>powermock-api-mockito</artifactId>
157                 <version>${powermock.version}</version>
158                 <scope>test</scope>
159         </dependency>
160       <dependency>
161           <groupId>org.powermock</groupId>
162           <artifactId>powermock-core</artifactId>
163           <version>1.6.6</version>
164       </dependency>
165       <dependency>
166           <groupId>org.projectlombok</groupId>
167           <artifactId>lombok</artifactId>
168           <version>1.16.8</version>
169       </dependency>
170
171       <dependency>
172           <groupId>org.glassfish.jersey.core</groupId>
173           <artifactId>jersey-server</artifactId>
174           <version>${jersey.version}</version>
175       </dependency>
176       <dependency>
177           <groupId>org.glassfish.jersey.core</groupId>
178           <artifactId>jersey-client</artifactId>
179           <version>${jersey.version}</version>
180       </dependency>
181       <dependency>
182           <groupId>org.glassfish.jersey.core</groupId>
183           <artifactId>jersey-common</artifactId>
184           <version>${jersey.version}</version>
185       </dependency>
186       <dependency>
187           <groupId>org.glassfish.jersey.containers</groupId>
188           <artifactId>jersey-container-servlet-core</artifactId>
189           <version>${jersey.version}</version>
190       </dependency>
191
192 <!--      <dependency>
193           <groupId>ch.qos.logback</groupId>
194           <artifactId>logback-classic</artifactId>
195           <version>1.1.2</version>
196       </dependency>-->
197   </dependencies>
198     <build>
199         <plugins>
200             <plugin>
201                 <groupId>org.apache.maven.plugins</groupId>
202                 <artifactId>maven-jar-plugin</artifactId>
203                 <version>2.4</version>
204                 <configuration>
205                     <archive>
206                         <manifest>
207                             <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
208                         </manifest>
209                     </archive>
210                 </configuration>
211             </plugin>
212             <plugin>
213                 <groupId>org.apache.maven.plugins</groupId>
214                 <artifactId>maven-shade-plugin</artifactId>
215                 <version>2.3</version>
216                 <configuration>
217                     <createDependencyReducedPom>true</createDependencyReducedPom>
218                     <filters>
219                         <filter>
220                             <artifact>*:*</artifact>
221                             <excludes>
222                                 <exclude>META-INF/*.SF</exclude>
223                                 <exclude>META-INF/*.DSA</exclude>
224                                 <exclude>META-INF/*.RSA</exclude>
225                             </excludes>
226                         </filter>
227                     </filters>
228                 </configuration>
229                 <executions>
230                     <execution>
231                         <phase>package</phase>
232                         <goals>
233                             <goal>shade</goal>
234                         </goals>
235                         <configuration>
236                             <transformers>
237                                 <transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
238                                 <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
239                                  <mainClass>org.onap.sfc.SfcDriver</mainClass>
240                                 </transformer>
241                             </transformers>
242                         </configuration>
243                     </execution>
244                 </executions>
245             </plugin>
246             <plugin>
247                 <groupId>org.apache.maven.plugins</groupId>
248                 <artifactId>maven-dependency-plugin</artifactId>
249                 <executions>
250                     <execution>
251                       <id>copy-dependencies</id>
252                       <phase>package</phase>
253                       <goals>
254                           <goal>copy-dependencies</goal>
255                       </goals>                      
256                       <configuration>
257                         <artifactItems>
258                             <artifactItem>
259                              <groupId>io.dropwizard</groupId>
260                              <artifactId>dropwizard-core</artifactId>
261                              <version>${dropwizard.version}</version>
262                              <overWrite>true</overWrite>
263                          </artifactItem>             
264                      </artifactItems>
265                  </configuration>
266              </execution>  
267          </executions>
268      </plugin>
269             <plugin>
270                 <groupId>org.jacoco</groupId>
271                 <artifactId>jacoco-maven-plugin</artifactId>
272                 <executions>
273                   <execution>
274                     <id>prepare-agent</id>
275                     <goals>
276                         <goal>prepare-agent</goal>
277                     </goals>
278                   </execution>
279                   <execution>
280                      <id>report</id>
281                      <goals>
282                        <goal>report</goal>
283                      </goals>
284                      <configuration>
285                         <dataFile>${project.build.directory}/code-coverage/jacoco.exec</dataFile>
286                         <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
287                      </configuration>
288                   </execution>
289                </executions>
290             </plugin>
291         </plugins>
292     </build>
293 </project>