Permalink
Browse files

assemblies

  • Loading branch information...
1 parent 6a71eab commit 19d80a7f1b7d41415d208976d464fc3b2a45f84e @kimchy kimchy committed Dec 6, 2011
Showing with 233 additions and 362 deletions.
  1. +0 −335 LICENSE.txt
  2. +1 −8 NOTICE.txt
  3. +4 −4 README.textile
  4. +121 −15 pom.xml
  5. +40 −0 src/main/assemblies/common-bin.xml
  6. +36 −0 src/main/assemblies/targz-bin.xml
  7. +31 −0 src/main/assemblies/zip-bin.xml
View

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -1,12 +1,5 @@
ElasticSearch
-Copyright 2009-2011 Elastic Search and Shay Banon
+Copyright 2009-2011 ElasticSearch and Shay Banon
This product includes software developed by The Apache Software
Foundation (http://www.apache.org/).
-
-This product makes use of the google-collections library from
-http://code.google.com/p/google-collections/.
-Copyright (C) 2008 Google Inc.
-
-Yaml support uses SnakeYaml Copyright of Andrey Somov under the
-Apache 2 License.
View
@@ -196,18 +196,18 @@ We have just covered a very small portion of what ElasticSearch is all about. Fo
h3. Building from Source
-ElasticSearch uses "Gradle":http://www.gradle.org for its build system.
+ElasticSearch uses "Maven":http://maven.apache.org for its build system.
-In order to create a distribution, simply run the @./gradlew@ command in the cloned directory.
+In order to create a distribution, simply run the @mvn assembly:assembly -DskipTests@ command in the cloned directory.
-The distribution will be created under @build/distributions@.
+The distribution will be created under @target/releases@.
h1. License
<pre>
This software is licensed under the Apache 2 license, quoted below.
-Copyright 2009-2011 Shay Banon and ElasticSearch <http://www.elasticsearch.com>
+Copyright 2009-2011 Shay Banon and ElasticSearch <http://www.elasticsearch.org>
Licensed 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
View
136 pom.xml
@@ -60,6 +60,12 @@
<artifactId>lucene-queries</artifactId>
<version>${lucene.version}</version>
<scope>compile</scope>
+ <exclusions>
+ <exclusion>
+ <groupId>jakarta-regexp</groupId>
+ <artifactId>jakarta-regexp</artifactId>
+ </exclusion>
+ </exclusions>
</dependency>
<dependency>
<groupId>org.apache.lucene</groupId>
@@ -79,93 +85,93 @@
<groupId>com.googlecode.concurrentlinkedhashmap</groupId>
<artifactId>concurrentlinkedhashmap-lru</artifactId>
<version>1.2</version>
- <scope>provided</scope>
+ <scope>compile</scope>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>r09</version>
- <scope>provided</scope>
+ <scope>compile</scope>
</dependency>
<dependency>
<groupId>org.elasticsearch</groupId>
<artifactId>es-trove</artifactId>
<version>3.0.0</version>
- <scope>provided</scope>
+ <scope>compile</scope>
</dependency>
<dependency>
<groupId>org.elasticsearch</groupId>
<artifactId>es-jsr166y</artifactId>
<version>20110918</version>
- <scope>provided</scope>
+ <scope>compile</scope>
</dependency>
<dependency>
<groupId>org.elasticsearch</groupId>
<artifactId>es-jsr166e</artifactId>
<version>20110918</version>
- <scope>provided</scope>
+ <scope>compile</scope>
</dependency>
<dependency>
<groupId>commons-codec</groupId>
<artifactId>commons-codec</artifactId>
<version>1.5</version>
- <scope>provided</scope>
+ <scope>compile</scope>
</dependency>
<dependency>
<groupId>joda-time</groupId>
<artifactId>joda-time</artifactId>
<!-- joda 2.0 moved to using volatile fields for datetime, which hurts performance for facets! -->
<version>1.6.2</version>
- <scope>provided</scope>
+ <scope>compile</scope>
</dependency>
<dependency>
<groupId>org.mvel</groupId>
<artifactId>mvel2</artifactId>
<version>2.1.Beta7</version>
- <scope>provided</scope>
+ <scope>compile</scope>
</dependency>
<dependency>
<groupId>org.codehaus.jackson</groupId>
<artifactId>jackson-core-asl</artifactId>
<version>1.9.2</version>
- <scope>provided</scope>
+ <scope>compile</scope>
</dependency>
<dependency>
<groupId>org.codehaus.jackson</groupId>
<artifactId>jackson-smile</artifactId>
<version>1.9.2</version>
- <scope>provided</scope>
+ <scope>compile</scope>
</dependency>
<dependency>
<groupId>org.yaml</groupId>
<artifactId>snakeyaml</artifactId>
<version>1.6</version>
- <scope>provided</scope>
+ <scope>compile</scope>
</dependency>
<dependency>
<groupId>org.jboss.netty</groupId>
<artifactId>netty</artifactId>
<version>3.2.7.Final</version>
- <scope>provided</scope>
+ <scope>compile</scope>
</dependency>
<!-- END: dependencies that are shaded -->
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>1.2.16</version>
- <scope>provided</scope>
+ <scope>runtime</scope>
</dependency>
<dependency>
@@ -186,14 +192,14 @@
<groupId>net.java.dev.jna</groupId>
<artifactId>jna</artifactId>
<version>3.3.0</version>
- <scope>provided</scope>
+ <scope>runtime</scope>
</dependency>
<dependency>
<groupId>jline</groupId>
<artifactId>jline</artifactId>
<version>1.0</version>
- <scope>provided</scope>
+ <scope>runtime</scope>
</dependency>
<dependency>
@@ -294,6 +300,106 @@
</execution>
</executions>
</plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-shade-plugin</artifactId>
+ <version>1.5</version>
+ <executions>
+ <execution>
+ <phase>package</phase>
+ <goals>
+ <goal>shade</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <minimizeJar>true</minimizeJar>
+ <artifactSet>
+ <includes>
+ <include>com.googlecode.concurrentlinkedhashmap:concurrentlinkedhashmap-lru</include>
+ <include>com.google.guava:guava</include>
+ <include>org.elasticsearch:es-trove</include>
+ <include>org.elasticsearch:es-jsr166y</include>
+ <include>org.elasticsearch:es-jsr166e</include>
+ <include>commons-codec:commons-codec</include>
+ <include>org.mvel:mvel2</include>
+ <include>org.codehaus.jackson:jackson-core-asl</include>
+ <include>org.codehaus.jackson:jackson-smile</include>
+ <include>org.yaml:snakeyaml</include>
+ <include>joda-time:joda-time</include>
+ <include>org.jboss.netty:netty</include>
+ </includes>
+ </artifactSet>
+ <relocations>
+ <relocation>
+ <pattern>com.googlecode.concurrentlinkedhashmap</pattern>
+ <shadedPattern>org.elasticsearch.common.concurrentlinkedhashmap</shadedPattern>
+ </relocation>
+ <relocation>
+ <pattern>com.google.common</pattern>
+ <shadedPattern>org.elasticsearch.common</shadedPattern>
+ </relocation>
+ <relocation>
+ <pattern>gnu.trove</pattern>
+ <shadedPattern>org.elasticsearch.common.trove</shadedPattern>
+ </relocation>
+ <relocation>
+ <pattern>jsr166y</pattern>
+ <shadedPattern>org.elasticsearch.common.util.concurrent.jsr166y</shadedPattern>
+ </relocation>
+ <relocation>
+ <pattern>jsr166e</pattern>
+ <shadedPattern>org.elasticsearch.common.util.concurrent.jsr166e</shadedPattern>
+ </relocation>
+ <relocation>
+ <pattern>org.apache.commons.codec</pattern>
+ <shadedPattern>org.elasticsearch.common.codec</shadedPattern>
+ </relocation>
+ <relocation>
+ <pattern>org.mvel2</pattern>
+ <shadedPattern>org.elasticsearch.common.mvel2</shadedPattern>
+ </relocation>
+ <relocation>
+ <pattern>org.codehaus.jackson</pattern>
+ <shadedPattern>org.elasticsearch.common.jackson</shadedPattern>
+ </relocation>
+ <relocation>
+ <pattern>org.yaml</pattern>
+ <shadedPattern>org.elasticsearch.common.yaml</shadedPattern>
+ </relocation>
+ <relocation>
+ <pattern>org.joda</pattern>
+ <shadedPattern>org.elasticsearch.common.joda</shadedPattern>
+ </relocation>
+ <relocation>
+ <pattern>org.jboss.netty</pattern>
+ <shadedPattern>org.elasticsearch.common.netty</shadedPattern>
+ </relocation>
+ </relocations>
+ <filters>
+ <filter>
+ <artifact>*:*</artifact>
+ <excludes>
+ <exclude>META-INF/**</exclude>
+ <exclude>LICENSE</exclude>
+ <exclude>NOTICE</exclude>
+ <exclude>/*.txt</exclude>
+ <exclude>build.properties</exclude>
+ </excludes>
+ </filter>
+ </filters>
+ </configuration>
+ </plugin>
+ <plugin>
+ <artifactId>maven-assembly-plugin</artifactId>
+ <configuration>
+ <outputDirectory>${project.build.directory}/releases/</outputDirectory>
+ <descriptors>
+ <descriptor>${basedir}/src/main/assemblies/targz-bin.xml</descriptor>
+ <descriptor>${basedir}/src/main/assemblies/zip-bin.xml</descriptor>
+ </descriptors>
+ </configuration>
+ </plugin>
</plugins>
</build>
</project>
@@ -0,0 +1,40 @@
+<component>
+ <dependencySets>
+ <dependencySet>
+ <outputDirectory>/lib</outputDirectory>
+ <useTransitiveFiltering>true</useTransitiveFiltering>
+ <includes>
+ <include>org.apache.lucene:lucene*</include>
+ <include>log4j:log4j</include>
+ <include>jline:jline</include>
+ <include>net.java.dev.jna:jna</include>
+ </includes>
+ </dependencySet>
+ <dependencySet>
+ <outputDirectory>/lib</outputDirectory>
+ <useTransitiveDependencies>false</useTransitiveDependencies>
+ <includes>
+ <include>org.elasticsearch:elasticsearch</include>
+ </includes>
+ </dependencySet>
+ </dependencySets>
+ <fileSets>
+ <fileSet>
+ <directory>config</directory>
+ <outputDirectory>config</outputDirectory>
+ <includes>
+ <include>*</include>
+ </includes>
+ </fileSet>
+ </fileSets>
+ <files>
+ <file>
+ <source>LICENSE.txt</source>
+ <outputDirectory>/</outputDirectory>
+ </file>
+ <file>
+ <source>NOTICE.txt</source>
+ <outputDirectory>/</outputDirectory>
+ </file>
+ </files>
+</component>
@@ -0,0 +1,36 @@
+<?xml version="1.0"?>
+<assembly>
+ <id></id>
+ <formats>
+ <format>tar.gz</format>
+ </formats>
+
+ <includeBaseDirectory>true</includeBaseDirectory>
+
+ <fileSets>
+ <fileSet>
+ <directory>bin</directory>
+ <outputDirectory>bin</outputDirectory>
+ <fileMode>0755</fileMode>
+ <directoryMode>0755</directoryMode>
+ <lineEnding>unix</lineEnding>
+ <includes>
+ <include>elasticsearch.in.sh</include>
+ <include>elasticsearch</include>
+ <include>plugin</include>
+ </includes>
+ </fileSet>
+
+ <fileSet>
+ <directory>lib/sigar</directory>
+ <outputDirectory>lib/sigar</outputDirectory>
+ <excludes>
+ <exclude>*.dll</exclude>
+ </excludes>
+ </fileSet>
+ </fileSets>
+
+ <componentDescriptors>
+ <componentDescriptor>src/main/assemblies/common-bin.xml</componentDescriptor>
+ </componentDescriptors>
+</assembly>
@@ -0,0 +1,31 @@
+<?xml version="1.0"?>
+<assembly>
+ <id></id>
+ <formats>
+ <format>zip</format>
+ </formats>
+
+ <includeBaseDirectory>true</includeBaseDirectory>
+
+ <fileSets>
+ <fileSet>
+ <directory>bin</directory>
+ <outputDirectory>bin</outputDirectory>
+ <includes>
+ <include>*</include>
+ </includes>
+ </fileSet>
+
+ <fileSet>
+ <directory>lib/sigar</directory>
+ <outputDirectory>lib/sigar</outputDirectory>
+ <includes>
+ <include>*</include>
+ </includes>
+ </fileSet>
+ </fileSets>
+
+ <componentDescriptors>
+ <componentDescriptor>src/main/assemblies/common-bin.xml</componentDescriptor>
+ </componentDescriptors>
+</assembly>

0 comments on commit 19d80a7

Please sign in to comment.