b87bb53595e9690fff720c234383320dad052ac7
[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     </properties>  
42         <build>
43         
44         <plugins>    
45     <plugin>
46     <artifactId>maven-resources-plugin</artifactId>
47     <executions>
48       <execution>
49         <id>copy-resources</id>                 
50         <phase>process-resources</phase>
51         <goals>
52           <goal>copy-resources</goal>
53         </goals>
54         <configuration>
55           <outputDirectory>${basedir}/target/assembly/</outputDirectory>
56           <resources>           
57             <resource>
58               <directory>src/main/assembly/</directory>
59               <filtering>false</filtering>
60               <includes>
61                 <include>**/*</include>
62               </includes>
63             </resource>   
64       
65           </resources>
66           <overwrite>true</overwrite>
67         </configuration>
68       </execution>
69       
70     </executions>
71   </plugin>
72             <plugin>
73                 <groupId>org.apache.maven.plugins</groupId>
74                 <artifactId>maven-dependency-plugin</artifactId>
75                 <version>2.8</version>
76                 <executions>                   
77                     <execution>
78                         <id>copy-jar</id>
79                         <goals>
80                             <goal>copy</goal>
81                         </goals>
82                         <phase>prepare-package</phase>
83                         <configuration>
84                             <artifactItems>
85                                 <artifactItem>
86                                     <groupId>org.onap.vfc.nfvo.driver.sfc.zte.sfc-driver</groupId>
87                                     <artifactId>sfc-driver</artifactId>
88                                     <type>jar</type>
89                                     <overWrite>true</overWrite>
90                                     <outputDirectory>target/assembly/</outputDirectory>
91                                     <destFileName>sfc-service.jar</destFileName>
92                                 </artifactItem>                             
93                             </artifactItems>
94                         </configuration>
95                     </execution>
96                 </executions>
97             </plugin>
98             <plugin>
99                 <groupId>org.apache.maven.plugins</groupId>
100                 <artifactId>maven-antrun-plugin</artifactId>
101                 <executions>
102                     <execution>
103                         <id>zip</id>
104                         <phase>package</phase>
105                         <goals>
106                             <goal>run</goal>
107                         </goals>
108                         <configuration>
109                             <tasks name="${project.artifactId}">
110                                 <zip destfile="target/vfc-nfvo-driver-sfc-zte-sfc-driver-${project.version}.zip" update="true">
111                                 <zipfileset dir="target/assembly" includes="**"/>
112                                 </zip>
113                             </tasks>
114                         </configuration>
115                     </execution>
116                 </executions>
117             </plugin>
118             <plugin>
119                 <groupId>org.codehaus.mojo</groupId>
120                 <artifactId>build-helper-maven-plugin</artifactId>
121                 <executions>
122                     <execution>
123                         <id>attach-artifacts</id>
124                         <phase>package</phase>
125                         <goals>
126                             <goal>attach-artifact</goal>
127                         </goals>
128                         <configuration>
129                             <artifacts>
130                                 <artifact>
131                                     <file>target/vfc-nfvo-driver-sfc-zte-sfc-driver-${project.version}.zip</file>
132                                     <type>zip</type>
133                                 </artifact>
134                             </artifacts>
135                         </configuration>
136                     </execution>
137                 </executions>
138             </plugin>
139
140
141 <!--<plugin>                
142     <groupId>org.apache.maven.plugins</groupId>
143     <artifactId>maven-deploy-plugin</artifactId>
144     <executions>
145         <execution>
146             <id>deploy-zip-file</id>
147             <phase>deploy</phase>   
148             <configuration>  
149                <groupId>${deploy.nfv.groupid}</groupId>
150                <artifactId>${uepPackageid}</artifactId>
151                <version>${project.version}</version>
152                <packaging>zip</packaging>
153                <file>target/${uepPackageid}-${project.version}.zip</file>
154            </configuration>                    
155        </execution>            
156    </executions>   
157 </plugin>-->
158  
159
160         </plugins>
161     </build>
162 </project>