You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Andy Yeung (JIRA)" <ji...@codehaus.org> on 2008/06/04 17:12:54 UTC

[jira] Created: (MASSEMBLY-329) Filter fail to initialize when build from parent pom while assembly is in child pom

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

                 Key: MASSEMBLY-329
                 URL: http://jira.codehaus.org/browse/MASSEMBLY-329
             Project: Maven 2.x Assembly Plugin
          Issue Type: Bug
    Affects Versions: 2.2-beta-2
         Environment: maven 2.0.9  Windows XP
            Reporter: Andy Yeung
         Attachments: project-structure.zip

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..."

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Closed: (MASSEMBLY-329) Filter fail to initialize when build from parent pom while assembly is in child pom

Posted by "John Casey (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MASSEMBLY-329?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

John Casey closed MASSEMBLY-329.
--------------------------------

    Resolution: Cannot Reproduce
      Assignee: John Casey

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

> Filter fail to initialize when build from parent pom while assembly is in child pom
> -----------------------------------------------------------------------------------
>
>                 Key: MASSEMBLY-329
>                 URL: http://jira.codehaus.org/browse/MASSEMBLY-329
>             Project: Maven 2.x Assembly Plugin
>          Issue Type: Bug
>    Affects Versions: 2.2-beta-2
>         Environment: maven 2.0.9  Windows XP
>            Reporter: Andy Yeung
>            Assignee: John Casey
>         Attachments: maven-assembly-plugin-bug-filtered.zip, project-structure.zip, target-aggregator.zip, target-module.zip
>
>
> 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..."

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (MASSEMBLY-329) Filter fail to initialize when build from parent pom while assembly is in child pom

Posted by "Jeff Johnson (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MASSEMBLY-329?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jeff Johnson updated MASSEMBLY-329:
-----------------------------------

    Attachment: target-module.zip
                target-aggregator.zip

> Filter fail to initialize when build from parent pom while assembly is in child pom
> -----------------------------------------------------------------------------------
>
>                 Key: MASSEMBLY-329
>                 URL: http://jira.codehaus.org/browse/MASSEMBLY-329
>             Project: Maven 2.x Assembly Plugin
>          Issue Type: Bug
>    Affects Versions: 2.2-beta-2
>         Environment: maven 2.0.9  Windows XP
>            Reporter: Andy Yeung
>         Attachments: maven-assembly-plugin-bug-filtered.zip, project-structure.zip, target-aggregator.zip, target-module.zip
>
>
> 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..."

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MASSEMBLY-329) Filter fail to initialize when build from parent pom while assembly is in child pom

Posted by "Jeff Johnson (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MASSEMBLY-329?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=163467#action_163467 ] 

Jeff Johnson commented on MASSEMBLY-329:
----------------------------------------

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

> Filter fail to initialize when build from parent pom while assembly is in child pom
> -----------------------------------------------------------------------------------
>
>                 Key: MASSEMBLY-329
>                 URL: http://jira.codehaus.org/browse/MASSEMBLY-329
>             Project: Maven 2.x Assembly Plugin
>          Issue Type: Bug
>    Affects Versions: 2.2-beta-2
>         Environment: maven 2.0.9  Windows XP
>            Reporter: Andy Yeung
>         Attachments: maven-assembly-plugin-bug-filtered.zip, project-structure.zip, target-aggregator.zip, target-module.zip
>
>
> 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..."

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (MASSEMBLY-329) Filter fail to initialize when build from parent pom while assembly is in child pom

Posted by "Jeff Johnson (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MASSEMBLY-329?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jeff Johnson updated MASSEMBLY-329:
-----------------------------------

    Attachment: maven-assembly-plugin-bug-filtered.zip

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

> Filter fail to initialize when build from parent pom while assembly is in child pom
> -----------------------------------------------------------------------------------
>
>                 Key: MASSEMBLY-329
>                 URL: http://jira.codehaus.org/browse/MASSEMBLY-329
>             Project: Maven 2.x Assembly Plugin
>          Issue Type: Bug
>    Affects Versions: 2.2-beta-2
>         Environment: maven 2.0.9  Windows XP
>            Reporter: Andy Yeung
>         Attachments: maven-assembly-plugin-bug-filtered.zip, project-structure.zip
>
>
> 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..."

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MASSEMBLY-329) Filter fail to initialize when build from parent pom while assembly is in child pom

Posted by "Jeff Johnson (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MASSEMBLY-329?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=163466#action_163466 ] 

Jeff Johnson commented on MASSEMBLY-329:
----------------------------------------

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".

> Filter fail to initialize when build from parent pom while assembly is in child pom
> -----------------------------------------------------------------------------------
>
>                 Key: MASSEMBLY-329
>                 URL: http://jira.codehaus.org/browse/MASSEMBLY-329
>             Project: Maven 2.x Assembly Plugin
>          Issue Type: Bug
>    Affects Versions: 2.2-beta-2
>         Environment: maven 2.0.9  Windows XP
>            Reporter: Andy Yeung
>         Attachments: maven-assembly-plugin-bug-filtered.zip, project-structure.zip
>
>
> 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..."

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira