Maven 2.x WAR Plugin

Changes in dependencies aren't reflected in target/modulename/WEB-INF/lib

Details

  • Type: Bug Bug
  • Status: Open Open
  • Priority: Major Major
  • Resolution: Unresolved
  • Affects Version/s: 2.1-alpha-2
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • Number of attachments :
    0

Description

The war plugin copies module dependencies into target/modulename/WEB-INF/lib, but it doesn't remove files that don't belong there.

So if I change POM to remove a dependency or change a version, you still see the old jar in WEB-INF/lib until you do a clean rebuild.

As this often results in a rather painful bug (where you get two different versions of the same library in WEB-INF/lib, which makes the program break in some systems but not others), it'd be highly desirable if the plugin is smart enough to delete files that shouldn't be there.

Activity

Hide
Stephane Nicoll added a comment -

Agreed. Once the metadata about libraries will be fixed, this is trivial to implement.

Show
Stephane Nicoll added a comment - Agreed. Once the metadata about libraries will be fixed, this is trivial to implement.

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated: