Maven 2.x WAR Plugin

transitive dependency on POM artifact not respected

Details

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

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

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.

People

Vote (0)
Watch (3)

Dates

  • Created:
    Updated:
    Resolved: