Murali-P | 3075304 | 2017-01-30 20:25:40 +0530 | [diff] [blame] | 1 | <?xml version="1.0"?> |
Murali-P | e8f5a94 | 2017-02-16 17:49:33 +0530 | [diff] [blame] | 2 | <!-- |
Chris Donley | e37c8a8 | 2018-03-28 12:35:56 -0700 | [diff] [blame] | 3 | Copyright 2017-2018 Huawei Technologies Co., Ltd. |
Gary Wu | 1abf742 | 2018-08-24 15:33:11 -0700 | [diff] [blame] | 4 | |
Murali-P | e8f5a94 | 2017-02-16 17:49:33 +0530 | [diff] [blame] | 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 |
Gary Wu | 1abf742 | 2018-08-24 15:33:11 -0700 | [diff] [blame] | 8 | |
Murali-P | e8f5a94 | 2017-02-16 17:49:33 +0530 | [diff] [blame] | 9 | http://www.apache.org/licenses/LICENSE-2.0 |
Gary Wu | 1abf742 | 2018-08-24 15:33:11 -0700 | [diff] [blame] | 10 | |
Murali-P | e8f5a94 | 2017-02-16 17:49:33 +0530 | [diff] [blame] | 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 | --> |
Murali-P | 3075304 | 2017-01-30 20:25:40 +0530 | [diff] [blame] | 17 | <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 Donley | e37c8a8 | 2018-03-28 12:35:56 -0700 | [diff] [blame] | 19 | <groupId>org.onap.vnfsdk.functest</groupId> |
| 20 | <artifactId>vnfsdk-functest-distribution</artifactId> |
Kailun Qin | ab7ff4a | 2018-10-11 22:10:09 +0800 | [diff] [blame] | 21 | <version>1.1.1</version> |
Murali-P | 3075304 | 2017-01-30 20:25:40 +0530 | [diff] [blame] | 22 | </parent> |
| 23 | |
| 24 | <modelVersion>4.0.0</modelVersion> |
Chris Donley | e37c8a8 | 2018-03-28 12:35:56 -0700 | [diff] [blame] | 25 | <artifactId>vnfsdk-functest-distribution-standalone</artifactId> |
| 26 | <name>VNFSDK Function Test standalone</name> |
Murali-P | 3075304 | 2017-01-30 20:25:40 +0530 | [diff] [blame] | 27 | <packaging>pom</packaging> |
| 28 | |
| 29 | <properties> |
Kailun Qin | d4a7658 | 2018-03-27 18:23:01 +0800 | [diff] [blame] | 30 | <packagename>onap-vnfsdk-functest</packagename> |
Murali-P | 3075304 | 2017-01-30 20:25:40 +0530 | [diff] [blame] | 31 | <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 Donley | e37c8a8 | 2018-03-28 12:35:56 -0700 | [diff] [blame] | 104 | <groupId>org.onap.vnfsdk.functest</groupId> |
Murali-P | 3075304 | 2017-01-30 20:25:40 +0530 | [diff] [blame] | 105 | <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 Donley | e37c8a8 | 2018-03-28 12:35:56 -0700 | [diff] [blame] | 123 | <groupId>org.onap.vnfsdk.functest</groupId> |
Murali-P | 3075304 | 2017-01-30 20:25:40 +0530 | [diff] [blame] | 124 | <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 Wu | 8b3ed01 | 2017-01-31 10:26:54 -0800 | [diff] [blame] | 138 | <version>1.8</version> |
Murali-P | 3075304 | 2017-01-30 20:25:40 +0530 | [diff] [blame] | 139 | <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 Donley | e37c8a8 | 2018-03-28 12:35:56 -0700 | [diff] [blame] | 171 | <groupId>org.onap.vnfsdk.functest</groupId> |
Murali-P | 3075304 | 2017-01-30 20:25:40 +0530 | [diff] [blame] | 172 | <artifactId>vnf-sdk-function-test</artifactId> |
Kailun Qin | ab7ff4a | 2018-10-11 22:10:09 +0800 | [diff] [blame] | 173 | <version>1.1.1</version> |
Murali-P | 3075304 | 2017-01-30 20:25:40 +0530 | [diff] [blame] | 174 | </dependency> |
Kailun Qin | ab7ff4a | 2018-10-11 22:10:09 +0800 | [diff] [blame] | 175 | </dependencies> |
Murali-P | 3075304 | 2017-01-30 20:25:40 +0530 | [diff] [blame] | 176 | </project> |