我应该将 .tld 文件放在哪里,以便正确打包使用 maven2 构建的 JAR 文件?

发布于 2024-09-06 11:03:27 字数 375 浏览 2 评论 0原文

目前,我的代码具有以下目录结构:

src
|-- main
|   `-- java
|       `-- com
|           `-- upthescala
|               `-- tags
|                   `-- ViewProtectTag.java
|-- test
|-- pom.xml
|-- .project
|-- .classpath
`-- .hgignore

我想为我的 JSP 标记包含一个 tld 文件,但我不确定将其打包到哪里。我最初的想法是添加一个 src/main/resources 目录并将 META-INF/viewprotect.tld 放入其中。

I currently have the following directory structure for my code:

src
|-- main
|   `-- java
|       `-- com
|           `-- upthescala
|               `-- tags
|                   `-- ViewProtectTag.java
|-- test
|-- pom.xml
|-- .project
|-- .classpath
`-- .hgignore

I want to include a tld file for my JSP tag, and I'm not sure where to package it. My initial thought is to add a src/main/resources directory and put META-INF/viewprotect.tld in there.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

燃情 2024-09-13 11:03:27

我最初的想法是添加一个 src/main/resources 目录并将 META-INF/viewprotect.tld 放入其中

这是一个很好的初步想法。

My initial thought is to add a src/main/resources directory and put META-INF/viewprotect.tld in there

And that's a good initial thought.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文