You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by virg g <06...@gmail.com> on 2013/04/26 11:40:30 UTC

jsp compilation

Hi,
I am using jspc-maven-plugin for compiling jsp files to avoid runtime
exceptions. These compiled Java files will not get packaged in war file.
This build is just for verification.  Currently how it is building is if i
give mvn install after compiling jsps, war file is getting created.  But my
requirement is jsp compilation should happen after pckaging war file, both
these activities should be independent. How to separate packaging war file
and jsp compilation as separate actions? Any inputs, highly appreciated..

Thanks
Virg

Re: jsp compilation

Posted by Baptiste MATHUS <ml...@batmat.net>.
Well, seems like you just want to bind jspc-m-p to a phase after package?
Maybe bind it to verify? or integration-tests?
>From the code, it seems like jspc is binding by default to process-classes
phase.

If what phases are is not clear to you, please read
http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html#Lifecycle_Reference

Cheers


2013/4/26 virg g <06...@gmail.com>

> Hi,
> I am using jspc-maven-plugin for compiling jsp files to avoid runtime
> exceptions. These compiled Java files will not get packaged in war file.
> This build is just for verification.  Currently how it is building is if i
> give mvn install after compiling jsps, war file is getting created.  But my
> requirement is jsp compilation should happen after pckaging war file, both
> these activities should be independent. How to separate packaging war file
> and jsp compilation as separate actions? Any inputs, highly appreciated..
>
> Thanks
> Virg
>
> --
> Baptiste <Batmat> MATHUS - http://batmat.net
> Sauvez un arbre,
> Mangez un castor ! nbsp;!

Re: jsp compilation

Posted by Wayne Fay <wa...@gmail.com>.
Perhaps simply don't bind the plugin to your build at all, and just
call it "manually" when you want to run jsp compilation?

>From the command line, this can be done via:
mvn groupId:pluginId:version:mojo
(but obviously you need to specify the proper plugin information)

Wayne

On Fri, Apr 26, 2013 at 4:40 AM, virg g <06...@gmail.com> wrote:
> Hi,
> I am using jspc-maven-plugin for compiling jsp files to avoid runtime
> exceptions. These compiled Java files will not get packaged in war file.
> This build is just for verification.  Currently how it is building is if i
> give mvn install after compiling jsps, war file is getting created.  But my
> requirement is jsp compilation should happen after pckaging war file, both
> these activities should be independent. How to separate packaging war file
> and jsp compilation as separate actions? Any inputs, highly appreciated..
>
> Thanks
> Virg

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org