在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):leonardehrenfried/jspc-maven-plugin开源软件地址(OpenSource Url):https://github.com/leonardehrenfried/jspc-maven-plugin开源编程语言(OpenSource Language):Java 99.7%开源软件介绍(OpenSource Introduction):JSPC Maven PluginThis plugin precompiles JSPs. It is a fork of jetty-jspc-maven-plugin and configured as follows: <build>
....
<plugin>
<groupId>io.leonard.maven.plugins</groupId>
<artifactId>jspc-maven-plugin</artifactId>
<version>${ENTER_VERSION_HERE}</version>
<executions>
<execution>
<id>jspc</id>
<goals>
<goal>compile</goal>
</goals>
<configuration>
</configuration>
</execution>
</executions>
</plugin>
...
</build> It has the following improvements compared to jetty-jspc-maven-plugin:
The compiler used by default in this plugin is Apache Jasper 9.0.17. If the Jasper compiler version needs to be overloaded, the plugin must be configured as follows: <build>
....
<plugin>
<groupId>io.leonard.maven.plugins</groupId>
<artifactId>jspc-maven-plugin</artifactId>
<version>${ENTER_VERSION_HERE}</version>
<executions>
<execution>
<id>jspc</id>
<goals>
<goal>compile</goal>
</goals>
<configuration />
</execution>
</executions>
<dependencies>
<dependency>
<groupId>org.apache.tomcat</groupId>
<artifactId>tomcat-jasper</artifactId>
<version>${ENTER_JASPER_VERSION_HERE}</version>
<exclusions>
<exclusion>
<groupId>org.eclipse.jdt.core.compiler</groupId>
<artifactId>ecj</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.eclipse.jdt.core.compiler</groupId>
<artifactId>ecj</artifactId>
<version>4.6.1</version>
</dependency>
</dependencies>
</plugin>
...
</build> Full documentation of the goal is available at https://leonardehrenfried.github.io/jspc-maven-plugin/compile-mojo.html Compatibility Matrix
Comparison of precompiler pluginshttps://tcollignon.github.io/2016/12/04/How-to-compile-JSP-with-Tomcat-and-Maven-faster.html Use another JSP compilerBy default this plugin use org.apache.jasper.compiler.JDTCompiler (see compilerClass goal option). But if the number of threads is over 2, this compiler has too much synchronization overheas and hence is no very not very performant. To improve this is possible to user another compilerClass Note : With Tomcat 9 the compiler Release process
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论