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">
12 <groupId>org.onap.msb.discovery</groupId>
13 <artifactId>sdclient</artifactId>
14 <version>1.1.0-SNAPSHOT</version>
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>
24 <packageid>discovery-standalone</packageid>
25 <outputdir>target/assembly/</outputdir>
30 <groupId>org.onap.msb.discovery.sdclient</groupId>
31 <artifactId>discovery-service</artifactId>
32 <version>${project.version}</version>
33 <optional>true</optional>
40 <artifactId>maven-resources-plugin</artifactId>
43 <id>copy-resources</id>
44 <phase>process-resources</phase>
46 <goal>copy-resources</goal>
49 <outputDirectory>${outputdir}</outputDirectory>
50 <includeEmptyDirs>true</includeEmptyDirs>
53 <directory>src/assembly/resources/</directory>
54 <filtering>false</filtering>
56 <include>**/*</include>
60 <overwrite>true</overwrite>
66 <groupId>org.apache.maven.plugins</groupId>
67 <artifactId>maven-dependency-plugin</artifactId>
68 <version>2.8</version>
75 <phase>prepare-package</phase>
79 <groupId>org.onap.msb.discovery.sdclient</groupId>
80 <artifactId>discovery-service</artifactId>
82 <overWrite>true</overWrite>
83 <outputDirectory>${outputdir}/discover/</outputDirectory>
84 <destFileName>discovery-service.jar</destFileName>
93 <groupId>org.apache.maven.plugins</groupId>
94 <artifactId>maven-antrun-plugin</artifactId>
98 <phase>package</phase>
103 <target name="distribution">
104 <zip destfile="${version.output}/${packageid}-${project.version}.zip"
106 <zipfileset dir="target/assembly/" includes="**" />
109 file="${version.output}/${packageid}-${project.version}.zip"