jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Maven 2.x Assembly Plugin
  • MASSEMBLY-329

Filter fail to initialize when build from parent pom while assembly is in child pom

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Cannot Reproduce
  • Affects Version/s: 2.2-beta-2
  • Fix Version/s: None
  • Labels:
    None
  • Environment:
    maven 2.0.9 Windows XP

Description

I have the project structure which is the same as the attached file. When I try to execute mvn package in the user-ear project directly, the filters are initialized and executed. However if I try to execute mvn package in the parent directory. The filter is gone. When I use -X options, I didn't find the log message
"[DEBUG] Initializing assembly filters..."

  • Options
    • Sort By Name
    • Sort By Date
    • Ascending
    • Descending
    • Download All

Attachments

  1. Hide
    Zip Archive
    maven-assembly-plugin-bug-filtered.zip
    01/Feb/09 9:58 AM
    4 kB
    Jeff Johnson
    1. XML File
      maven-assembly-plugin-bug-filtered/.../pom.xml 0.9 kB
    2. XML File
      maven-assembly-plugin-bug-filtered/.../assembly.xml 0.6 kB
    3. Java Source File
      maven-assembly-plugin-bug-filtered/.../App.java 0.2 kB
    4. Text File
      maven-assembly-plugin-bug-filtered/.../fileToFilter.txt 0.2 kB
    5. Text File
      maven-assembly-plugin-bug-filtered/.../fileToFilter2.txt 0.2 kB
    6. XML File
      maven-assembly-plugin-bug-filtered/pom.xml 0.4 kB
    Download Zip
    Show
    Zip Archive
    maven-assembly-plugin-bug-filtered.zip
    01/Feb/09 9:58 AM
    4 kB
    Jeff Johnson
  2. Hide
    Zip Archive
    project-structure.zip
    04/Jun/08 10:11 AM
    11 kB
    Andy Yeung
    1. File
      project-structure/.classpath 0.3 kB
    2. File
      project-structure/.project 0.6 kB
    3. XML File
      project-structure/pom.xml 11 kB
    4. File
      project-structure/user-core/.classpath 0.6 kB
    5. File
      project-structure/user-core/.project 0.6 kB
    6. XML File
      project-structure/user-core/pom.xml 3 kB
    7. File
      project-structure/user-ear/.classpath 0.4 kB
    8. File
      project-structure/user-ear/.project 0.7 kB
    9. XML File
      project-structure/user-ear/pom.xml 4 kB
    10. File
      project-structure/user-ejb/.classpath 0.7 kB
    11. File
      project-structure/user-ejb/.project 0.7 kB
    12. XML File
      project-structure/user-ejb/pom.xml 3 kB
    13. File
      project-structure/.../.classpath 0.5 kB
    14. File
      project-structure/user-startup/.project 1 kB
    15. XML File
      project-structure/user-startup/pom.xml 1 kB
    Download Zip
    Show
    Zip Archive
    project-structure.zip
    04/Jun/08 10:11 AM
    11 kB
    Andy Yeung
  3. Hide
    Zip Archive
    target-aggregator.zip
    01/Feb/09 10:12 AM
    5 kB
    Jeff Johnson
    1. File
      target/.../fileToFilter2.txt.1163693184.filtered 0.1 kB
    2. File
      target/.../fileToFilter2.txt.1765534053.filtered 0.1 kB
    3. File
      target/classes/com/jj/maven/App.class 0.5 kB
    4. Text File
      target/classes/fileToFilter.txt 0.2 kB
    5. Text File
      target/classes/fileToFilter2.txt 0.2 kB
    6. File
      target/maven-archiver/pom.properties 0.1 kB
    7. Java Archive File
      target/module-a-1.0-SNAPSHOT.jar 3 kB
    8. GZip Archive
      target/module-a-1.0-SNAPSHOT.tar.gz 0.3 kB
    9. Zip Archive
      target/module-a-1.0-SNAPSHOT.zip 0.6 kB
    Download Zip
    Show
    Zip Archive
    target-aggregator.zip
    01/Feb/09 10:12 AM
    5 kB
    Jeff Johnson
  4. Hide
    Zip Archive
    target-module.zip
    01/Feb/09 10:12 AM
    7 kB
    Jeff Johnson
    1. Text File
      target/archive-tmp/.../fileToFilter.txt 0.1 kB
    2. File
      target/.../fileToFilter.txt.2143671361.filtered 0.1 kB
    3. Text File
      target/archive-tmp/.../fileToFilter.txt 0.1 kB
    4. File
      target/.../fileToFilter.txt.248317485.filtered 0.1 kB
    5. File
      target/.../fileToFilter2.txt.1303002876.filtered 0.1 kB
    6. File
      target/.../fileToFilter2.txt.254473467.filtered 0.1 kB
    7. File
      target/classes/com/jj/maven/App.class 0.5 kB
    8. Text File
      target/classes/fileToFilter.txt 0.2 kB
    9. Text File
      target/classes/fileToFilter2.txt 0.2 kB
    10. File
      target/maven-archiver/pom.properties 0.1 kB
    11. Java Archive File
      target/module-a-1.0-SNAPSHOT.jar 3 kB
    12. GZip Archive
      target/module-a-1.0-SNAPSHOT.tar.gz 0.2 kB
    13. Zip Archive
      target/module-a-1.0-SNAPSHOT.zip 0.6 kB
    Download Zip
    Show
    Zip Archive
    target-module.zip
    01/Feb/09 10:12 AM
    7 kB
    Jeff Johnson

Issue Links

is related to

Bug - A problem which impairs or prevents the functions of the product. MASSEMBLY-230 <fileset> not filtering resources, but <files> does filter

  • Major - Major loss of function.
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.

Bug - A problem which impairs or prevents the functions of the product. MASSEMBLY-293 <fileSets> not filtered in multimodule build, but <files> are

  • Major - Major loss of function.
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.

Improvement - An improvement or enhancement to an existing feature or task. MASSEMBLY-154 FileSet does not support filtering

  • Major - Major loss of function.
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Jeff Johnson added a comment - 01/Feb/09 9:58 AM

Maven project which illustrates <filtered> working with <file> but not <fileSet>.

Show
Jeff Johnson added a comment - 01/Feb/09 9:58 AM Maven project which illustrates <filtered> working with <file> but not <fileSet>.
Hide
Permalink
Jeff Johnson added a comment - 01/Feb/09 10:09 AM

I have experienced the same issue and have a few more details. Please see attachment "maven-assembly-plugin-bug-filtered.zip".

When running from the parent aggregator POM <filtered> works with <file> elements but not with <fileSet> elements.
When running from the child module POM both <file> and <fileSet> elements are properly filtered.

Note that when running from the child module POM the resulting target/archive-tmp directory contains fileSetFormatter.*.tmp directories, but not when running from the parent aggregator POM.
I will attach the resulting target directories as "target-aggregator.zip" and "target-module.zip".

Show
Jeff Johnson added a comment - 01/Feb/09 10:09 AM I have experienced the same issue and have a few more details. Please see attachment "maven-assembly-plugin-bug-filtered.zip". When running from the parent aggregator POM <filtered> works with <file> elements but not with <fileSet> elements. When running from the child module POM both <file> and <fileSet> elements are properly filtered. Note that when running from the child module POM the resulting target/archive-tmp directory contains fileSetFormatter.*.tmp directories, but not when running from the parent aggregator POM. I will attach the resulting target directories as "target-aggregator.zip" and "target-module.zip".
Hide
Permalink
Jeff Johnson added a comment - 01/Feb/09 10:50 AM

These issues are fixed in version 2.2-beta-3, so this issue can be closed.

Show
Jeff Johnson added a comment - 01/Feb/09 10:50 AM These issues are fixed in version 2.2-beta-3, so this issue can be closed.
Hide
Permalink
John Casey added a comment - 24/Sep/10 11:25 AM

checked this against 2.2-beta-5, and it's not failing. It appears to be fixed in the interim.

Show
John Casey added a comment - 24/Sep/10 11:25 AM checked this against 2.2-beta-5, and it's not failing. It appears to be fixed in the interim.

People

  • Assignee:
    John Casey
    Reporter:
    Andy Yeung
Vote (1)
Watch (2)

Dates

  • Created:
    04/Jun/08 10:11 AM
    Updated:
    24/Sep/10 11:25 AM
    Resolved:
    24/Sep/10 11:25 AM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.