You can use Ant tasks in your pom.xml.  I've cc'd the Maven user list
as they're probably in a better position to tell you how to do this.

Matt

On 2/21/06, Mick Knutson <[EMAIL PROTECTED]> wrote:
> But I am not using ant. Is there a way to exclude those file in the plugin
> declaration?
>
> ---
> Thank You
> Mick Knutson
>
> Sr. Java/J2EE Consultant
> BASE logic, inc.
> (415) 648-1804 (S.F., CA)
> http://www.BASELogic.com
>
> Washington Mutual (WAMU) (Emeryville, California)
> ---
>
>
>
>
> >From: "Matt Raible" <[EMAIL PROTECTED]>
> >Reply-To: [EMAIL PROTECTED]
> >To: "Mick Knutson" <[EMAIL PROTECTED]>
> >CC: "Maven Users List" <[email protected]>
> >Subject: Re: [m2] Compiling JSPs
> >Date: Tue, 21 Feb 2006 11:00:43 -0700
> >
> >You could do something with an Ant task that deletes
> >target/warname/*.jsp before it packages things.
> >
> >Matt
> >
> >On 2/21/06, Mick Knutson <[EMAIL PROTECTED]> wrote:
> > > Still would like to know how to omit the jsp source in my war.
> > >
> > > ---
> > > Thank You
> > > Mick Knutson
> > >
> > > Sr. Java/J2EE Consultant
> > > BASE logic, inc.
> > > (415) 648-1804 (S.F., CA)
> > > http://www.BASELogic.com
> > >
> > > Washington Mutual (WAMU) (Emeryville, California)
> > > ---
> > >
> > >
> > >
> > >
> > > >From: "Matt Raible" <[EMAIL PROTECTED]>
> > > >Reply-To: [EMAIL PROTECTED]
> > > >To: "Stephen Duncan" <[EMAIL PROTECTED]>
> > > >CC: "Maven Users List" <[email protected]>
> > > >Subject: Re: [m2] Compiling JSPs
> > > >Date: Sun, 19 Feb 2006 16:17:38 -0700
> > > >
> > > >I was able to successfully get this plugin to work - thanks to Jeff
> > > >Genender (the plugin's author).  I did find that I needed to add the
> > > >following two dependencies to my project.
> > > >
> > > >     <!-- Needed for jspc plugin (pre-compiling of JSPs) -->
> > > >     <dependency>
> > > >       <groupId>javax.servlet</groupId>
> > > >       <artifactId>jsp-api</artifactId>
> > > >       <version>2.0</version>
> > > >       <scope>provided</scope>
> > > >     </dependency>
> > > >     <!-- Needed for jspc plugin (pre-compiling of JSPs) -->
> > > >     <dependency>
> > > >       <groupId>tomcat</groupId>
> > > >       <artifactId>jasper-runtime</artifactId>
> > > >       <version>5.5.12</version>
> > > >       <scope>provided</scope>
> > > >     </dependency>
> > > >
> > > >In addition, I had to change many dependencies from having
> > > ><scope>runtime</scope> to nothing (meaning <scope>compile</scope>).
> > > >This was required for all libraries that had tag libraries included in
> > > >them.
> > > >
> > > >Example code can be seen in:
> > > >https://equinox.dev.java.net/source/browse/*checkout*/equinox/pom.xml
> > > >
> > > >Hope this helps,
> > > >
> > > >Matt
> > > >
> > > >On 2/19/06, Stephen Duncan <[EMAIL PROTECTED]> wrote:
> > > > > Oh, and respond back with what you learn on it; I was hoping to
> >start
> > > > > playing with it soon...
> > > > >
> > > > > -Stephen
> > > > >
> > > > > On 2/19/06, Stephen Duncan <[EMAIL PROTECTED]> wrote:
> > > > > > Matt,
> > > > > >
> > > > > > I haven't tried it, but there's a jspc plugin on the
> >mojo.codehaus.org
> > > > > > site: http://mojo.codehaus.org/jspc-maven-plugin/usage.html that
> >seems
> > > > > > to do what you're asking.
> > > > > >
> > > > > > -Stephen
> > > > > >
> > > > > > On 2/19/06, Matt Raible <[EMAIL PROTECTED]> wrote:
> > > > > > > Is there a plugin that does compilation of JSPs and adding
> >entries
> > > >into web.xml?
> > > > > > >
> > > > > > > Here's how to do it for Maven 1, but I'd like to do it with
> >Maven 2:
> > > > > > >
> > > > > > > http://www.savoirtech.com/roller/page/jgenender/20041011
> > > > > > >
> > > > > > > Here's how I've done it in Ant.
> > > > > > >
> > > > > > >     <target name="compile-jsp" depends="jsp-2"
> >if="precompile.jsp">
> > > > > > >         <property name="jsp.src"
> >value="${build.dir}/web/jsp/src"/>
> > > > > > >         <mkdir dir="${jsp.src}"/>
> > > > > > >
> > > > > > >         <taskdef classname="org.apache.jasper.JspC"
> >name="jasper"
> > > > > > > classpathref="jspc.classpath"/>
> > > > > > >
> > > > > > >         <jasper verbose="0" package="org.appfuse.jsp"
> > > > > > > uriroot="${webapp.target}"
> > > > > > >             webXmlFragment="${jsp.src}/jsp-servlets.xml"
> > > > > > > outputDir="${jsp.src}" />
> > > > > > >
> > > > > > >         <javac srcdir="${jsp.src}"
> > > >destdir="${build.dir}/web/classes"
> > > > > > >             debug="${compile.debug}"
> > > >deprecation="${compile.deprecation}"
> > > > > > >             optimize="${compile.optimize}"
> > > >classpathref="jspc.classpath"/>
> > > > > > >
> > > > > > >         <loadfile property="jsp.mappings"
> > > > > > > srcfile="${jsp.src}/jsp-servlets.xml"/>
> > > > > > >         <replace file="${webapp.target}/WEB-INF/web.xml"
> > > >value="${jsp.mappings}"
> > > > > > >             token="<!-- precompiled jsp mappings -->"/>
> > > > > > >     </target>
> > > > > > >
> > > > > > > Also, is there a plugin that can generate an archetype from an
> > > >existing project?
> > > > > > >
> > > > > > > Thanks,
> > > > > > >
> > > > > > > Matt
> > > > > > >
> > > > > > >
> > > >---------------------------------------------------------------------
> > > > > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > > > --
> > > > > > Stephen Duncan Jr
> > > > > > www.stephenduncanjr.com
> > > > > >
> > > > >
> > > > >
> > > > > --
> > > > > Stephen Duncan Jr
> > > > > www.stephenduncanjr.com
> > > > >
> > > >
> > > >---------------------------------------------------------------------
> > > >To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > >For additional commands, e-mail: [EMAIL PROTECTED]
> > > >
> > >
> > >
> > >
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to