How to exclude dependencies from maven assembly plugin : jar-with-dependencies?

Add the <scope>provided</scope> to the dependencies you don’t want included in the jar-with-dependencies, e.g.

    <dependency>
      <groupId>storm</groupId>
      <artifactId>storm</artifactId>
      <version>0.6.1-SNAPSHOT</version>
      <scope>provided</scope>
    </dependency>

Leave a Comment