Maven WAR Plugin
  1. Maven WAR Plugin
  2. MWAR-83

transitive dependency on POM artifact not respected

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Incomplete
    • Affects Version/s: 2.0.1
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      When I build a WAR with the following dependencies:
      A (scope provided, type pom) -> B (scope compile, type jar)
      C (scope runtime, type jar) -> B (scope compile, type jar)
      then B gets included under WEB-INF/lib which I think it should not be. I use the provided pom artifact A to represent the dependencies provided by my container.

        Issue Links

          Activity

          Frank Cornelis created issue -
          Hide
          Stephane Nicoll added a comment -

          I don't follow. If B has a compiled scope, it should be there.

          Show
          Stephane Nicoll added a comment - I don't follow. If B has a compiled scope, it should be there.
          Hide
          Frank Cornelis added a comment -

          If A has scope provided, shouldn't that mean that A and everything that comes with it, is provided, including B? It's how I would expect it to behave. Thus B would also be marked as provided somehow? Or am I interpreting the scope transitivity wrong?

          Show
          Frank Cornelis added a comment - If A has scope provided, shouldn't that mean that A and everything that comes with it, is provided, including B? It's how I would expect it to behave. Thus B would also be marked as provided somehow? Or am I interpreting the scope transitivity wrong?
          Hide
          Stephane Nicoll added a comment -

          Probably but it's not clear at all. I don't see how C comes into the picture. Could you please describe this with more details, namely the dependency of of the war project (dependencies declared in the pom directly) and the result of help:dependencies.

          Show
          Stephane Nicoll added a comment - Probably but it's not clear at all. I don't see how C comes into the picture. Could you please describe this with more details, namely the dependency of of the war project (dependencies declared in the pom directly) and the result of help:dependencies.
          Stephane Nicoll made changes -
          Field Original Value New Value
          Link This issue is related to MWAR-111 [ MWAR-111 ]
          Dennis Lundberg made changes -
          Resolution Incomplete [ 4 ]
          Status Open [ 1 ] Closed [ 6 ]
          Mark Thomas made changes -
          Project Import Sun Apr 05 13:28:45 UTC 2015 [ 1428240525159 ]
          Mark Thomas made changes -
          Workflow jira [ 12728499 ] Default workflow, editable Closed status [ 12764960 ]
          Mark Thomas made changes -
          Project Import Mon Apr 06 01:49:55 UTC 2015 [ 1428284995525 ]
          Mark Thomas made changes -
          Workflow jira [ 12966340 ] Default workflow, editable Closed status [ 13002401 ]
          Transition Time In Source Status Execution Times Last Executer Last Execution Date
          Open Open Closed Closed
          1365d 1h 53m 1 Dennis Lundberg 12/Aug/10 03:22

            People

            • Assignee:
              Unassigned
              Reporter:
              Frank Cornelis
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development