af352505bf02a5760890fa11e4403c9df8c4925e
[vfc/nfvo/wfengine.git] / wso2bpel-ext / wso2bpel-core / distribution / standalone / pom.xml
1 <!--
2
3     Copyright 2016 [ZTE] and others.
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/xsd/maven-4.0.0.xsd">
19     <parent>
20         <groupId>org.openo.common-services.common-utilities</groupId>
21         <artifactId>distribution</artifactId>
22         <version>1.0.0-SNAPSHOT</version>
23     </parent>
24     
25     <modelVersion>4.0.0</modelVersion>
26     <artifactId>standalone</artifactId>
27     <!--name>openo/commonservice/commonutilities/distribution/standalone</name-->
28     <packaging>pom</packaging>
29
30     <properties>
31         <packagename>openo-commonservice-commonutilities</packagename>
32     </properties>
33
34     <build>
35         <plugins>
36             <plugin>
37                 <artifactId>maven-resources-plugin</artifactId>
38                 <executions>
39                     <execution>
40                         <id>copy-resources</id>
41                         <phase>process-resources</phase>
42                         <goals>
43                             <goal>copy-resources</goal>
44                         </goals>
45                         <configuration>
46                             <outputDirectory>${basedir}/target/assembly/</outputDirectory>
47                             <resources>
48                                 <resource>
49                                     <directory>src/main/assembly/</directory>
50                                     <filtering>false</filtering>
51                                     <includes>
52                                         <include>**/*</include>
53                                     </includes>
54                                 </resource>
55                             </resources>
56                             <overwrite>true</overwrite>
57                         </configuration>
58                     </execution>
59                 </executions>
60             </plugin>
61             <plugin>
62                 <groupId>org.apache.maven.plugins</groupId>
63                 <artifactId>maven-dependency-plugin</artifactId>
64                 <executions>
65                     <execution>
66                         <id>copy-jar</id>
67                         <goals>
68                             <goal>copy</goal>
69                         </goals>
70                         <phase>prepare-package</phase>
71                         <configuration>
72                             <artifactItems>
73                                 <artifactItem>
74                                     <groupId>org.openo.common-services.common-utilities</groupId>
75                                     <artifactId>wso2bpel-mgr</artifactId>
76                                     <type>jar</type>
77                                     <overWrite>true</overWrite>
78                                     <outputDirectory>target/assembly/</outputDirectory>
79                                     <destFileName>wso2bpel-service.jar</destFileName>
80                                 </artifactItem>
81                             </artifactItems>
82                         </configuration>
83                     </execution>
84                 </executions>
85             </plugin>
86             <plugin>
87                 <groupId>org.apache.maven.plugins</groupId>
88                 <artifactId>maven-antrun-plugin</artifactId>
89                 <executions>
90                     <execution>
91                         <id>zip</id>
92                         <phase>package</phase>
93                         <goals>
94                             <goal>run</goal>
95                         </goals>
96                         <configuration>
97                             <tasks name="${project.artifactId}">
98                                 <zip destfile="target/${packagename}-${project.version}.zip" update="true">
99                                     <zipfileset dir="target/assembly" includes="**" />
100                                 </zip>
101                                                                 <copy todir="target/assembly/lib">
102                                                                         <fileset dir="../../wso2bpel-mgr/lib">
103                                                                                 <include name="*" />
104                                                                         </fileset>
105                                                                 </copy>
106                                                                 <copy todir="target/assembly/lib">
107                                                                         <fileset dir="../../wso2bpel-mgr/target/dependency">
108                                                                                 <include name="*" />
109                                                                         </fileset>
110                                                                 </copy>
111                                                                 <copy todir="target/assembly/classes">
112                                                                         <fileset dir="../../wso2bpel-mgr/target/classes">
113                                                                                 <include name="**/*" />
114                                                                         </fileset>
115                                                                 </copy>
116                             </tasks>
117                         </configuration>
118                     </execution>
119                 </executions>
120             </plugin>
121             <plugin>
122                 <groupId>org.codehaus.mojo</groupId>
123                 <artifactId>build-helper-maven-plugin</artifactId>
124                 <executions>
125                     <execution>
126                         <id>attach-artifacts</id>
127                         <phase>package</phase>
128                         <goals>
129                             <goal>attach-artifact</goal>
130                         </goals>
131                         <configuration>
132                             <artifacts>
133                                 <artifact>
134                                     <file>target/${packagename}-${project.version}.zip</file>
135                                     <type>zip</type>
136                                 </artifact>
137                             </artifacts>
138                         </configuration>
139                     </execution>
140                 </executions>
141             </plugin>
142         </plugins>
143     </build>
144
145     <dependencies>
146         <dependency>
147             <groupId>org.openo.common-services.common-utilities</groupId>
148             <artifactId>wso2bpel-mgr</artifactId>
149             <version>${project.version}</version>
150         </dependency>
151     </dependencies>  
152 </project>
153