【问题标题】:Maven: Can not find the tag library descriptor [duplicate]Maven:找不到标记库描述符[重复]
【发布时间】:2017-03-01 01:21:44
【问题描述】:

我的所有 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

【问题讨论】:

    标签: java eclipse maven jstl


    【解决方案1】:

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

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

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

    或者只是尝试使用 mvn install (mvn package) 加载所有内容 - 你可以看到区别 here

    另见可能的答案here

    【讨论】:

      猜你喜欢
      • 2012-07-05
      • 2015-02-09
      • 2011-04-27
      • 1970-01-01
      • 2011-09-13
      • 1970-01-01
      • 2012-11-15
      • 2021-09-01
      • 1970-01-01
      相关资源
      最近更新 更多