Fix error about coverage
[vfc/nfvo/driver/sfc.git] / zte / sfc-driver / plugin-standalone / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3     Copyright 2016 ZTE Corporation.
4
5     Licensed under the Apache License, Version 2.0 (the "License");
6     you may not use this file except in compliance with the License.
7     You may obtain a copy of the License at
8
9             http://www.apache.org/licenses/LICENSE-2.0
10
11     Unless required by applicable law or agreed to in writing, software
12     distributed under the License is distributed on an "AS IS" BASIS,
13     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14     See the License for the specific language governing permissions and
15     limitations under the License.
16
17 -->
18 <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/maven-v4_0_0.xsd">
19     <parent>
20         <groupId>org.onap.vfc.nfvo.driver.sfc</groupId>
21         <artifactId>sfc-driver-parent</artifactId>
22         <version>1.3.0-SNAPSHOT</version>
23     </parent>
24     <modelVersion>4.0.0</modelVersion>
25     <groupId>org.onap.vfc.nfvo.driver.sfc.zte.sfc-driver-standalone</groupId>
26     <artifactId>vfc-nfvo-driver-sfc-zte-sfc-driver</artifactId>
27     <name>vfc/nfvo/driver/sfc/zte/sfc-driver/plugin-standalone</name>
28     <packaging>pom</packaging>
29     <version>1.3.0-SNAPSHOT</version>
30     
31     <dependencies>
32         <dependency>
33         <groupId>org.onap.vfc.nfvo.driver.sfc.zte.sfc-driver</groupId>
34         <artifactId>sfc-driver</artifactId>
35         <version>${project.version}</version>
36         </dependency>
37     </dependencies>
38     
39     <properties>
40         <packagename>sfc-driver</packagename>
41         <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
42         <sonar.coverage.jacoco.xmlReportPaths>${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths>
43         <sonar.jacoco.reportMissing.force.zero>true</sonar.jacoco.reportMissing.force.zero>
44         <sonar.projectVersion>${project.version}</sonar.projectVersion>
45         <sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis>
46     </properties>  
47         <build>
48         
49         <plugins>    
50     <plugin>
51     <artifactId>maven-resources-plugin</artifactId>
52     <executions>
53       <execution>
54         <id>copy-resources</id>                 
55         <phase>process-resources</phase>
56         <goals>
57           <goal>copy-resources</goal>
58         </goals>
59         <configuration>
60           <outputDirectory>${basedir}/target/assembly/</outputDirectory>
61           <resources>           
62             <resource>
63               <directory>src/main/assembly/</directory>
64               <filtering>false</filtering>
65               <includes>
66                 <include>**/*</include>
67               </includes>
68             </resource>   
69       
70           </resources>
71           <overwrite>true</overwrite>
72         </configuration>
73       </execution>
74       
75     </executions>
76   </plugin>
77             <plugin>
78                 <groupId>org.apache.maven.plugins</groupId>
79                 <artifactId>maven-dependency-plugin</artifactId>
80                 <version>2.8</version>
81                 <executions>                   
82                     <execution>
83                         <id>copy-jar</id>
84                         <goals>
85                             <goal>copy</goal>
86                         </goals>
87                         <phase>prepare-package</phase>
88                         <configuration>
89                             <artifactItems>
90                                 <artifactItem>
91                                     <groupId>org.onap.vfc.nfvo.driver.sfc.zte.sfc-driver</groupId>
92                                     <artifactId>sfc-driver</artifactId>
93                                     <type>jar</type>
94                                     <overWrite>true</overWrite>
95                                     <outputDirectory>target/assembly/</outputDirectory>
96                                     <destFileName>sfc-service.jar</destFileName>
97                                 </artifactItem>                             
98                             </artifactItems>
99                         </configuration>
100                     </execution>
101                 </executions>
102             </plugin>
103             <plugin>
104                 <groupId>org.apache.maven.plugins</groupId>
105                 <artifactId>maven-antrun-plugin</artifactId>
106                 <executions>
107                     <execution>
108                         <id>zip</id>
109                         <phase>package</phase>
110                         <goals>
111                             <goal>run</goal>
112                         </goals>
113                         <configuration>
114                             <tasks name="${project.artifactId}">
115                                 <zip destfile="target/vfc-nfvo-driver-sfc-zte-sfc-driver-${project.version}.zip" update="true">
116                                 <zipfileset dir="target/assembly" includes="**"/>
117                                 </zip>
118                             </tasks>
119                         </configuration>
120                     </execution>
121                 </executions>
122             </plugin>
123             <plugin>
124                 <groupId>org.codehaus.mojo</groupId>
125                 <artifactId>build-helper-maven-plugin</artifactId>
126                 <executions>
127                     <execution>
128                         <id>attach-artifacts</id>
129                         <phase>package</phase>
130                         <goals>
131                             <goal>attach-artifact</goal>
132                         </goals>
133                         <configuration>
134                             <artifacts>
135                                 <artifact>
136                                     <file>target/vfc-nfvo-driver-sfc-zte-sfc-driver-${project.version}.zip</file>
137                                     <type>zip</type>
138                                 </artifact>
139                             </artifacts>
140                         </configuration>
141                     </execution>
142                 </executions>
143             </plugin>
144             <plugin>
145                 <groupId>org.jacoco</groupId>
146                 <artifactId>jacoco-maven-plugin</artifactId>
147                 <executions>
148                   <execution>
149                     <id>prepare-agent</id>
150                     <goals>
151                         <goal>prepare-agent</goal>
152                     </goals>
153                   </execution>
154                   <execution>
155                      <id>report</id>
156                      <goals>
157                        <goal>report</goal>
158                      </goals>
159                      <configuration>
160                         <dataFile>${project.build.directory}/code-coverage/jacoco.exec</dataFile>
161                         <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
162                      </configuration>
163                   </execution>
164                </executions>
165             </plugin>
166
167 <!--<plugin>                
168     <groupId>org.apache.maven.plugins</groupId>
169     <artifactId>maven-deploy-plugin</artifactId>
170     <executions>
171         <execution>
172             <id>deploy-zip-file</id>
173             <phase>deploy</phase>   
174             <configuration>  
175                <groupId>${deploy.nfv.groupid}</groupId>
176                <artifactId>${uepPackageid}</artifactId>
177                <version>${project.version}</version>
178                <packaging>zip</packaging>
179                <file>target/${uepPackageid}-${project.version}.zip</file>
180            </configuration>                    
181        </execution>            
182    </executions>   
183 </plugin>-->
184  
185
186         </plugins>
187     </build>
188 </project>