Documentation hasnt caught up with functionality so its catch as catch can but 
this should get you to what you need

pom.xml
 
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>fu</groupId>
<artifactId>bar</artifactId>
....
<plugins>
  <plugin>
  <groupId>org.codehaus.mojo.jspc</groupId>
  <artifactId>jspc-maven-plugin</artifactId>
  <configuration>
  <includeInProject>false</includeInProject>
  <sources>
                    
    <directory>${basedir}/myapp/src/main/webapp/</directory>
     
                    <includes>
                        
                  <include>**/*.jsp</include>
                    
       </includes>
                
   </sources>
                
   <source>1.6</source>
                
   <target>1.6</target>

    <executions>
        <execution>
            <goals>
                 <goal>compile</goal>
            </goals>
        </execution>
    </executions>
 </plugin>
</plugins>
</build>
...
</project>
 
mvn -e -X compile

http://mojo.codehaus.org/jspc/jspc-compilers/jspc-compiler-tomcat6/index.html
http://mojo.codehaus.org/jspc/jspc-maven-plugin/usage.html

HTH
Martin Gainty 
______________________________________________ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité

Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.

Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.

 
> Date: Wed, 24 Jul 2013 13:22:36 -0400
> Subject: OT: How to use JSP outside of tomcat
> From: aryeh.fried...@gmail.com
> To: users@tomcat.apache.org
> 
> I have a number of documents that are very template like and ideal for
> JSP that are 1) not intended for the web and 2) need to be
> automatically batch processed (the output stored in output files).
> How do I call the JSP processor from them command line? (it takes
> tomcat too long to see updated files for the purpose I have in mind)
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 
                                          

Reply via email to