You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Matt Raible <mr...@gmail.com> on 2006/02/19 06:57:05 UTC

[m2] Compiling JSPs

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="&lt;!-- precompiled jsp mappings --&gt;"/>
    </target>

Also, is there a plugin that can generate an archetype from an existing project?

Thanks,

Matt

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


Re: [m2] Compiling JSPs

Posted by Matt Raible <mr...@gmail.com>.
Thanks - removing the <version> element seems to do the trick. 
However, it looks like the dependencies are messed up.  I'll see if I
can patch the pom and submit a bug for it.

[INFO] ----------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] ----------------------------------------------------------------------------
[INFO] null
org/apache/log4j/Logger
[INFO] ----------------------------------------------------------------------------
[INFO] Trace
java.lang.ExceptionInInitializerError
        at org.codehaus.mojo.jspc.JspcMojo.execute(JspcMojo.java:154)
        at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:415)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor
.java:531)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifec
ycleExecutor.java:472)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.
java:451)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultL
ifecycleExecutor.java:303)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleE
xecutor.java:270)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java
:139)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.commons.logging.LogConfigurationException:
org.apache.commons.logging.LogConfi
gurationException: No suitable Log constructor
[Ljava.lang.Class;@5e1077 for org.apache.commons.logg
ing.impl.Log4JLogger
        at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:532)
        at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:272)
        at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:246)
        at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:395)
        at org.apache.jasper.JspC.<clinit>(JspC.java:97)
        ... 19 more
Caused by: org.apache.commons.logging.LogConfigurationException: No
suitable Log constructor [Ljava.
lang.Class;@5e1077 for org.apache.commons.logging.impl.Log4JLogger
        at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:432)

        at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:525)
        ... 23 more
Caused by: java.lang.NoClassDefFoundError: org/apache/log4j/Logger
        at java.lang.Class.getDeclaredConstructors0(Native Method)
        at java.lang.Class.privateGetDeclaredConstructors(Class.java:2328)
        at java.lang.Class.getConstructor0(Class.java:2640)
        at java.lang.Class.getConstructor(Class.java:1629)
        at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:429)

        ... 24 more
[INFO] ----------------------------------------------------------------------------
[INFO] Total time: 2 seconds
[INFO] Finished at: Sun Feb 19 10:18:22 MST 2006
[INFO] Final Memory: 4M/9M
[INFO] ----------------------------------------------------------------------------
$


On 2/19/06, Stephen Duncan <st...@gmail.com> wrote:
> Looks like there is a 1.3 version in the main repository:
> http://www.ibiblio.org/maven2/org/codehaus/mojo/jspc-maven-plugin/1.3/
>
> -Stephen
>
> On 2/19/06, Matt Raible <mr...@gmail.com> wrote:
> > That looks to be what I'm looking for.  However, I can't seem to get it.
> >
> > I've added the following to pom.xml:
> >
> >   <pluginRepositories>
> >     <pluginRepository>
> >       <id>Maven Snapshots</id>
> >       <url>http://snapshots.maven.codehaus.org/maven2</url>
> >       <snapshots>
> >         <enabled>true</enabled>
> >       </snapshots>
> >       <releases>
> >         <enabled>false</enabled>
> >       </releases>
> >     </pluginRepository>
> >   </pluginRepositories>
> >   <repositories>
> >     <repository>
> >       <id>Maven Snapshots</id>
> >       <url>http://snapshots.maven.codehaus.org/maven2</url>
> >       <snapshots>
> >         <enabled>true</enabled>
> >       </snapshots>
> >       <releases>
> >         <enabled>false</enabled>
> >       </releases>
> >     </repository>
> >   </repositories>
> >
> > And I still get:
> >
> > [INFO] Failed to resolve artifact.
> >
> > GroupId: org.codehaus.mojo
> > ArtifactId: jspc-maven-plugin
> > Version: 1.2
> >
> > Reason: Unable to download the artifact from any repository
> >
> >   org.codehaus.mojo:jspc-maven-plugin:pom:1.2
> >
> > from the specified remote repositories:
> >   Maven Snapshots (http://snapshots.maven.codehaus.org/maven2),
> >   central (http://repo1.maven.org/maven2)
> >
> > I tried changing releases.enabled=true, but that didn't seem to help either.
> >
> > Matt
> >
> >
> > On 2/19/06, Stephen Duncan <st...@gmail.com> 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 <mr...@gmail.com> 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="&lt;!-- precompiled jsp mappings --&gt;"/>
> > > >     </target>
> > > >
> > > > Also, is there a plugin that can generate an archetype from an existing project?
> > > >
> > > > Thanks,
> > > >
> > > > Matt
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > > For additional commands, e-mail: users-help@maven.apache.org
> > > >
> > > >
> > >
> > >
> > > --
> > > Stephen Duncan Jr
> > > www.stephenduncanjr.com
> > >
> >
>
>
> --
> Stephen Duncan Jr
> www.stephenduncanjr.com
>

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


Re: [m2] Compiling JSPs

Posted by Stephen Duncan <st...@gmail.com>.
Looks like there is a 1.3 version in the main repository:
http://www.ibiblio.org/maven2/org/codehaus/mojo/jspc-maven-plugin/1.3/

-Stephen

On 2/19/06, Matt Raible <mr...@gmail.com> wrote:
> That looks to be what I'm looking for.  However, I can't seem to get it.
>
> I've added the following to pom.xml:
>
>   <pluginRepositories>
>     <pluginRepository>
>       <id>Maven Snapshots</id>
>       <url>http://snapshots.maven.codehaus.org/maven2</url>
>       <snapshots>
>         <enabled>true</enabled>
>       </snapshots>
>       <releases>
>         <enabled>false</enabled>
>       </releases>
>     </pluginRepository>
>   </pluginRepositories>
>   <repositories>
>     <repository>
>       <id>Maven Snapshots</id>
>       <url>http://snapshots.maven.codehaus.org/maven2</url>
>       <snapshots>
>         <enabled>true</enabled>
>       </snapshots>
>       <releases>
>         <enabled>false</enabled>
>       </releases>
>     </repository>
>   </repositories>
>
> And I still get:
>
> [INFO] Failed to resolve artifact.
>
> GroupId: org.codehaus.mojo
> ArtifactId: jspc-maven-plugin
> Version: 1.2
>
> Reason: Unable to download the artifact from any repository
>
>   org.codehaus.mojo:jspc-maven-plugin:pom:1.2
>
> from the specified remote repositories:
>   Maven Snapshots (http://snapshots.maven.codehaus.org/maven2),
>   central (http://repo1.maven.org/maven2)
>
> I tried changing releases.enabled=true, but that didn't seem to help either.
>
> Matt
>
>
> On 2/19/06, Stephen Duncan <st...@gmail.com> 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 <mr...@gmail.com> 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="&lt;!-- precompiled jsp mappings --&gt;"/>
> > >     </target>
> > >
> > > Also, is there a plugin that can generate an archetype from an existing project?
> > >
> > > Thanks,
> > >
> > > Matt
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > For additional commands, e-mail: users-help@maven.apache.org
> > >
> > >
> >
> >
> > --
> > Stephen Duncan Jr
> > www.stephenduncanjr.com
> >
>


--
Stephen Duncan Jr
www.stephenduncanjr.com

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


Re: [m2] Compiling JSPs

Posted by Matt Raible <mr...@gmail.com>.
That looks to be what I'm looking for.  However, I can't seem to get it.

I've added the following to pom.xml:

  <pluginRepositories>
    <pluginRepository>
      <id>Maven Snapshots</id>
      <url>http://snapshots.maven.codehaus.org/maven2</url>
      <snapshots>
        <enabled>true</enabled>
      </snapshots>
      <releases>
        <enabled>false</enabled>
      </releases>
    </pluginRepository>
  </pluginRepositories>
  <repositories>
    <repository>
      <id>Maven Snapshots</id>
      <url>http://snapshots.maven.codehaus.org/maven2</url>
      <snapshots>
        <enabled>true</enabled>
      </snapshots>
      <releases>
        <enabled>false</enabled>
      </releases>
    </repository>
  </repositories>

And I still get:

[INFO] Failed to resolve artifact.

GroupId: org.codehaus.mojo
ArtifactId: jspc-maven-plugin
Version: 1.2

Reason: Unable to download the artifact from any repository

  org.codehaus.mojo:jspc-maven-plugin:pom:1.2

from the specified remote repositories:
  Maven Snapshots (http://snapshots.maven.codehaus.org/maven2),
  central (http://repo1.maven.org/maven2)

I tried changing releases.enabled=true, but that didn't seem to help either.

Matt


On 2/19/06, Stephen Duncan <st...@gmail.com> 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 <mr...@gmail.com> 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="&lt;!-- precompiled jsp mappings --&gt;"/>
> >     </target>
> >
> > Also, is there a plugin that can generate an archetype from an existing project?
> >
> > Thanks,
> >
> > Matt
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>
>
> --
> Stephen Duncan Jr
> www.stephenduncanjr.com
>

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


Re: [m2] Compiling JSPs

Posted by Matt Raible <mr...@gmail.com>.
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 <mi...@hotmail.com> 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" <mr...@gmail.com>
> >Reply-To: matt@raibledesigns.com
> >To: "Mick Knutson" <mi...@hotmail.com>
> >CC: "Maven Users List" <us...@maven.apache.org>
> >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 <mi...@hotmail.com> 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" <mr...@gmail.com>
> > > >Reply-To: matt@raibledesigns.com
> > > >To: "Stephen Duncan" <st...@gmail.com>
> > > >CC: "Maven Users List" <us...@maven.apache.org>
> > > >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 <st...@gmail.com> 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 <st...@gmail.com> 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 <mr...@gmail.com> 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: users-unsubscribe@maven.apache.org
> > > > > > > For additional commands, e-mail: users-help@maven.apache.org
> > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > > > --
> > > > > > Stephen Duncan Jr
> > > > > > www.stephenduncanjr.com
> > > > > >
> > > > >
> > > > >
> > > > > --
> > > > > Stephen Duncan Jr
> > > > > www.stephenduncanjr.com
> > > > >
> > > >
> > > >---------------------------------------------------------------------
> > > >To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > >For additional commands, e-mail: users-help@maven.apache.org
> > > >
> > >
> > >
> > >
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> >For additional commands, e-mail: users-help@maven.apache.org
> >
>
>
>

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


Re: [m2] Compiling JSPs

Posted by Richard Allen <ri...@gtri.gatech.edu>.
I use the excludes tag for the maven-war-plugin.

<plugin>
  <artifactId>maven-war-plugin</artifactId>
  <configuration>
    <webXml>${project.build.directory}/jspweb.xml</webXml>
    <excludes>WEB-INF/jsp/**</excludes>
  </configuration>
</plugin>



Richard Allen



Matt Raible wrote:

>You could do something with an Ant task that deletes
>target/warname/*.jsp before it packages things.
>
>Matt
>
>On 2/21/06, Mick Knutson <mi...@hotmail.com> 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" <mr...@gmail.com>
>>>Reply-To: matt@raibledesigns.com
>>>To: "Stephen Duncan" <st...@gmail.com>
>>>CC: "Maven Users List" <us...@maven.apache.org>
>>>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 <st...@gmail.com> 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 <st...@gmail.com> 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 <mr...@gmail.com> 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: users-unsubscribe@maven.apache.org
>>>>>>For additional commands, e-mail: users-help@maven.apache.org
>>>>>>
>>>>>>
>>>>>>            
>>>>>>
>>>>>--
>>>>>Stephen Duncan Jr
>>>>>www.stephenduncanjr.com
>>>>>
>>>>>          
>>>>>
>>>>--
>>>>Stephen Duncan Jr
>>>>www.stephenduncanjr.com
>>>>
>>>>        
>>>>
>>>---------------------------------------------------------------------
>>>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>>For additional commands, e-mail: users-help@maven.apache.org
>>>
>>>      
>>>
>>
>>    
>>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>For additional commands, e-mail: users-help@maven.apache.org
>
>  
>


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


Re: [m2] Compiling JSPs

Posted by Matt Raible <mr...@gmail.com>.
You could do something with an Ant task that deletes
target/warname/*.jsp before it packages things.

Matt

On 2/21/06, Mick Knutson <mi...@hotmail.com> 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" <mr...@gmail.com>
> >Reply-To: matt@raibledesigns.com
> >To: "Stephen Duncan" <st...@gmail.com>
> >CC: "Maven Users List" <us...@maven.apache.org>
> >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 <st...@gmail.com> 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 <st...@gmail.com> 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 <mr...@gmail.com> 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: users-unsubscribe@maven.apache.org
> > > > > For additional commands, e-mail: users-help@maven.apache.org
> > > > >
> > > > >
> > > >
> > > >
> > > > --
> > > > Stephen Duncan Jr
> > > > www.stephenduncanjr.com
> > > >
> > >
> > >
> > > --
> > > Stephen Duncan Jr
> > > www.stephenduncanjr.com
> > >
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> >For additional commands, e-mail: users-help@maven.apache.org
> >
>
>
>

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


Re: [m2] Compiling JSPs

Posted by Srepfler Srgjan <sr...@lnksystem.com>.
On 2/21/06, Mick Knutson <mi...@hotmail.com> wrote:
>> Can anyone give me a reason _NOT_ to pre-compile jsp's?
>> Seems to take a short amount of time to compile in maven, and I get to see
>> what issue I have right away.
>>     
This is an interesting article about jsp precompiling:
http://www.mernst.org/blog/archives/02-01-2006_02-28-2006.html#39
so judge yourself if it's useful or not, and whether EL compiling should 
be added to J5EE/J6EE.

OT: One other thing that I didn't know about jsp's was that if I'd do 
${bean.property} to read the property, it would be re-evaluate the get 
method which I guess would be the correct thing to do but I've noticed 
I've gained tremendous speed improvements if sometimes I put the 
property in an intermediary jsp bean and reuse it on the page when the 
property is a collection of items that I recuperate via Facade from the 
EJB tier and Hibernate. So, that's just a tip if someone uses this 
multi-layer approach that can avoid you some very expensive round-trips 
(that I doubt people do anymore thanks to spring).

Srgjan

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


Re: [m2] Compiling JSPs

Posted by Matt Raible <mr...@gmail.com>.
On 2/21/06, Mick Knutson <mi...@hotmail.com> wrote:
> Can anyone give me a reason _NOT_ to pre-compile jsp's?
> Seems to take a short amount of time to compile in maven, and I get to see
> what issue I have right away.

I don't like to pre-compile in development because you have to restart
your server to see changes.

Matt

>
> ---
> 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" <mr...@gmail.com>
> >Reply-To: matt@raibledesigns.com
> >To: "Stephen Duncan" <st...@gmail.com>
> >CC: "Maven Users List" <us...@maven.apache.org>
> >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 <st...@gmail.com> 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 <st...@gmail.com> 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 <mr...@gmail.com> 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: users-unsubscribe@maven.apache.org
> > > > > For additional commands, e-mail: users-help@maven.apache.org
> > > > >
> > > > >
> > > >
> > > >
> > > > --
> > > > Stephen Duncan Jr
> > > > www.stephenduncanjr.com
> > > >
> > >
> > >
> > > --
> > > Stephen Duncan Jr
> > > www.stephenduncanjr.com
> > >
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> >For additional commands, e-mail: users-help@maven.apache.org
> >
>
>
>

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


Re: [m2] Compiling JSPs

Posted by Mick Knutson <mi...@hotmail.com>.
Ok, I seemed to have solved part of this by adding that comment at the top 
of my web.xml like:

<web-app>

    <display-name>YourSOS</display-name>
    <description>Your SOS alert system</description>

    <!-- [INSERT FRAGMENT HERE] -->

    <context-param>
        <param-name>javax.servlet.jsp.jstl.fmt.localizationContext</param-name>
        <param-value>messages</param-value>
    </context-param>



But, now that I look into my web.xml, I find my *.jsp.class files, but I 
also have my *.jsp files as well. I thought compiling them was so that I did 
not distribute the raw jsp's right? If so, how do I get the raw jsp's 
omitted from my war?

--------------------------------------------------------------------------------
Thanks
Mick Knutson

http://www.BASELogic.com
http://www.MickKnutson.com

MSN Messenger: mickknutson@hotmail.com

--------------------------------------------------------------------------------

----- Original Message ----- 
From: "Mick Knutson" <mi...@hotmail.com>
To: "Maven Users List" <us...@maven.apache.org>; <ma...@raibledesigns.com>
Sent: Monday, February 20, 2006 9:59 AM
Subject: Re: [m2] Compiling JSPs


>I tried this, and now get this error:
>
> injectString('<!-- [INSERT FRAGMENT HERE] -->') not found in 
> webXml(C:\opt\local\yoursos\servlets\yoursos/src/main/webapp/WEB-INF/web.xml'
>
> Where in my web.xml am I suppose to put this?
>
> --------------------------------------------------------------------------------
> Thanks
> Mick Knutson
>
> http://www.BASELogic.com
> http://www.MickKnutson.com
>
> MSN Messenger: mickknutson@hotmail.com
>
> --------------------------------------------------------------------------------
>
> ----- Original Message ----- 
> From: "Matt Raible" <mr...@gmail.com>
> To: "Stephen Duncan" <st...@gmail.com>
> Cc: "Maven Users List" <us...@maven.apache.org>
> Sent: Sunday, February 19, 2006 3:17 PM
> Subject: Re: [m2] Compiling JSPs
>
>
> 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 <st...@gmail.com> 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 <st...@gmail.com> 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 <mr...@gmail.com> 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="&lt;!-- precompiled jsp mappings --&gt;"/>
>> > >     </target>
>> > >
>> > > Also, is there a plugin that can generate an archetype from an 
>> > > existing project?
>> > >
>> > > Thanks,
>> > >
>> > > Matt
>> > >
>> > > ---------------------------------------------------------------------
>> > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> > > For additional commands, e-mail: users-help@maven.apache.org
>> > >
>> > >
>> >
>> >
>> > --
>> > Stephen Duncan Jr
>> > www.stephenduncanjr.com
>> >
>>
>>
>> --
>> Stephen Duncan Jr
>> www.stephenduncanjr.com
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
> 

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


Re: [m2] Compiling JSPs

Posted by Matt Raible <mr...@gmail.com>.
Here's what I have:

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" version="2.4">

    <display-name>Equinox</display-name>

    <!-- [INSERT FRAGMENT HERE] -->

On 2/20/06, Mick Knutson <mi...@hotmail.com> wrote:
> I tried this, and now get this error:
>
> injectString('<!-- [INSERT FRAGMENT HERE] -->') not found in
> webXml(C:\opt\local\yoursos\servlets\yoursos/src/main/webapp/WEB-INF/web.xml'
>
> Where in my web.xml am I suppose to put this?
>
> --------------------------------------------------------------------------------
> Thanks
> Mick Knutson
>
> http://www.BASELogic.com
> http://www.MickKnutson.com
>
> MSN Messenger: mickknutson@hotmail.com
>
> --------------------------------------------------------------------------------
>
> ----- Original Message -----
> From: "Matt Raible" <mr...@gmail.com>
> To: "Stephen Duncan" <st...@gmail.com>
> Cc: "Maven Users List" <us...@maven.apache.org>
> Sent: Sunday, February 19, 2006 3:17 PM
> Subject: Re: [m2] Compiling JSPs
>
>
> 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 <st...@gmail.com> 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 <st...@gmail.com> 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 <mr...@gmail.com> 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: users-unsubscribe@maven.apache.org
> > > > For additional commands, e-mail: users-help@maven.apache.org
> > > >
> > > >
> > >
> > >
> > > --
> > > Stephen Duncan Jr
> > > www.stephenduncanjr.com
> > >
> >
> >
> > --
> > Stephen Duncan Jr
> > www.stephenduncanjr.com
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

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


Re: [m2] Compiling JSPs

Posted by Mick Knutson <mi...@hotmail.com>.
I tried this, and now get this error:

injectString('<!-- [INSERT FRAGMENT HERE] -->') not found in 
webXml(C:\opt\local\yoursos\servlets\yoursos/src/main/webapp/WEB-INF/web.xml'

Where in my web.xml am I suppose to put this?

--------------------------------------------------------------------------------
Thanks
Mick Knutson

http://www.BASELogic.com
http://www.MickKnutson.com

MSN Messenger: mickknutson@hotmail.com

--------------------------------------------------------------------------------

----- Original Message ----- 
From: "Matt Raible" <mr...@gmail.com>
To: "Stephen Duncan" <st...@gmail.com>
Cc: "Maven Users List" <us...@maven.apache.org>
Sent: Sunday, February 19, 2006 3:17 PM
Subject: Re: [m2] Compiling JSPs


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 <st...@gmail.com> 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 <st...@gmail.com> 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 <mr...@gmail.com> 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="&lt;!-- precompiled jsp mappings --&gt;"/>
> > >     </target>
> > >
> > > Also, is there a plugin that can generate an archetype from an 
> > > existing project?
> > >
> > > Thanks,
> > >
> > > Matt
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > For additional commands, e-mail: users-help@maven.apache.org
> > >
> > >
> >
> >
> > --
> > Stephen Duncan Jr
> > www.stephenduncanjr.com
> >
>
>
> --
> Stephen Duncan Jr
> www.stephenduncanjr.com
>

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


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


Re: [m2] Compiling JSPs

Posted by zarar <za...@gmail.com>.

What about the case where the web.xml and any .tld files are generated (via
XDoclet).  In that case the web.xml wouldn't be in the src/main/webapps
folder but somewhere in target/gen.  The jsp plugin expects a nice little
directory structure where the web.xml, JSP's and .tld are rooted under the
same tree which is not the case here.  Any ideas how to get around this?


Matt Raible-3 wrote:
> 
> 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 <st...@gmail.com> 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 <st...@gmail.com> 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 <mr...@gmail.com> 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="&lt;!-- precompiled jsp mappings --&gt;"/>
>> > >     </target>
>> > >
>> > > Also, is there a plugin that can generate an archetype from an
>> existing project?
>> > >
>> > > Thanks,
>> > >
>> > > Matt
>> > >
>> > > ---------------------------------------------------------------------
>> > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> > > For additional commands, e-mail: users-help@maven.apache.org
>> > >
>> > >
>> >
>> >
>> > --
>> > Stephen Duncan Jr
>> > www.stephenduncanjr.com
>> >
>>
>>
>> --
>> Stephen Duncan Jr
>> www.stephenduncanjr.com
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/-m2--Compiling-JSPs-tf1149163.html#a6788409
Sent from the Maven - Users mailing list archive at Nabble.com.


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


Re: [m2] Compiling JSPs

Posted by Matt Raible <mr...@gmail.com>.
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 <st...@gmail.com> 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 <st...@gmail.com> 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 <mr...@gmail.com> 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="&lt;!-- precompiled jsp mappings --&gt;"/>
> > >     </target>
> > >
> > > Also, is there a plugin that can generate an archetype from an existing project?
> > >
> > > Thanks,
> > >
> > > Matt
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > For additional commands, e-mail: users-help@maven.apache.org
> > >
> > >
> >
> >
> > --
> > Stephen Duncan Jr
> > www.stephenduncanjr.com
> >
>
>
> --
> Stephen Duncan Jr
> www.stephenduncanjr.com
>

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


Re: [m2] Compiling JSPs

Posted by Stephen Duncan <st...@gmail.com>.
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 <st...@gmail.com> 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 <mr...@gmail.com> 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="&lt;!-- precompiled jsp mappings --&gt;"/>
> >     </target>
> >
> > Also, is there a plugin that can generate an archetype from an existing project?
> >
> > Thanks,
> >
> > Matt
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>
>
> --
> Stephen Duncan Jr
> www.stephenduncanjr.com
>


--
Stephen Duncan Jr
www.stephenduncanjr.com

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


Re: [m2] Compiling JSPs

Posted by Stephen Duncan <st...@gmail.com>.
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 <mr...@gmail.com> 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="&lt;!-- precompiled jsp mappings --&gt;"/>
>     </target>
>
> Also, is there a plugin that can generate an archetype from an existing project?
>
> Thanks,
>
> Matt
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>


--
Stephen Duncan Jr
www.stephenduncanjr.com

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