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

cem koc edited comment on MWAR-249 at 2/15/11 6:16 AM:
-------------------------------------------------------

Hi,

It seems that default configuration of the war plugin changed. To make expected 
behaviour as in this example cache parameter should be activated.


{code:xml} 
<plugin>
        <artifactId>maven-war-plugin</artifactId>
        <version>2.1.1</version>
        <executions>
                <execution>
                        <phase>generate-resources</phase>
                        <goals>
                                <goal>exploded</goal>
                        </goals>
                </execution>
        </executions>
        <configuration>
                <useCache>true</useCache>
        </configuration>
</plugin> 
 
{code}

By the way at maven mail list Marc helped me to solve this problem.

http://maven.40175.n5.nabble.com/War-plugin-2-1-beta-1-problem-td3384365.html#a3385808

 






      was (Author: cem koc):
    Hi,

It seems that default configuration of the war plugin changed. To make expected 
behaviour as in this example cache parameter should be activated.


{code:xml} 
            <plugin>
                <artifactId>maven-war-plugin</artifactId>
                <version>2.1.1</version>
                <executions>
                    <execution>
                        <phase>generate-resources</phase>
                        <goals>
                            <goal>exploded</goal>
                        </goals>
                    </execution>
                </executions>
                <configuration>
                    <useCache>true</useCache>
                </configuration>
            </plugin> 
 
{code}

By the way at maven mail list Marc helped me to solve this problem.

http://maven.40175.n5.nabble.com/War-plugin-2-1-beta-1-problem-td3384365.html#a3385808

 





  
> 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