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

cem koc commented on MWAR-249:
------------------------------

Without use cache directive, war plugin is replacing modified files which are 
modified at another phase. Use cache is protecting files which are modified at 
another phases. 

Without use cache

1) Copy files with war:exploded
2) Modify them with replace plugin
3) Replace all files at target folder with war:war at package phase. 

this is completely deleting modified files with are enhanced with another plugin

With use cache

1) Copy files with war:exploded
2) Modify them with replace plugin
3) War:war without deleting modified files

And as a result of this, It lets us for pre-processing before package phase at 
exploded folder.

> 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

        

Reply via email to