我有一个Maven项目,我希望有两个构建工件:
.properties
文件的文件夹。 如何设置我的Maven项目来执行此操作?然后,一旦我完成了这个,我怎么能在依赖图中消耗它们呢?
答案 0 :(得分:3)
将copy-resources
goal的Maven Resources Plugin添加到您的POM。
1. Remove <Servlet> and <servlet-mapping> tags and anything in between them. Since you have used @WebServlet annotation. There is no need to declare those tags in web.XML.
我无法理解你的意思&#34;将它们消耗在依赖图中&#34;。