Uploaded image for project: 'Apache Twill'
  1. Apache Twill
  2. TWILL-182

ApplicationBundler will overwrite dependencies with identical names

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.7.0-incubating
    • Fix Version/s: 0.8.0
    • Component/s: core
    • Labels:
      None

      Description

      If two jars obtained from different classpath locations have the same name but different contents, one will overwrite the other. The dependency code correctly finds the jars (uses the full path in the HashSet which accumulates the deps) but when the bundle is created the jars are written to /lib under their name. This results in one overwriting the other.

      While this is not a likely occurrence, it occurs for us in our development environment because our published jar names are built up from their project hierarchy. For example the model project for our sdk is in .../sdk/model and will be on the classpath as .../sdk/model.jar and published as sdk-model.jar.

      In practice however this could occur with any jar name and would be more likely over time.

      The ApplicationBundler could detect this and re-write the name with some part of the path or suffix to ensure the name is unique.

        Attachments

          Activity

            People

            • Assignee:
              mserrano Martin Serrano
              Reporter:
              mserrano Martin Serrano
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: