Where do I put the .tld file so that the resulting JAR file built with maven2 is properly packaged?

匆匆过客 提交于 2020-01-01 09:26:26

问题


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.


回答1:


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.



来源:https://stackoverflow.com/questions/3105539/where-do-i-put-the-tld-file-so-that-the-resulting-jar-file-built-with-maven2-is

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!