Put the thresh jar in a place where it will get uploaded

Create a symlink so the target directory is in the place
the upload expects

Shrink the jar to only what is needed

Change-Id: Idb71dae90db4f6e749cc55ffbb106794a89651e1
This commit is contained in:
Craig Bryant 2015-01-26 14:22:41 -07:00
parent d1debf628b
commit 6e4fb0720a
2 changed files with 25 additions and 1 deletions

22
pom.xml
View File

@ -58,6 +58,28 @@
<tag>${project.version}</tag>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.1.1</version>
<executions>
<execution>
<id>some-execution</id>
<phase>package</phase>
<goals>
<goal>exec</goal>
</goals>
</execution>
</executions>
<configuration>
<executable>ln</executable>
<arguments>
<argument>-sf</argument>
<argument>thresh/target</argument>
<argument>target</argument>
</arguments>
</configuration>
</plugin>
</plugins>
</build>

View File

@ -79,6 +79,8 @@
<groupId>org.apache.storm</groupId>
<artifactId>storm-core</artifactId>
<version>${storm.version}</version>
<!-- The real deployment has all the Storm jars -->
<scope>provided</scope>
</dependency>
<dependency>
<groupId>monasca-common</groupId>
@ -219,7 +221,7 @@
<excludes>
<exclude>junit:junit</exclude>
<exclude>org.apache.storm:storm-core</exclude>
<exclude>org.hamcrest:*</exclude>
<exclude>org.hamcrest:hamcrest-core</exclude>
</excludes>
</artifactSet>
</configuration>