JSP 标签库的适当方面是什么?

What is the appropriate facet for a JSP tag library?

我正在将一些旧的 Eclipse 项目转换为分面形式,我不确定哪些分面适合 JSP 标记库(一个 Java class,一个 TLD文件)。 "Dynamic Web Module" 有点矫枉过正(生成 WebContent/WEB-INFWebContent/META-INF,标签库不需要它们)。

使用标签库的网络应用程序使用 Servlet Specification 3.1。标签库符合web-jsptaglibrary_2_1.xsd.

这里的标准做法是简单地使用 "Java" 方面吗?

是否没有适用于 JSP 标签库的附加方面?

屏幕截图显示了我当前的配置,该配置有效但感觉缺少一个方面。

日食火星,Java 1.8.0_60,Tomcat 8.0.26

I think the comments have the answer to your question, I will try to explain the same thing in a different way. Keeping the project facet just to java is enough.

Facets 只是您 IDE 很好地解释项目相关配置的方面。要开发 JSP tag lib,您只需要标记库描述符 youTag.tld 和标记库中使用的已编译 Java tag handler class 文件。 Java project Facet 足以为您提供编写 tag handler class 所需的所有帮助。

您唯一担心的可能是以正确的方式将其打包为 jar,他在下面 link.

中有很好的解释

Packaging the JSP Tag Library as JAR file is simple as per the official guide.