Maven 2.x Assembly Plugin

Filtering doesn't work when a file matches both a <fileSet> and a <file>

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 2.2-beta-1, 2.2-beta-3, 2.2
  • Fix Version/s: 2.2-beta-2
  • Component/s: None
  • Labels:
    None
  • Environment:
    Linux, JDK 1.5
  • Number of attachments :
    1

Description

When a subset of files in a <fileSet> need to be filtered, separate <file> elements are required for each file. In 2.1, this worked, but in 2.2 the files seem to be filtered in the target/archive-tmp directory, but they don't make it into the zip file. A simple example project demonstrating the problem is attached.

Issue Links

Activity

Hide
Jim Crossley added a comment -

If the <fileSet> element supported filtering, this bug would be obsolete.

Show
Jim Crossley added a comment - If the <fileSet> element supported filtering, this bug would be obsolete.
Hide
Fabrice Bellingard added a comment -

You can also use <excludes> on the <fileSet> to prevent it from overwriting the filtered files defined in <file>.
Anyways, I fixed MASSEMBLY-154 so, as you mentioned, this bug is obsolete. I'll close it.

Show
Fabrice Bellingard added a comment - You can also use <excludes> on the <fileSet> to prevent it from overwriting the filtered files defined in <file>. Anyways, I fixed MASSEMBLY-154 so, as you mentioned, this bug is obsolete. I'll close it.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: