【发布时间】:2017-10-18 15:52:07
【问题描述】:
我正在为我的项目创建 maven-archetype。我在文件夹“archetype-resources”中有一个 log4j.properties 文件,当我将使用此原型创建 maven 项目时,我希望它位于我的项目的“src/main/resources/”下。如果我设置了如下的 xml,它不会在资源文件夹中添加任何内容:
原型元数据.xml
<fileSet filtered="true" encoding="UTF-8">
<directory>src/main/resources</directory>
<includes>
<include>**/log4j.properties</include>
</includes>
</fileSet>
虽然它工作正常并在我有时将 log4j.properties 添加到根文件夹
<fileSet filtered="true" encoding="UTF-8">
<directory></directory>
<includes>
<include>**/log4j.properties</include>
</includes>
</fileSet>
感谢任何帮助。谢谢:)
【问题讨论】:
标签: java maven pom.xml maven-archetype