我正在尝试从旧版本(9.3.0.M1)将嵌入式Jetty升级到最新版本(截至目前为9.3.2.v20150730).
我正在使用JSP和当前maven依赖如下:
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-jsp</artifactId>
<version>9.3.0.M1</version>
</dependency>
但是我在maven central中找不到此依赖项的新版本.
看起来他们没有在9.3.0.M1之后为Jetty 9.3发布新的jetty-jsp工件.可以使用所有其他与码头相关的工件的新版本.
我应该使用最新的Jetty版本来支持JSP的替代方案是什么?
解决方法:
我从jett-users邮件列表中得到了答案.更新的依赖项是:
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>apache-jsp</artifactId>
<version>${jetty.version}</version>
</dependency>
此外,来自码头宣布名单:
The 9.2 release has switched to using the Apache version of Jasper for
JSP and JSTL. Early releases of Jetty used these implementations,
but switched to Glassfish when it became the reference implementation.
However the Apache version is now more rigorously maintained and hence
we have switched back. Currently we are using a slightly modified
version of 8.0.3, however our modifications have been contributed
back to apache and have been accepted for their 8.0.9 release, so we
will soon switch to using a standard jar from Apache.
显然他们已经从Apache切换回标准jar.