blob: 36f8c2be23206b988fe1dabc3a4f46f27779fc4a [file] [log] [blame]
Murali-P30753042017-01-30 20:25:40 +05301<?xml version="1.0"?>
Murali-Pe8f5a942017-02-16 17:49:33 +05302<!--
Chris Donleye37c8a82018-03-28 12:35:56 -07003 Copyright 2017-2018 Huawei Technologies Co., Ltd.
Gary Wu1abf7422018-08-24 15:33:11 -07004
Murali-Pe8f5a942017-02-16 17:49:33 +05305 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
Gary Wu1abf7422018-08-24 15:33:11 -07008
Murali-Pe8f5a942017-02-16 17:49:33 +05309 http://www.apache.org/licenses/LICENSE-2.0
Gary Wu1abf7422018-08-24 15:33:11 -070010
Murali-Pe8f5a942017-02-16 17:49:33 +053011 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 -->
Murali-P30753042017-01-30 20:25:40 +053017<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">
18 <parent>
Chris Donleye37c8a82018-03-28 12:35:56 -070019 <groupId>org.onap.vnfsdk.functest</groupId>
20 <artifactId>vnfsdk-functest-distribution</artifactId>
Kailun Qinab7ff4a2018-10-11 22:10:09 +080021 <version>1.1.1</version>
Murali-P30753042017-01-30 20:25:40 +053022 </parent>
23
24 <modelVersion>4.0.0</modelVersion>
Chris Donleye37c8a82018-03-28 12:35:56 -070025 <artifactId>vnfsdk-functest-distribution-standalone</artifactId>
26 <name>VNFSDK Function Test standalone</name>
Murali-P30753042017-01-30 20:25:40 +053027 <packaging>pom</packaging>
28
29 <properties>
Kailun Qind4a76582018-03-27 18:23:01 +080030 <packagename>onap-vnfsdk-functest</packagename>
Murali-P30753042017-01-30 20:25:40 +053031 <linux64id>linux64</linux64id>
32 <win64id>win64</win64id>
33 <linux64outputdir>target/assembly/${linux64id}</linux64outputdir>
34 <win64outputdir>target/assembly/${win64id}</win64outputdir>
35 <version.output>target/version</version.output>
36 </properties>
37
38 <build>
39 <plugins>
40 <plugin>
41 <artifactId>maven-resources-plugin</artifactId>
42 <executions>
43 <execution>
44 <id>copy-resources-${linux64id}</id>
45 <phase>process-resources</phase>
46 <goals>
47 <goal>copy-resources</goal>
48 </goals>
49 <configuration>
50 <outputDirectory>${linux64outputdir}</outputDirectory>
51 <resources>
52 <resource>
53 <directory>src/main/assembly/</directory>
54 <filtering>false</filtering>
55 <includes>
56 <include>**/*</include>
57 </includes>
58 <excludes>
59 <exclude>**/*.bat</exclude>
60 </excludes>
61 </resource>
62 </resources>
63 <overwrite>true</overwrite>
64 </configuration>
65 </execution>
66 <execution>
67 <id>copy-resources-${win64id}</id>
68 <phase>process-resources</phase>
69 <goals>
70 <goal>copy-resources</goal>
71 </goals>
72 <configuration>
73 <outputDirectory>${win64outputdir}</outputDirectory>
74 <resources>
75 <resource>
76 <directory>src/main/assembly/</directory>
77 <filtering>false</filtering>
78 <includes>
79 <include>**/*</include>
80 </includes>
81 <excludes>
82 <exclude>**/*.sh</exclude>
83 </excludes>
84 </resource>
85 </resources>
86 <overwrite>true</overwrite>
87 </configuration>
88 </execution>
89 </executions>
90 </plugin>
91 <plugin>
92 <groupId>org.apache.maven.plugins</groupId>
93 <artifactId>maven-dependency-plugin</artifactId>
94 <executions>
95 <execution>
96 <id>copy-jar-${linux64id}</id>
97 <goals>
98 <goal>copy</goal>
99 </goals>
100 <phase>prepare-package</phase>
101 <configuration>
102 <artifactItems>
103 <artifactItem>
Chris Donleye37c8a82018-03-28 12:35:56 -0700104 <groupId>org.onap.vnfsdk.functest</groupId>
Murali-P30753042017-01-30 20:25:40 +0530105 <artifactId>vnf-sdk-function-test</artifactId>
106 <type>jar</type>
107 <overWrite>true</overWrite>
108 <outputDirectory>${linux64outputdir}</outputDirectory>
109 <destFileName>vnf-sdk-function-test</destFileName>
110 </artifactItem>
111 </artifactItems>
112 </configuration>
113 </execution>
114 <execution>
115 <id>copy-jar-${win64id}</id>
116 <goals>
117 <goal>copy</goal>
118 </goals>
119 <phase>prepare-package</phase>
120 <configuration>
121 <artifactItems>
122 <artifactItem>
Chris Donleye37c8a82018-03-28 12:35:56 -0700123 <groupId>org.onap.vnfsdk.functest</groupId>
Murali-P30753042017-01-30 20:25:40 +0530124 <artifactId>vnf-sdk-function-test</artifactId>
125 <type>jar</type>
126 <overWrite>true</overWrite>
127 <outputDirectory>${win64outputdir}</outputDirectory>
128 <destFileName>vnf-sdk-function-test</destFileName>
129 </artifactItem>
130 </artifactItems>
131 </configuration>
132 </execution>
133 </executions>
134 </plugin>
135 <plugin>
136 <groupId>org.apache.maven.plugins</groupId>
137 <artifactId>maven-antrun-plugin</artifactId>
Gary Wu8b3ed012017-01-31 10:26:54 -0800138 <version>1.8</version>
Murali-P30753042017-01-30 20:25:40 +0530139 <executions>
140 <execution>
141 <id>distribution</id>
142 <phase>package</phase>
143 <goals>
144 <goal>run</goal>
145 </goals>
146 <configuration>
147 <target name="distribution">
148 <tar destfile="${version.output}/${packagename}-${project.version}-linux64.tar.gz" longfile="posix" compression="gzip">
149 <tarfileset dir="target/assembly/linux64" filemode="0644" dirmode="0755">
150 <exclude name="**/*.sh"/>
151 </tarfileset>
152 <tarfileset dir="target/assembly/linux64" filemode="0755" dirmode="0755">
153 <include name="**/*.sh"/>
154 </tarfileset>
155 </tar>
156 <attachartifact file="${version.output}/${packagename}-${project.version}-linux64.tar.gz" classifier="linux64" type="tar.gz"/>
157 <zip destfile="${version.output}/${packagename}-${project.version}-win64.zip" update="true">
158 <zipfileset dir="target/assembly/win64" includes="**"/>
159 </zip>
160 <attachartifact file="${version.output}/${packagename}-${project.version}-win64.zip" classifier="win64" type="zip"/>
161 </target>
162 </configuration>
163 </execution>
164 </executions>
165 </plugin>
166 </plugins>
167 </build>
168
169 <dependencies>
170 <dependency>
Chris Donleye37c8a82018-03-28 12:35:56 -0700171 <groupId>org.onap.vnfsdk.functest</groupId>
Murali-P30753042017-01-30 20:25:40 +0530172 <artifactId>vnf-sdk-function-test</artifactId>
Kailun Qinab7ff4a2018-10-11 22:10:09 +0800173 <version>1.1.1</version>
Murali-P30753042017-01-30 20:25:40 +0530174 </dependency>
Kailun Qinab7ff4a2018-10-11 22:10:09 +0800175 </dependencies>
Murali-P30753042017-01-30 20:25:40 +0530176</project>