Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] <Ext> Re: How to compile JSPs via Maven, but without failing on errors?

Thanks!  I’ve been using the “excludes” pattern.  Unfortunately, we have a thousand or so JSPs.  The iterative process of running a build, getting a failure, adding to the exclude list, running a build, … is a task I’d rather delegate to somebody else.  ;)

 

Keith

 

From: jetty-users-bounces@xxxxxxxxxxx [mailto:jetty-users-bounces@xxxxxxxxxxx] On Behalf Of Jan Bartel
Sent: Friday, October 20, 2017 10:02 PM
To: JETTY user mailing list <jetty-users@xxxxxxxxxxx>
Subject: <Ext> Re: [jetty-users] How to compile JSPs via Maven, but without failing on errors?

 

Or you could use the includes/excludes patterns to avoid trying to compile the jsps you know don't compile.

 

 

Jan

 

On 21 October 2017 at 06:15, Keith Cassell <kcassell@xxxxxxxxxxxxxxxxxxxxx> wrote:

I've just started working on a large project that has many JSPs, many of which were created long ago, and some of which were generated. I would like to use the jetty-jspc-maven-plugin from org.eclipse.jetty to compile our JSPs for use in Tomcat 8.5. Unfortunately, some of the JSPs do not compile cleanly, and when there is a compilation problem, the maven build fails and stops.

 

The JspcMojo class does most of the work. It has an embedded class, JspcMojo.JettyJspC that extends org.apache.jasper.JspC and has a failOnError property. The documentation for JettyJspC says, "JettyJspC Add some extra setters to standard JspC class to help configure it for running in maven." So, it seems like I ought to be able to set the failOnError property to false and be done. I have tried all of the following, without success. How can I pass the failOnError property from maven to the JSP compiler?

 

<jspc.failOnError>false</jspc.failOnError>

<org.apache.jasper.compiler.failOnError>false</org.apache.jasper.compiler.failOnError>

<org.apache.jasper.JspC.failOnError>false</org.apache.jasper.JspC.failOnError>

<maven.compiler.failOnError>false</maven.compiler.failOnError>

<JettyJspC.failOnError>false</JettyJspC.failOnError>

<JspcMojo.JettyJspC.failOnError>false</JspcMojo.JettyJspC.failOnError>

<org.eclipse.jetty.jspc.plugin.JspcMojo.JettyJspC.failOnError>false</org.eclipse.jetty.jspc.plugin.JspcMojo.JettyJspC.failOnError>

 


_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/jetty-users



 

--

Jan Bartel <janb@xxxxxxxxxxx>

www.webtide.com
Expert assistance from the creators of Jetty and CometD

 


Back to the top