blob: 77f02e078bdf8ceefeac259fbb99e2d5dae200e8 [file] [log] [blame]
Murali-P30753042017-01-30 20:25:40 +05301<?xml version="1.0"?>
2<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">
3 <parent>
4 <groupId>org.openo.vnf-sdk.function-test</groupId>
5 <artifactId>distribution</artifactId>
6 <version>1.1.0-SNAPSHOT</version>
7 </parent>
8
9 <modelVersion>4.0.0</modelVersion>
10 <artifactId>standalone</artifactId>
11 <name>vnfsdk-functest-distribution-standalone</name>
12 <packaging>pom</packaging>
13
14 <properties>
15 <packagename>openo-vnfsdk-functest</packagename>
16 <linux64id>linux64</linux64id>
17 <win64id>win64</win64id>
18 <linux64outputdir>target/assembly/${linux64id}</linux64outputdir>
19 <win64outputdir>target/assembly/${win64id}</win64outputdir>
20 <version.output>target/version</version.output>
21 </properties>
22
23 <build>
24 <plugins>
25 <plugin>
26 <artifactId>maven-resources-plugin</artifactId>
27 <executions>
28 <execution>
29 <id>copy-resources-${linux64id}</id>
30 <phase>process-resources</phase>
31 <goals>
32 <goal>copy-resources</goal>
33 </goals>
34 <configuration>
35 <outputDirectory>${linux64outputdir}</outputDirectory>
36 <resources>
37 <resource>
38 <directory>src/main/assembly/</directory>
39 <filtering>false</filtering>
40 <includes>
41 <include>**/*</include>
42 </includes>
43 <excludes>
44 <exclude>**/*.bat</exclude>
45 </excludes>
46 </resource>
47 </resources>
48 <overwrite>true</overwrite>
49 </configuration>
50 </execution>
51 <execution>
52 <id>copy-resources-${win64id}</id>
53 <phase>process-resources</phase>
54 <goals>
55 <goal>copy-resources</goal>
56 </goals>
57 <configuration>
58 <outputDirectory>${win64outputdir}</outputDirectory>
59 <resources>
60 <resource>
61 <directory>src/main/assembly/</directory>
62 <filtering>false</filtering>
63 <includes>
64 <include>**/*</include>
65 </includes>
66 <excludes>
67 <exclude>**/*.sh</exclude>
68 </excludes>
69 </resource>
70 </resources>
71 <overwrite>true</overwrite>
72 </configuration>
73 </execution>
74 </executions>
75 </plugin>
76 <plugin>
77 <groupId>org.apache.maven.plugins</groupId>
78 <artifactId>maven-dependency-plugin</artifactId>
79 <executions>
80 <execution>
81 <id>copy-jar-${linux64id}</id>
82 <goals>
83 <goal>copy</goal>
84 </goals>
85 <phase>prepare-package</phase>
86 <configuration>
87 <artifactItems>
88 <artifactItem>
89 <groupId>org.openo.vnf-sdk.function-test</groupId>
90 <artifactId>vnf-sdk-function-test</artifactId>
91 <type>jar</type>
92 <overWrite>true</overWrite>
93 <outputDirectory>${linux64outputdir}</outputDirectory>
94 <destFileName>vnf-sdk-function-test</destFileName>
95 </artifactItem>
96 </artifactItems>
97 </configuration>
98 </execution>
99 <execution>
100 <id>copy-jar-${win64id}</id>
101 <goals>
102 <goal>copy</goal>
103 </goals>
104 <phase>prepare-package</phase>
105 <configuration>
106 <artifactItems>
107 <artifactItem>
108 <groupId>org.openo.vnf-sdk.function-test</groupId>
109 <artifactId>vnf-sdk-function-test</artifactId>
110 <type>jar</type>
111 <overWrite>true</overWrite>
112 <outputDirectory>${win64outputdir}</outputDirectory>
113 <destFileName>vnf-sdk-function-test</destFileName>
114 </artifactItem>
115 </artifactItems>
116 </configuration>
117 </execution>
118 </executions>
119 </plugin>
120 <plugin>
121 <groupId>org.apache.maven.plugins</groupId>
122 <artifactId>maven-antrun-plugin</artifactId>
Gary Wu8b3ed012017-01-31 10:26:54 -0800123 <version>1.8</version>
Murali-P30753042017-01-30 20:25:40 +0530124 <executions>
125 <execution>
126 <id>distribution</id>
127 <phase>package</phase>
128 <goals>
129 <goal>run</goal>
130 </goals>
131 <configuration>
132 <target name="distribution">
133 <tar destfile="${version.output}/${packagename}-${project.version}-linux64.tar.gz" longfile="posix" compression="gzip">
134 <tarfileset dir="target/assembly/linux64" filemode="0644" dirmode="0755">
135 <exclude name="**/*.sh"/>
136 </tarfileset>
137 <tarfileset dir="target/assembly/linux64" filemode="0755" dirmode="0755">
138 <include name="**/*.sh"/>
139 </tarfileset>
140 </tar>
141 <attachartifact file="${version.output}/${packagename}-${project.version}-linux64.tar.gz" classifier="linux64" type="tar.gz"/>
142 <zip destfile="${version.output}/${packagename}-${project.version}-win64.zip" update="true">
143 <zipfileset dir="target/assembly/win64" includes="**"/>
144 </zip>
145 <attachartifact file="${version.output}/${packagename}-${project.version}-win64.zip" classifier="win64" type="zip"/>
146 </target>
147 </configuration>
148 </execution>
149 </executions>
150 </plugin>
151 </plugins>
152 </build>
153
154 <dependencies>
155 <dependency>
156 <groupId>org.openo.vnf-sdk.function-test</groupId>
157 <artifactId>vnf-sdk-function-test</artifactId>
158 <version>${project.version}</version>
159 </dependency>
160 </dependencies>
161</project>