我在哪里放置.tld文件,以便正确打包使用maven2构建的结果JAR文件? [英] Where do I put the .tld file so that the resulting JAR file built with maven2 is properly packaged?

查看:112
本文介绍了我在哪里放置.tld文件,以便正确打包使用maven2构建的结果JAR文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I currently have the following directory structure for my code:

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

我想为我的JSP标记包含一个tld文件,我不知道在哪里包装它。我最初的想法是添加一个 src / main / resources 目录并在那里放入 META-INF / viewprotect.tld

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.

推荐答案


我最初的想法是添加一个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.

这篇关于我在哪里放置.tld文件,以便正确打包使用maven2构建的结果JAR文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆