AvinashS | 3c4d26e | 2017-09-07 13:46:54 +0000 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <!-- |
| 3 | Copyright 2017 Huawei Technologies Co., Ltd. |
| 4 | |
| 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 |
| 8 | |
| 9 | http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | |
| 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 | --> |
Gary Wu | d8f0e75 | 2018-08-24 15:33:40 -0700 | [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"> |
AvinashS | 3c4d26e | 2017-09-07 13:46:54 +0000 | [diff] [blame] | 18 | <modelVersion>4.0.0</modelVersion> |
Bogumil Zebek | 158248d | 2020-08-04 12:56:12 +0200 | [diff] [blame] | 19 | <properties> |
| 20 | <groovy-maven-plugin.version>2.0</groovy-maven-plugin.version> |
| 21 | <gmaven-plugin.version>1.5</gmaven-plugin.version> |
| 22 | </properties> |
AvinashS | 3c4d26e | 2017-09-07 13:46:54 +0000 | [diff] [blame] | 23 | |
| 24 | <parent> |
| 25 | <groupId>org.onap.vnfsdk.validation</groupId> |
| 26 | <artifactId>validation</artifactId> |
Bartosz Gardziejewski | 5901037 | 2021-01-20 09:10:29 +0100 | [diff] [blame] | 27 | <version>1.2.20-SNAPSHOT</version> |
AvinashS | 3c4d26e | 2017-09-07 13:46:54 +0000 | [diff] [blame] | 28 | </parent> |
| 29 | |
| 30 | <artifactId>csarvalidation-deployment</artifactId> |
AvinashS | 3c4d26e | 2017-09-07 13:46:54 +0000 | [diff] [blame] | 31 | <name>csarvalidation/deployment</name> |
| 32 | <packaging>pom</packaging> |
| 33 | |
Kanagaraj Manickam k00365106 | 0db7ecb | 2018-09-07 13:56:19 +0530 | [diff] [blame] | 34 | <build> |
| 35 | <pluginManagement> |
| 36 | <plugins> |
| 37 | <plugin> |
| 38 | <groupId>org.codehaus.gmaven</groupId> |
| 39 | <artifactId>groovy-maven-plugin</artifactId> |
Bogumil Zebek | 158248d | 2020-08-04 12:56:12 +0200 | [diff] [blame] | 40 | <version>${groovy-maven-plugin.version}</version> |
Kanagaraj Manickam k00365106 | 0db7ecb | 2018-09-07 13:56:19 +0530 | [diff] [blame] | 41 | </plugin> |
| 42 | </plugins> |
| 43 | </pluginManagement> |
| 44 | <plugins> |
| 45 | <plugin> |
| 46 | <groupId>org.codehaus.gmaven</groupId> |
| 47 | <artifactId>gmaven-plugin</artifactId> |
Bogumil Zebek | 158248d | 2020-08-04 12:56:12 +0200 | [diff] [blame] | 48 | <version>${gmaven-plugin.version}</version> |
Kanagaraj Manickam k00365106 | 0db7ecb | 2018-09-07 13:56:19 +0530 | [diff] [blame] | 49 | <executions> |
| 50 | <execution> |
| 51 | <id>CSAR validator</id> |
| 52 | <phase>package</phase> |
| 53 | <goals> |
| 54 | <goal>execute</goal> |
| 55 | </goals> |
| 56 | <configuration> |
| 57 | <source> |
| 58 | System.out.println("******** Going to make release zip ********") |
| 59 | |
| 60 | deployFolder = "${project.build.directory}/deployoutput" |
| 61 | deployUnzip = "${project.build.directory}/deployunzip" |
| 62 | outfileName = "csarvalidator-${project.version}.zip" |
| 63 | |
| 64 | ant.delete(dir: "${deployFolder}") |
| 65 | ant.mkdir(dir: "${deployFolder}") |
| 66 | |
| 67 | ant.delete(dir: "${deployUnzip}") |
| 68 | ant.mkdir(dir: "${deployUnzip}") |
| 69 | |
| 70 | ant.copy(todir: "${deployUnzip}/") { |
| 71 | fileset(dir: "${project.build.directory}/../../csarvalidation/target/lib") |
| 72 | } |
| 73 | |
| 74 | ant.zip(destfile: "${deployFolder}/${outfileName}") { |
| 75 | fileset(dir: "${deployUnzip}") |
| 76 | } |
| 77 | |
| 78 | System.out.println("******** completed. ************") |
| 79 | </source> |
| 80 | </configuration> |
| 81 | </execution> |
| 82 | </executions> |
| 83 | </plugin> |
| 84 | <plugin> |
| 85 | <groupId>org.codehaus.mojo</groupId> |
| 86 | <artifactId>build-helper-maven-plugin</artifactId> |
| 87 | <executions> |
| 88 | <execution> |
| 89 | <id>attach-artifacts</id> |
| 90 | <phase>package</phase> |
| 91 | <goals> |
| 92 | <goal>attach-artifact</goal> |
| 93 | </goals> |
| 94 | <configuration> |
| 95 | <artifacts> |
| 96 | <artifact> |
| 97 | <file>${project.build.directory}/deployoutput/csarvalidator-${project.version}.zip</file> |
| 98 | <type>zip</type> |
| 99 | </artifact> |
| 100 | </artifacts> |
| 101 | </configuration> |
| 102 | </execution> |
| 103 | </executions> |
| 104 | </plugin> |
| 105 | </plugins> |
| 106 | </build> |
AvinashS | 3c4d26e | 2017-09-07 13:46:54 +0000 | [diff] [blame] | 107 | </project> |