Hi,
I've done this by configuring an exclude filter on the JSP files in the
configuration
section of the maven-war-plugin. This way JSPs are not in the final WAR
file.
Hope that helps.
Olivier
On Thu, Mar 27, 2008 at 7:56 PM, Glen Mazza <[EMAIL PROTECTED]> wrote:
>
> Hello All,
>
> The page[1] below nicely shows us how to precompile JSPs before the WAR is
> created. It works perfectly well. Problem is though, we have an
> additional
> requirement to delete the JSPs after they are precompiled, so that no JSPs
> are in the WAR (only their compiled versions are to stay.) How can we
> modify [1] below--what else do we need to do--to delete the JSPs *before*
> the WAR is created?
>
> This is what we have tried:
>
> <artifactId>maven-antrun-plugin</artifactId>
> <executions>
> <execution>
> <phase>process-classes</phase>
> <id>deploy</id>
> <configuration>
> <tasks>
> <delete>
> <fileset
> dir="${project.build.directory}/${project.build.finalName}"
> includes="**/*.jsp" />
> </delete>
> </tasks>
> </configuration>
> <goals>
> <goal>run</goal>
> </goals>
> </execution>
> </executions>
> </plugin>
>
> But we can't get it to work--either the generated resources directory it
> looks in is not yet created, perhaps we've gotten the goal and/or phase
> mixed up, or? Any help would be much appreciated!
>
> Regards,
> Glen
>
> [1] http://mojo.codehaus.org/jspc-maven-plugin/usage.html
> --
> View this message in context:
> http://www.nabble.com/How-to-delete-JSPs-after-precompilation--tp16331157s177p16331157.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
--
Olivier Jacob
Consultant - OCTO Technology
50, avenue des Champs Elysées
75008 Paris