pom.xml
<plugin>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<version>${jetty.version}</version>
<configuration>
<webApp>
<contextPath>/</contextPath>
<defaultsDescriptor>${project.basedir}/src/main/resources/jetty-web.xml</defaultsDescriptor>
<webInfIncludeJarPattern>.*/.*spring-webmvc-[^/]*\.jar$|.*/.*ithink-[^/]*\.jar$|.*/.*jsp-api-[^/]*\.jar$|.*/.*jsp-[^/]*\.jar$|.*/.*taglibs[^/]*\.jar$</webInfIncludeJarPattern>
</webApp>
<stopKey>stop</stopKey>
<stopPort>9080</stopPort>
<httpConnector>
<port>8080</port>
<idleTimeout>60000</idleTimeout>
</httpConnector>
</configuration>
</plugin>
и мой ithink-service-1.0.0.jar имеет src / main / resources / META-INF / custom.tld и в WEB-INF / lib сspring-webmvc-5.1.3.jar Тот же каталог.
--WEB-INF/lib
--|spring-webmvc-5.1.3.jar
--|ithink-service-1.0.0.jar
--|...
Если я использую Jetty-Maven-плагин 9.3.xx, все идет хорошо, можно использовать Spring и мой custom.tld.
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="custom" uri="http://www.ithink.com/webui/tags"%>
Если я использую Jetty-Maven-плагин 9.4.xx , ошибка, Jetty может читать Spring Tld, но не мой custom.tld.
javax.servlet.ServletException: org.apache.jasper.JasperException: The absolute uri: [http://www.ithink.com/webui/tags] cannot be resolved in either web.xml or the jar files deployed with this application
at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:146)
спасибо за помощь,как я это настраиваю?
мой файл tld
<?xml version="1.0" encoding="UTF-8"?>
<taglib xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-jsptaglibrary_2_0.xsd"
version="2.0">
<description>webui</description>
<tlib-version>3.0</tlib-version>
<short-name>ithink</short-name>
<uri>http://www.ithink.com/webui/tags</uri>
<tag>