Hello Ramin,
You can use maven-shade-plugin for creating uber-JAR as well. For example,
we use following configuration:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<createDependencyReducedPom>false</createDependencyReducedPom>
</configuration>
</execution>
</executions>
<configuration>
<artifactSet>
<excludes>
<exclude>org.apache.storm:storm-core</exclude>
</excludes>
</artifactSet>
</configuration>
</plugin>
​Cheers!
Stefan
On Fri, Mar 24, 2017 at 3:03 PM, Ramin Farajollah (BLOOMBERG/ 731 LEX) <
[email protected]> wrote:
> Hi,
>
> The following link describes how to create a Maven assembly and that the
> Storm jars should be excluded:
> http://storm.apache.org/releases/1.0.3/Running-topologies-on-a-production-
> cluster.html
>
> I have been able to generate both a jar of my own classes and another with
> dependencies. Neither are acceptable to "storm jar" command.
>
> *** The question: How to exclude Storm jars from jar-with-dependencies?
>
> On the web there are plenty examples of using an assembly xml but I did
> not find one using a plugin as suggested in the above link.
> Would you paste the portion of a pom.xml that includes both the plugin for
> maven-assembly-plugin artifact and the exclusions?
>
> Thank you!
>
> Thank you,
> Ramin Farajollah
> 212 617-0014 <(212)%20617-0014>
>
>
--
Mgr. Stefan Rakonjac
(+420) 774 692 671
[email protected]