Permalink
Browse files

Updated maven2 pom to create a storm-deployable jar that excludes sto…

…rm dependencies.
  • Loading branch information...
1 parent 1891618 commit 91550313b5288e9c059165e6ce8bad180fb764cb @ptgoetz ptgoetz committed Nov 2, 2011
Showing with 31 additions and 0 deletions.
  1. +31 −0 m2-pom.xml
View
@@ -39,6 +39,8 @@
<groupId>storm</groupId>
<artifactId>storm</artifactId>
<version>0.5.4</version>
+ <!-- keep storm out of the jar-with-dependencies -->
+ <scope>provided</scope>
</dependency>
<dependency>
<groupId>org.twitter4j</groupId>
@@ -75,6 +77,35 @@
</resource>
</resources>
<plugins>
+ <!--
+ bind the maven-assembly-plugin to the package phase
+ this will create a jar file without the storm dependencies
+ suitable for deployment to a cluster.
+ -->
+ <plugin>
+ <artifactId>maven-assembly-plugin</artifactId>
+ <configuration>
+ <descriptorRefs>
+ <descriptorRef>jar-with-dependencies</descriptorRef>
+ </descriptorRefs>
+ <archive>
+ <manifest>
+ <mainClass></mainClass>
+ </manifest>
+ </archive>
+ </configuration>
+ <executions>
+ <execution>
+ <id>make-assembly</id>
+ <phase>package</phase>
+ <goals>
+ <goal>single</goal>
+ </goals>
+ </execution>
+ </executions>
+
+ </plugin>
+
<plugin>
<groupId>com.theoryinpractise</groupId>
<artifactId>clojure-maven-plugin</artifactId>

0 comments on commit 9155031

Please sign in to comment.