Uploaded image for project: 'Apache Storm'
  1. Apache Storm
  2. STORM-499

Document and clean up shaded dependncy resolution with maven

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 0.9.3
    • 0.9.3
    • documentation, storm-core
    • None

    Description

      After STORM-447 went in several dependencies have been shaded. They no longer exist in their normal form on the storm classpath, but the pom.xml that is installed with maven lists them as provided.

      This can become an issue if their topology does not call out dependencies properly and they depend on something like guava, assuming that it will be available from storm.

      from https://github.com/apache/incubator-storm/pull/219 it looks like we should add

      <keepDependenciesWithProvidedScope>false</keepDependenciesWithProvidedScope>

      to help fix this, and add some documentation about how the maven assembly plug-in decides what to pull in, to give users instructions on how to depend on the shaded version of a package if they want to, or to be sure that they are including all of their real dependencies in their pom so in the future when we shade other things they are not caught off guard.

      Attachments

        Activity

          People

            ptgoetz P. Taylor Goetz
            revans2 Robert Joseph Evans
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: