You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Stephane Nicoll (JIRA)" <ji...@codehaus.org> on 2011/02/15 08:44:22 UTC

[jira] Commented: (MWAR-249) War plugin doesn't let modify the contents of the "exploded" directory

    [ http://jira.codehaus.org/browse/MWAR-249?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=256090#action_256090 ] 

Stephane Nicoll commented on MWAR-249:
--------------------------------------

That does not sound a bug to me. The problem you're having is that the war plugin does not run in the "prepare-package" phase and hence you cannot hook into it. That's why you're invoking it the plugin manually which is useless since the default profile will kicks in and the package phase will call the war plugin again (you can see that in the logs)



> War plugin doesn't let modify the contents of the "exploded" directory
> ----------------------------------------------------------------------
>
>                 Key: MWAR-249
>                 URL: http://jira.codehaus.org/browse/MWAR-249
>             Project: Maven 2.x WAR Plugin
>          Issue Type: Bug
>    Affects Versions: 2.1, 2.2
>         Environment: maven 3
>            Reporter: cem koc
>         Attachments: Test.zip
>
>
> Shortly I am trying to modify the contents of the "exploded" directory before package phase. I was successfully modifying contents of the exploded directories before updating my war plugin.
> My goal was
> 1) Creating an exploded directory of the sources.
> 2) Modifying contents with Replace plugin 
> 3) Creating a war file including modified files
> To recreate issue,
> *) mvn clean prepare-package --> This will create as expected file.
> *) mvn clean package --> This will replace again modified file with old one.
> Thanks

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