Maven:找不到标签库描述符

Maven: Can not find the tag library descriptor

我的所有 JSP

中都有这 2 个错误
Can not find the tag library descriptor for "http://java.sun.com/jsp/jstl/core"
Can not find the tag library descriptor for "http://java.sun.com/jsp/jstl/fmt"

即使在我的pom.xml上我也有这个

<dependency>
            <groupId>taglibs</groupId>
            <artifactId>standard</artifactId>
            <version>1.1.2</version>
        </dependency>

         <dependency>
            <groupId>javax.servlet</groupId>
            <artifactId>jstl</artifactId>
            <version>1.2</version>
        </dependency>

然后我重新启动了 Eclipse 并清理了项目 100 次

这是我的web.xml

<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">

我正在使用 WebLogic Server 版本:12.1.2.0.0

你们有自动导入吗? 您应该启用它或手动加载依赖项:

mvn dependency:resolve 用于加载所有依赖项

mvn dependency:get -Dartifact=groupId:artifactId:version加载一个。

或者尝试使用 mvn install (mvn package) 加载所有内容 - 您可以看到差异 here

另请参阅可能的答案 here