我应该将 .tld 文件放在哪里,以便正确打包使用 maven2 构建的 JAR 文件?
目前,我的代码具有以下目录结构:
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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是一个很好的初步想法。
And that's a good initial thought.