Maven
  1. Maven
  2. MNG-1991

Can't get transitive dependencies from a war pom when this war is added as a depdency of a project

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Incomplete
    • Affects Version/s: 2.0.2
    • Fix Version/s: None
    • Component/s: Dependencies
    • Labels:
      None
    • Complexity:
      Intermediate
    • Number of attachments :
      0

      Description

      I have a project (continuum-core-it) that need to use all transitive dependencies of a war (continuum-webapp). If i add the war as a dependency of the project with packaging war, war dependencies aren't shown by project, maven doesn't try to resolve them and doesn't add them in classpath.
      If if replace packaging from war to pom, all dependencies are resolved and added to classpath.

        Issue Links

          Activity

          Hide
          Ian Springer added a comment -

          Note: The maven warpath plugin (http://static.appfuse.org/maven-warpath-plugin/) provides a workaround to this issue. I tried it out, and it worked nicely for me.

          Show
          Ian Springer added a comment - Note: The maven warpath plugin ( http://static.appfuse.org/maven-warpath-plugin/ ) provides a workaround to this issue. I tried it out, and it worked nicely for me.
          Hide
          Felix Simmendinger added a comment -

          we work with skinny wars a lot and we got use to declare also a dependency to the pom of the war. By doing this you get all dependencies resolved and retrieved to the WEB-INF/lib dir.

          Show
          Felix Simmendinger added a comment - we work with skinny wars a lot and we got use to declare also a dependency to the pom of the war. By doing this you get all dependencies resolved and retrieved to the WEB-INF/lib dir.
          Hide
          Maarten Billemont added a comment -

          I've created a separate issue for the overlay case, since the resolution for that will probably be different from resolving the skinny WAR use case, and shouldn't need any additional configuration. See MWAR-253

          Show
          Maarten Billemont added a comment - I've created a separate issue for the overlay case, since the resolution for that will probably be different from resolving the skinny WAR use case, and shouldn't need any additional configuration. See MWAR-253
          Show
          Jason van Zyl added a comment - Please refer to https://cwiki.apache.org/confluence/display/MAVEN/The+Great+JIRA+Cleanup+of+2014
          Hide
          Jason van Zyl added a comment -

          Please refer to https://cwiki.apache.org/confluence/display/MAVEN/The+Great+JIRA+Cleanup+of+2014 if you're wondering why this issue was closed out.

          Show
          Jason van Zyl added a comment - Please refer to https://cwiki.apache.org/confluence/display/MAVEN/The+Great+JIRA+Cleanup+of+2014 if you're wondering why this issue was closed out.

            People

            • Assignee:
              Unassigned
              Reporter:
              Emmanuel Venisse
            • Votes:
              28 Vote for this issue
              Watchers:
              25 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: