| <?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> |
| <name>Lens Distribution</name> |
| |
| <parent> |
| <artifactId>apache-lens</artifactId> |
| <groupId>org.apache.lens</groupId> |
| <version>2.7.0</version> |
| </parent> |
| |
| <artifactId>lens-dist</artifactId> |
| <description>Packaging and distribution</description> |
| |
| <dependencies> |
| <dependency> |
| <groupId>org.apache.lens</groupId> |
| <artifactId>lens-cli</artifactId> |
| <version>${project.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.lens</groupId> |
| <artifactId>lens-client</artifactId> |
| <version>${project.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.lens</groupId> |
| <artifactId>lens-examples</artifactId> |
| <version>${project.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.lens</groupId> |
| <artifactId>lens-ship-jars</artifactId> |
| <version>${project.version}</version> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.hadoop</groupId> |
| <artifactId>hadoop-common</artifactId> |
| <scope>runtime</scope> |
| <exclusions> |
| <exclusion> |
| <groupId>com.sun.jersey</groupId> |
| <artifactId>jersey-core</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>com.sun.jersey</groupId> |
| <artifactId>jersey-json</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>com.sun.jersey</groupId> |
| <artifactId>jersey-server</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>tomcat</groupId> |
| <artifactId>jasper-compiler</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>tomcat</groupId> |
| <artifactId>jasper-runtime</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>javax.servlet.jsp</groupId> |
| <artifactId>jsp-api</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>net.java.dev.jets3t</groupId> |
| <artifactId>jets3t</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>org.mortbay.jetty</groupId> |
| <artifactId>jetty</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>org.mortbay.jetty</groupId> |
| <artifactId>jetty-util</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>javax.servlet</groupId> |
| <artifactId>servlet-api</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>org.slf4j</groupId> |
| <artifactId>slf4j-api</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>org.slf4j</groupId> |
| <artifactId>slf4j-log4j12</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>commons-logging</groupId> |
| <artifactId>commons-logging</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>org.apache.avro</groupId> |
| <artifactId>avro</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>com.google.protobuf</groupId> |
| <artifactId>protobuf-java</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>com.jcraft</groupId> |
| <artifactId>jsch</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>com.google.code.findbugs</groupId> |
| <artifactId>jsr305</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>org.apache.zookeeper</groupId> |
| <artifactId>zookeeper</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>commons-cli</groupId> |
| <artifactId>commons-cli</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>commons-logging</groupId> |
| <artifactId>commons-logging</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| </dependencies> |
| |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-assembly-plugin</artifactId> |
| <configuration> |
| <finalName>apache-lens-${project.version}</finalName> |
| <ignoreDirFormatExtensions>true</ignoreDirFormatExtensions> |
| <descriptors> |
| <descriptor>src/main/assembly/bin-dist.xml</descriptor> |
| </descriptors> |
| </configuration> |
| <executions> |
| <execution> |
| <id>assemble</id> |
| <phase>package</phase> |
| <goals> |
| <goal>single</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| <!--Plugin to build deb --> |
| <plugin> |
| <artifactId>jdeb</artifactId> |
| <groupId>org.vafer</groupId> |
| <executions> |
| <execution> |
| <id>server</id> |
| <phase>package</phase> |
| <goals> |
| <goal>jdeb</goal> |
| </goals> |
| <configuration> |
| <installDir>${mvn.lens.install.dir}/server</installDir> |
| <controlDir>${mvn.deb.build.dir}/control/server-control</controlDir> |
| <deb>${project.build.directory}/lens-server_${project.version}.deb</deb> |
| <dataSet> |
| <data> |
| <src>target/apache-lens-${project.version}-bin/apache-lens-${project.version}-bin/server</src> |
| <type>directory</type> |
| <mapper> |
| <type>perm</type> |
| <prefix>${mvn.lens.install.dir}/server</prefix> |
| </mapper> |
| </data> |
| <data> |
| <src>target/apache-lens-${project.version}-bin/apache-lens-${project.version}-bin/server/bin</src> |
| <type>directory</type> |
| <mapper> |
| <type>perm</type> |
| <prefix>${mvn.lens.install.dir}/server/bin</prefix> |
| <filemode>755</filemode> |
| </mapper> |
| </data> |
| </dataSet> |
| </configuration> |
| </execution> |
| <execution> |
| <id>client</id> |
| <phase>package</phase> |
| <goals> |
| <goal>jdeb</goal> |
| </goals> |
| <configuration> |
| <installDir>${mvn.lens.install.dir}/client</installDir> |
| <controlDir>${mvn.deb.build.dir}/control/client-control</controlDir> |
| <deb>${project.build.directory}/lens-client_${project.version}.deb</deb> |
| <dataSet> |
| <data> |
| <src>target/apache-lens-${project.version}-bin/apache-lens-${project.version}-bin/client</src> |
| <type>directory</type> |
| <mapper> |
| <type>perm</type> |
| <prefix>${mvn.lens.install.dir}/client</prefix> |
| </mapper> |
| </data> |
| <data> |
| <src>target/apache-lens-${project.version}-bin/apache-lens-${project.version}-bin/client/bin</src> |
| <type>directory</type> |
| <mapper> |
| <type>perm</type> |
| <prefix>${mvn.lens.install.dir}/client/bin</prefix> |
| <filemode>755</filemode> |
| </mapper> |
| </data> |
| <data> |
| <src>target/apache-lens-${project.version}-bin/apache-lens-${project.version}-bin/client/bin/lens-cli |
| </src> |
| <type>file</type> |
| <mapper> |
| <type>perm</type> |
| <prefix>/usr/bin/</prefix> |
| <filemode>755</filemode> |
| </mapper> |
| </data> |
| </dataSet> |
| </configuration> |
| </execution> |
| <execution> |
| <id>ui</id> |
| <phase>package</phase> |
| <goals> |
| <goal>jdeb</goal> |
| </goals> |
| <configuration> |
| <installDir>${mvn.lens.install.dir}/ui</installDir> |
| <controlDir>${mvn.deb.build.dir}/control/ui-control</controlDir> |
| <deb>${project.build.directory}/lens-ui_${project.version}.deb</deb> |
| <dataSet> |
| <data> |
| <src>target/apache-lens-${project.version}-bin/apache-lens-${project.version}-bin/ui</src> |
| <type>directory</type> |
| <mapper> |
| <type>perm</type> |
| <prefix>${mvn.lens.install.dir}/ui</prefix> |
| </mapper> |
| </data> |
| </dataSet> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-deploy-plugin</artifactId> |
| <configuration> |
| <skip>true</skip> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| |
| </project> |