| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| Licensed to the Apache Software Foundation (ASF) under one or more |
| contributor license agreements. See the NOTICE file distributed with |
| this work for additional information regarding copyright ownership. |
| The ASF licenses this file to You under the Apache License, Version 2.0 |
| (the "License"); you may not use this file except in compliance with |
| the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| <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"> |
| <modelVersion>4.0.0</modelVersion> |
| <parent> |
| <groupId>org.apache.knox</groupId> |
| <artifactId>gateway</artifactId> |
| <version>1.3.0</version> |
| </parent> |
| |
| <artifactId>gateway-shell-release</artifactId> |
| <name>gateway-shell-release</name> |
| <description>The gateway shell binary release packaging.</description> |
| |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-shade-plugin</artifactId> |
| <executions> |
| <execution> |
| <phase>package</phase> |
| <goals> |
| <goal>shade</goal> |
| </goals> |
| <configuration> |
| <createDependencyReducedPom>false</createDependencyReducedPom> |
| <transformers> |
| <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> |
| <mainClass>org.apache.knox.gateway.launcher.Launcher</mainClass> |
| </transformer> |
| </transformers> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| <profiles> |
| <profile> |
| <id>package</id> |
| <build> |
| <plugins> |
| <plugin> |
| <artifactId>maven-resources-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>copy-common-scripts</id> |
| <phase>package</phase> |
| <goals> |
| <goal>copy-resources</goal> |
| </goals> |
| <configuration> |
| <outputDirectory>${project.build.directory}/home/bin</outputDirectory> |
| <overwrite>true</overwrite> |
| <resources> |
| <resource> |
| <directory>${project.basedir}/../gateway-release-common/home/bin</directory> |
| <includes> |
| <include>*.sh</include> |
| </includes> |
| </resource> |
| </resources> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <inherited>false</inherited> |
| <artifactId>maven-assembly-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>binary</id> |
| <phase>package</phase> |
| <goals><goal>single</goal></goals> |
| <configuration> |
| <finalName>knoxshell-${project.version}</finalName> |
| <outputDirectory>../target/${project.version}</outputDirectory> |
| <appendAssemblyId>false</appendAssemblyId> |
| <descriptors> |
| <descriptor>src/assembly.xml</descriptor> |
| </descriptors> |
| <tarLongFileMode>gnu</tarLongFileMode> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <artifactId>maven-antrun-plugin</artifactId> |
| <executions> |
| <execution> |
| <phase>package</phase> |
| <goals><goal>run</goal></goals> |
| <configuration> |
| <tasks> |
| <checksum algorithm="SHA-256" fileext=".sha256"> |
| <fileset dir="../target/${project.version}"> |
| <include name="knoxshell-${project.version}.zip" /> |
| <include name="knoxshell-${project.version}.tar.gz" /> |
| </fileset> |
| </checksum> |
| <checksum algorithm="SHA-512" fileext=".sha512"> |
| <fileset dir="../target/${project.version}"> |
| <include name="knoxshell-${project.version}.zip" /> |
| <include name="knoxshell-${project.version}.tar.gz" /> |
| </fileset> |
| </checksum> |
| </tasks> |
| </configuration> |
| </execution> |
| </executions> |
| <dependencies> |
| <dependency> |
| <groupId>org.apache.ant</groupId> |
| <artifactId>ant-nodeps</artifactId> |
| <version>${ant-nodeps.version}</version> |
| </dependency> |
| </dependencies> |
| </plugin> |
| <plugin> |
| <!-- Using the dependency plugin to grab a dependency jar (gateway-service-definitions) and |
| unpack some resources into the build directory so that it can be included in the assembly. |
| The phase 'generate-resources' is chosen since it is not only the closest fit to the description |
| of the action, but more importantly, it is a phase that is guaranteed to occur before the |
| assembly which is tied to 'package'. |
| --> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-dependency-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>unpack-services</id> |
| <phase>generate-resources</phase> |
| <goals> |
| <goal>unpack</goal> |
| </goals> |
| <configuration> |
| <artifactItems> |
| <artifactItem> |
| <groupId>org.apache.knox</groupId> |
| <artifactId>gateway-shell-samples</artifactId> |
| <type>jar</type> |
| <overWrite>false</overWrite> |
| <outputDirectory>${project.build.directory}</outputDirectory> |
| <includes>samples/**/*</includes> |
| </artifactItem> |
| </artifactItems> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| </profiles> |
| |
| <dependencies> |
| <dependency> |
| <groupId>org.apache.knox</groupId> |
| <artifactId>gateway-shell</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.knox</groupId> |
| <artifactId>gateway-shell-launcher</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.knox</groupId> |
| <artifactId>gateway-shell-samples</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.knox</groupId> |
| <artifactId>hadoop-examples</artifactId> |
| </dependency> |
| </dependencies> |
| </project> |