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

wargre edited comment on MWAR-86 at 3/25/09 8:37 AM:
-----------------------------------------------------

why not make the war:exploded goal binded with prepare-package phase?

Edit : 2009-03-25
With maven 2.1 we've got a workaround

<plugins>
                        <plugin>
                                <groupId>org.apache.maven.plugins</groupId>
                                <artifactId>maven-war-plugin</artifactId>
                                <version>2.0</version>
                                <executions>
                                        <execution>
                                                <id>Prepare WAR</id>
                                                <phase>prepare-package</phase>
                                                <goals>
                                                        <goal>exploded</goal>
                                                </goals>
                                        </execution>
                                </executions>
                                <configuration>
                                        
<warSourceDirectory>src/webapp</warSourceDirectory>
                                </configuration>
                        </plugin>

                      <plugin>
                          <phase>prepare-package</phase>
                           ... do everything you want, precompile, change jsp, 
...
                     </plugin>


      was (Author: wargre):
    why not make the war:exploded goald linked with prepare-package phase?

  
> Split the WAR file creation as a separate goal
> ----------------------------------------------
>
>                 Key: MWAR-86
>                 URL: http://jira.codehaus.org/browse/MWAR-86
>             Project: Maven 2.x WAR Plugin
>          Issue Type: Improvement
>    Affects Versions: 2.0, 2.0.1, 2.0.2
>            Reporter: Simone Gianni
>            Priority: Minor
>         Attachments: maven-war-plugin1.diff
>
>
> It would be nice to have a separate goal that zips the WAR file. This way it 
> will be possible to write (and use) plugins that manipulates the WAR folder 
> before the WAR file is built (like applying patches, reorganizing site 
> structure and similar stuff).
> Also, there are some plugins (like the cocoon deploy plugin) that actually 
> extend the war plugin to operate "in the middle". This could be avoided 
> (IIUC) adding these separate goal in the WAR plugin.
> It should be quite trivial to do, I volunteer for trying.

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