71523364280de01d1047570a04c7de9e2d500017
[msb/discovery.git] / sdclient / discovery-standalone / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- Copyright 2016-2017 ZTE, Inc. and others. Licensed under the Apache 
3         License, Version 2.0 (the "License"); you may not use this file except in 
4         compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 
5         Unless required by applicable law or agreed to in writing, software distributed 
6         under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES 
7         OR CONDITIONS OF ANY KIND, either express or implied. See the License for 
8         the specific language governing permissions and limitations under the License. -->
9 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
11         <parent>
12                 <groupId>org.onap.msb.discovery</groupId>
13                 <artifactId>sdclient</artifactId>
14                 <version>1.1.0-SNAPSHOT</version>
15         </parent>
16         <modelVersion>4.0.0</modelVersion>
17         <groupId>org.onap.msb.discovery.sdclient</groupId>
18         <artifactId>discovery-standalone</artifactId>
19         <name>onap/msb/discovery/sdclient/discovery-standalone</name>
20         <packaging>pom</packaging>
21         <version>1.1.0-SNAPSHOT</version>
22
23         <properties>
24                 <packageid>discovery-standalone</packageid>
25                 <outputdir>target/assembly/</outputdir>
26         </properties>
27
28         <dependencies>
29                 <dependency>
30                         <groupId>org.onap.msb.discovery.sdclient</groupId>
31                         <artifactId>discovery-service</artifactId>
32                         <version>${project.version}</version>
33                         <optional>true</optional>
34                 </dependency>
35         </dependencies>
36         <build>
37
38                 <plugins>
39                         <plugin>
40                                 <artifactId>maven-resources-plugin</artifactId>
41                                 <executions>
42                                         <execution>
43                                                 <id>copy-resources</id>
44                                                 <phase>process-resources</phase>
45                                                 <goals>
46                                                         <goal>copy-resources</goal>
47                                                 </goals>
48                                                 <configuration>
49                                                         <outputDirectory>${outputdir}</outputDirectory>
50                                                         <includeEmptyDirs>true</includeEmptyDirs>
51                                                         <resources>
52                                                                 <resource>
53                                                                         <directory>src/assembly/resources/</directory>
54                                                                         <filtering>false</filtering>
55                                                                         <includes>
56                                                                                 <include>**/*</include>
57                                                                         </includes>
58                                                                 </resource>
59                                                         </resources>
60                                                         <overwrite>true</overwrite>
61                                                 </configuration>
62                                         </execution>
63                                 </executions>
64                         </plugin>
65                         <plugin>
66                                 <groupId>org.apache.maven.plugins</groupId>
67                                 <artifactId>maven-dependency-plugin</artifactId>
68                                 <version>2.8</version>
69                                 <executions>
70                                         <execution>
71                                                 <id>copy-jar</id>
72                                                 <goals>
73                                                         <goal>copy</goal>
74                                                 </goals>
75                                                 <phase>prepare-package</phase>
76                                                 <configuration>
77                                                         <artifactItems>
78                                                                 <artifactItem>
79                                                                         <groupId>org.onap.msb.discovery.sdclient</groupId>
80                                                                         <artifactId>discovery-service</artifactId>
81                                                                         <type>jar</type>
82                                                                         <overWrite>true</overWrite>
83                                                                         <outputDirectory>${outputdir}/discover/</outputDirectory>
84                                                                         <destFileName>discovery-service.jar</destFileName>
85                                                                 </artifactItem>
86                                                         </artifactItems>
87                                                 </configuration>
88                                         </execution>
89                                 </executions>
90                         </plugin>
91
92                         <plugin>
93                                 <groupId>org.apache.maven.plugins</groupId>
94                                 <artifactId>maven-antrun-plugin</artifactId>
95                                 <executions>
96                                         <execution>
97                                                 <id>distribution</id>
98                                                 <phase>package</phase>
99                                                 <goals>
100                                                         <goal>run</goal>
101                                                 </goals>
102                                                 <configuration>
103                                                         <target name="distribution">
104                                                                 <zip destfile="${version.output}/${packageid}-${project.version}.zip"
105                                                                         update="true">
106                                                                         <zipfileset dir="target/assembly/" includes="**" />
107                                                                 </zip>
108                                                                 <attachartifact
109                                                                         file="${version.output}/${packageid}-${project.version}.zip"
110                                                                         type="zip" />
111
112                                                         </target>
113                                                 </configuration>
114                                         </execution>
115                                 </executions>
116                         </plugin>
117                 </plugins>
118         </build>
119
120 </project>
121