diff --git a/README.md b/README.md index 4e75293..364d145 100755 --- a/README.md +++ b/README.md @@ -60,15 +60,15 @@ If the Jasper compiler version needs to be overloaded, the plugin must be config ${ENTER_JASPER_VERSION_HERE} - org.eclipse.jdt.core.compiler + org.eclipse.jdt ecj - org.eclipse.jdt.core.compiler + org.eclipse.jdt ecj - 4.6.1 + 3.36.0 diff --git a/pom.xml b/pom.xml index a354145..2911d02 100644 --- a/pom.xml +++ b/pom.xml @@ -27,8 +27,10 @@ UTF-8 UTF-8 false - 3.12.1 + 4.0.0-M13 3.11.0 + 3.10.2 + 3.5.0 3.9.6 11 10.1.18 @@ -46,7 +48,7 @@ The Apache Software License, Version 2.0 - http://www.apache.org/licenses/LICENSE-2.0.txt + https://www.apache.org/licenses/LICENSE-2.0.txt repo @@ -56,18 +58,6 @@ org.apache.tomcat tomcat-jasper ${tomcat.version} - - - org.eclipse.jdt.core.compiler - ecj - - - - - - org.eclipse.jdt.core.compiler - ecj - 4.6.1 @@ -330,24 +320,17 @@ org.apache.maven.plugins - maven-site-plugin - ${maven.site.plugin.version} - - - org.apache.maven.plugins - maven-plugin-plugin - ${maven.plugin.plugin.version} + maven-plugin-report-plugin + ${maven.plugin.reporting.plugin.version} org.apache.maven.plugins maven-project-info-reports-plugin - 3.5.0 - - false - + ${maven.project.info.reports.plugin.version} + index team mailing-lists ci-management diff --git a/src/site/markdown/howto.md b/src/site/markdown/howto.md new file mode 100644 index 0000000..9de660e --- /dev/null +++ b/src/site/markdown/howto.md @@ -0,0 +1,101 @@ +# How to use + +Add the plugin to the build as shown below: + +```xml + +... + + io.leonard.maven.plugins + jspc-maven-plugin + ${ENTER_VERSION_HERE} + + + jspc + + compile + + + + + + +... + +``` + +## Overriding Jasper + +To override the Jasper plugin used to compile the JSP files configure the plugin as shown below: + +```xml + + .... + + io.leonard.maven.plugins + jspc-maven-plugin + ${ENTER_VERSION_HERE} + + + jspc + + compile + + + + + + + org.apache.tomcat + tomcat-jasper + ${ENTER_JASPER_VERSION_HERE} + + + + ... + +``` + +## Overriding ECJ + +To override the Eclipse compiler for Java used to compile the Java files that Jasper generates configure the plugin as shown below. +Newer versions of ECJ typically support newer JVMs and bytecode versions. + +```xml + + .... + + io.leonard.maven.plugins + jspc-maven-plugin + ${ENTER_VERSION_HERE} + + + jspc + + compile + + + + + + + org.apache.tomcat + tomcat-jasper + ${ENTER_JASPER_VERSION_HERE} + + + org.eclipse.jdt + ecj + + + + + org.eclipse.jdt + ecj + 3.36.0 + + + + ... + +``` diff --git a/src/site/markdown/index.md b/src/site/markdown/index.md new file mode 100644 index 0000000..6c0648a --- /dev/null +++ b/src/site/markdown/index.md @@ -0,0 +1,22 @@ +# jspc-maven-plugin + +This plugin precompiles JSPs. + +It has the following improvements compared to jetty-jspc-maven-plugin: + +* Faster: can be configured to run multi-threaded. For a speed comparison read the blog post below. +* More descriptive error messages: Under Maven 3 this plugin shows a clear indication of what caused the error and which file it is in. +* Not stop at the first error (depends on plugin configuration). + +The compiler used by default in this plugin is Apache Jasper 10, but it can be swapped. + +## Compatibility Matrix + +* 4.X version of jspc-maven-plugin : needs Java >= 11, Jasper only 10.X +* 3.X version of jspc-maven-plugin : needs Java >= 1.8, Jasper only 9.X +* 2.X version of jspc-maven-plugin : needs Java >= 1.7, Jasper only 8.X +* 1.X version of jspc-maven-plugin : needs Java >= 1.5, Jasper only 6.X, 7.X + +## Comparison of precompiler plugins + +[https://tcollignon.github.io/2016/12/04/How-to-compile-JSP-with-Tomcat-and-Maven-faster.html](https://tcollignon.github.io/2016/12/04/How-to-compile-JSP-with-Tomcat-and-Maven-faster.html) diff --git a/src/site/site.xml b/src/site/site.xml index 95b84af..60e9816 100644 --- a/src/site/site.xml +++ b/src/site/site.xml @@ -1,13 +1,31 @@ - + + org.apache.maven.skins maven-fluido-skin - 1.6 + 2.0.0-M8 - + - + + + + + + - \ No newline at end of file + + + + leonardehrenfried/jspc-maven-plugin + right + gray + + + + +