You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "EJ Ciramella (JIRA)" <ji...@codehaus.org> on 2008/07/31 16:27:27 UTC

[jira] Created: (MNG-3692) War plugin version 2.1-alpha-1 re-processes files

War plugin version 2.1-alpha-1 re-processes files
-------------------------------------------------

                 Key: MNG-3692
                 URL: http://jira.codehaus.org/browse/MNG-3692
             Project: Maven 2
          Issue Type: Bug
          Components: Plugins and Lifecycle
    Affects Versions: 2.1-alpha-1
         Environment: Windows/jdk 151/maven 2.0.9
            Reporter: EJ Ciramella


We have a version.html file that has a ${label} token inside (as listed
below).  When I run with maven 2.0.9, using "mvn install", I can see
that version.html is copied into the target location twice, once via
process-resources (and it's expanded at this point) and then a second
time when the war plugin says:

[INFO] Assembling webapp[pdtApp] in
[E:\work\up-svcs\lty\rel\LTY-R66.0\programData\pdt-web\target\pdtApp-66.
0-SNAPSHOT]
[INFO] Processing war project        <-------------------------
[INFO] Webapp assembled in[2530 msecs]

This is a change since mvn 2.0.5.

I've NOT defined a war plugin, I'm only telling maven that the
<packaging> is war.  Is it looking at all the defined <resources> and
copying them over?

To reproduce this, set up a resource (such as version.html) with a token in it that lives in the webapp directory under source.  Run a mvn package or mvn install and you'll see that the token first is expanded during the process-resources goal, then during package, the war plugin copies over (and overwrites) that same file.


-- 
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: (MNG-3692) War plugin version 2.1-alpha-1 re-processes files

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-3692?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brett Porter updated MNG-3692:
------------------------------

    Fix Version/s:     (was: 2.0.x)

> War plugin version 2.1-alpha-1 re-processes files
> -------------------------------------------------
>
>                 Key: MNG-3692
>                 URL: http://jira.codehaus.org/browse/MNG-3692
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Plugins and Lifecycle
>    Affects Versions: 2.0.9
>         Environment: Windows/jdk 151/maven 2.0.9
>            Reporter: EJ Ciramella
>
> We have a version.html file that has a ${label} token inside (as listed
> below).  When I run with maven 2.0.9, using "mvn install", I can see
> that version.html is copied into the target location twice, once via
> process-resources (and it's expanded at this point) and then a second
> time when the war plugin says:
> [INFO] Assembling webapp[pdtApp] in
> [E:\work\up-svcs\lty\rel\LTY-R66.0\programData\pdt-web\target\pdtApp-66.
> 0-SNAPSHOT]
> [INFO] Processing war project        <-------------------------
> [INFO] Webapp assembled in[2530 msecs]
> This is a change since mvn 2.0.5.
> I've NOT defined a war plugin, I'm only telling maven that the
> <packaging> is war.  Is it looking at all the defined <resources> and
> copying them over?
> To reproduce this, set up a resource (such as version.html) with a token in it that lives in the webapp directory under source.  Run a mvn package or mvn install and you'll see that the token first is expanded during the process-resources goal, then during package, the war plugin copies over (and overwrites) that same file.

-- 
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: (MNG-3692) War plugin version 2.1-alpha-1 re-processes files

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-3692?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brett Porter updated MNG-3692:
------------------------------

    Affects Version/s:     (was: 2.1-alpha-1)
                       2.0.9
        Fix Version/s: 2.0.x

please review with 2.0.10, this may have been fixed by the other processing fixes

> War plugin version 2.1-alpha-1 re-processes files
> -------------------------------------------------
>
>                 Key: MNG-3692
>                 URL: http://jira.codehaus.org/browse/MNG-3692
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Plugins and Lifecycle
>    Affects Versions: 2.0.9
>         Environment: Windows/jdk 151/maven 2.0.9
>            Reporter: EJ Ciramella
>             Fix For: 2.0.x
>
>
> We have a version.html file that has a ${label} token inside (as listed
> below).  When I run with maven 2.0.9, using "mvn install", I can see
> that version.html is copied into the target location twice, once via
> process-resources (and it's expanded at this point) and then a second
> time when the war plugin says:
> [INFO] Assembling webapp[pdtApp] in
> [E:\work\up-svcs\lty\rel\LTY-R66.0\programData\pdt-web\target\pdtApp-66.
> 0-SNAPSHOT]
> [INFO] Processing war project        <-------------------------
> [INFO] Webapp assembled in[2530 msecs]
> This is a change since mvn 2.0.5.
> I've NOT defined a war plugin, I'm only telling maven that the
> <packaging> is war.  Is it looking at all the defined <resources> and
> copying them over?
> To reproduce this, set up a resource (such as version.html) with a token in it that lives in the webapp directory under source.  Run a mvn package or mvn install and you'll see that the token first is expanded during the process-resources goal, then during package, the war plugin copies over (and overwrites) that same file.

-- 
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: (MNG-3692) War plugin version 2.1-alpha-1 re-processes files

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-3692?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brett Porter closed MNG-3692.
-----------------------------

      Assignee: Brett Porter
    Resolution: Incomplete

closing due to lack of info

> War plugin version 2.1-alpha-1 re-processes files
> -------------------------------------------------
>
>                 Key: MNG-3692
>                 URL: http://jira.codehaus.org/browse/MNG-3692
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Plugins and Lifecycle
>    Affects Versions: 2.0.9
>         Environment: Windows/jdk 151/maven 2.0.9
>            Reporter: EJ Ciramella
>            Assignee: Brett Porter
>
> We have a version.html file that has a ${label} token inside (as listed
> below).  When I run with maven 2.0.9, using "mvn install", I can see
> that version.html is copied into the target location twice, once via
> process-resources (and it's expanded at this point) and then a second
> time when the war plugin says:
> [INFO] Assembling webapp[pdtApp] in
> [E:\work\up-svcs\lty\rel\LTY-R66.0\programData\pdt-web\target\pdtApp-66.
> 0-SNAPSHOT]
> [INFO] Processing war project        <-------------------------
> [INFO] Webapp assembled in[2530 msecs]
> This is a change since mvn 2.0.5.
> I've NOT defined a war plugin, I'm only telling maven that the
> <packaging> is war.  Is it looking at all the defined <resources> and
> copying them over?
> To reproduce this, set up a resource (such as version.html) with a token in it that lives in the webapp directory under source.  Run a mvn package or mvn install and you'll see that the token first is expanded during the process-resources goal, then during package, the war plugin copies over (and overwrites) that same file.

-- 
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: (MNG-3692) War plugin version 2.1-alpha-1 re-processes files

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-3692?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=158583#action_158583 ] 

Brett Porter commented on MNG-3692:
-----------------------------------

I really don't understand your description, can you please attach a sample project?

> War plugin version 2.1-alpha-1 re-processes files
> -------------------------------------------------
>
>                 Key: MNG-3692
>                 URL: http://jira.codehaus.org/browse/MNG-3692
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Plugins and Lifecycle
>    Affects Versions: 2.0.9
>         Environment: Windows/jdk 151/maven 2.0.9
>            Reporter: EJ Ciramella
>
> We have a version.html file that has a ${label} token inside (as listed
> below).  When I run with maven 2.0.9, using "mvn install", I can see
> that version.html is copied into the target location twice, once via
> process-resources (and it's expanded at this point) and then a second
> time when the war plugin says:
> [INFO] Assembling webapp[pdtApp] in
> [E:\work\up-svcs\lty\rel\LTY-R66.0\programData\pdt-web\target\pdtApp-66.
> 0-SNAPSHOT]
> [INFO] Processing war project        <-------------------------
> [INFO] Webapp assembled in[2530 msecs]
> This is a change since mvn 2.0.5.
> I've NOT defined a war plugin, I'm only telling maven that the
> <packaging> is war.  Is it looking at all the defined <resources> and
> copying them over?
> To reproduce this, set up a resource (such as version.html) with a token in it that lives in the webapp directory under source.  Run a mvn package or mvn install and you'll see that the token first is expanded during the process-resources goal, then during package, the war plugin copies over (and overwrites) that same file.

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