| <!-- |
| 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/maven-v4_0_0.xsd"> |
| <modelVersion>4.0.0</modelVersion> |
| <artifactId>slider-assembly</artifactId> |
| <version>0.23.0-SNAPSHOT</version> |
| <name>Slider Assembly</name> |
| <packaging>pom</packaging> |
| <description> |
| |
| This is the module that does the packaging and shell entry |
| points for Slider |
| </description> |
| <parent> |
| <groupId>org.apache.slider</groupId> |
| <artifactId>slider</artifactId> |
| <version>0.23.0-SNAPSHOT</version> |
| </parent> |
| |
| <build> |
| <plugins> |
| <!--read in a build.properties file if defined--> |
| <plugin> |
| <groupId>org.codehaus.mojo</groupId> |
| <artifactId>properties-maven-plugin</artifactId> |
| <version>${maven.properties.version}</version> |
| <executions> |
| <execution> |
| <phase>initialize</phase> |
| <goals> |
| <goal>read-project-properties</goal> |
| </goals> |
| <configuration> |
| <quiet>true</quiet> |
| <files> |
| <file>build.properties</file> |
| <file>../build.properties</file> |
| </files> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| |
| <!-- pull in all dependencies --> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-dependency-plugin</artifactId> |
| <version>${maven-dependency-plugin.version}</version> |
| <executions> |
| <execution> |
| <id>copy-dependencies</id> |
| <phase>package</phase> |
| <goals> |
| <goal>copy-dependencies</goal> |
| </goals> |
| <configuration> |
| <outputDirectory>${project.build.directory}/lib</outputDirectory> |
| <overWriteReleases>false</overWriteReleases> |
| <overWriteSnapshots>true</overWriteSnapshots> |
| <overWriteIfNewer>true</overWriteIfNewer> |
| <!-- <tarLongFileFormat>gnu</tarLongFileFormat>--> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| |
| <!-- copy in the agent tar file --> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-dependency-plugin</artifactId> |
| <version>${maven-dependency-plugin.version}</version> |
| <executions> |
| <execution> |
| <id>copy</id> |
| <phase>package</phase> |
| <goals> |
| <goal>copy</goal> |
| </goals> |
| <configuration> |
| <artifactItems> |
| <artifactItem> |
| <groupId>org.apache.slider</groupId> |
| <artifactId>slider-agent</artifactId> |
| <type>tar.gz</type> |
| <overWrite>false</overWrite> |
| <outputDirectory>${project.build.directory}/agent</outputDirectory> |
| <destFileName>slider-agent.tar.gz</destFileName> |
| </artifactItem> |
| </artifactItems> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-source-plugin</artifactId> |
| <version>${maven-source-plugin.version}</version> |
| <inherited>true</inherited> |
| <executions> |
| <execution> |
| <id>attach-sources</id> |
| <phase>verify</phase> |
| <goals> |
| <goal>jar</goal> |
| <goal>test-jar</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-enforcer-plugin</artifactId> |
| <inherited>false</inherited> |
| <configuration> |
| <rules> |
| <requireMavenVersion> |
| <version>${maven.version.range}</version> |
| </requireMavenVersion> |
| <requireJavaVersion> |
| <version>${project.java.src.version}</version> |
| </requireJavaVersion> |
| </rules> |
| </configuration> |
| <executions> |
| <execution> |
| <id>clean</id> |
| <goals> |
| <goal>enforce</goal> |
| </goals> |
| <phase>pre-clean</phase> |
| </execution> |
| <execution> |
| <id>default</id> |
| <goals> |
| <goal>enforce</goal> |
| </goals> |
| <phase>validate</phase> |
| </execution> |
| <execution> |
| <id>site</id> |
| <goals> |
| <goal>enforce</goal> |
| </goals> |
| <phase>pre-site</phase> |
| </execution> |
| </executions> |
| </plugin> |
| |
| <!-- assemble the tar file --> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-assembly-plugin</artifactId> |
| <version>${maven-assembly-plugin.version}</version> |
| <configuration> |
| <tarLongFileMode>gnu</tarLongFileMode> |
| <descriptors> |
| <descriptor>src/assembly/slider-bin.xml</descriptor> |
| </descriptors> |
| <finalName>slider-${project.version}</finalName> |
| </configuration> |
| <executions> |
| <execution> |
| <id>make-assembly</id> |
| <phase>package</phase> |
| <goals> |
| <goal>single</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| |
| </plugins> |
| |
| |
| </build> |
| |
| <reporting> |
| <plugins> |
| |
| |
| |
| </plugins> |
| </reporting> |
| |
| <dependencies> |
| |
| <dependency> |
| <groupId>org.apache.slider</groupId> |
| <artifactId>slider-core</artifactId> |
| <version>${project.version}</version> |
| </dependency> |
| |
| <!-- |
| needed to order the build and ensure the agent tar is found |
| the test scope ensures that it isn't copied into the lib dir |
| --> |
| <dependency> |
| <groupId>org.apache.slider</groupId> |
| <artifactId>slider-agent</artifactId> |
| <version>${project.version}</version> |
| <scope>test</scope> |
| <type>tar.gz</type> |
| </dependency> |
| |
| <dependency> |
| <groupId>com.beust</groupId> |
| <artifactId>jcommander</artifactId> |
| </dependency> |
| |
| |
| <dependency> |
| <groupId>org.apache.hadoop</groupId> |
| <artifactId>hadoop-client</artifactId> |
| <type>pom</type> |
| </dependency> |
| |
| </dependencies> |
| |
| |
| </project> |