Maven 2.x WAR Plugin

When including a war dependency as per MWAR-8, WEB-INF/lib/*.jar of the war dependency should be added as <scope>provided</scope> dependencies of the project.

Details

  • Type: Improvement Improvement
  • Status: Open Open
  • Priority: Major Major
  • Resolution: Unresolved
  • Affects Version/s: 2.0
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • Number of attachments :
    0

Description

When i build a webapp based on another war (as per MWAR-8) which already includes a lot of jar-files, it would be nice to automatically be able use those jar-files as dependencies without having to add them to the pom.

Activity

Hide
Brett Porter added a comment -

requires core changes

Show
Brett Porter added a comment - requires core changes
Hide
Douglas Ferguson added a comment -

It would also be nice if WEB-INF/classes could be picked up as dependencies also.

Show
Douglas Ferguson added a comment - It would also be nice if WEB-INF/classes could be picked up as dependencies also.
Hide
yuan added a comment -

Right now,I have to config the war project <attachClasses>true</attachClasses>,then I build a webapp based on the war project, add these dependencies:

<dependency>
<groupId>${groupId}</groupId>
<artifactId>${artifactId}</artifactId>
<version>${version}</version>
<type>war</type>
</dependency>


<dependency>
<groupId>${groupId}</groupId>
<artifactId>${artifactId}</artifactId>
<version>${version}</version>
<classifier>classes</classifier>
</dependency>

Show
yuan added a comment - Right now,I have to config the war project <attachClasses>true</attachClasses>,then I build a webapp based on the war project, add these dependencies: <dependency> <groupId>${groupId}</groupId> <artifactId>${artifactId}</artifactId> <version>${version}</version> <type>war</type> </dependency> <dependency> <groupId>${groupId}</groupId> <artifactId>${artifactId}</artifactId> <version>${version}</version> <classifier>classes</classifier> </dependency>

People

Vote (5)
Watch (6)

Dates

  • Created:
    Updated: