我目前的代码目录结构如下:
src
|-- main
| `-- java
| `-- com
| `-- upthescala
| `-- tags
| `-- ViewProtectTag.java
|-- test
|-- pom.xml
|-- .project
|-- .classpath
`-- .hgignore
我想为我的 JSP 标记包含一个 tld 文件,但我不确定将它打包到哪里。我最初的想法是添加一个 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
这是一个很好的初步想法。
关于java - 将 .tld 文件放在哪里,以便正确打包使用 maven2 生成的 JAR 文件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3105539/