如何使用Maven将多个.properties文件添加为构建工件?

时间:2015-06-07 09:16:52

标签: java maven

我有一个Maven项目,我希望有两个构建工件:

  1. 包含已编译Java源代码的jar文件。
  2. 包含多个.properties文件的文件夹。
  3. 如何设置我的Maven项目来执行此操作?然后,一旦我完成了这个,我怎么能在依赖图中消耗它们呢?

1 个答案:

答案 0 :(得分:3)

copy-resources goalMaven 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;。

相关问题