我正在为我的项目创建Maven原型。我在“ archetype-resources”文件夹中有一个log4j.properties文件,当我使用此原型创建Maven项目时,我希望它位于项目的“ src / main / resources /”下。如果我的XML设置如下,它不会在资源文件夹中添加任何内容:
archetype-metadata.xml
<fileSet filtered="true" encoding="UTF-8">
<directory>src/main/resources</directory>
<includes>
<include>**/log4j.properties</include>
</includes>
</fileSet>
虽然可以正常工作,并在我有root4时将log4j.properties添加到根文件夹中>
<fileSet filtered="true" encoding="UTF-8"> <directory></directory> <includes> <include>**/log4j.properties</include> </includes> </fileSet>
感谢您的帮助。谢谢:)
我正在为我的项目创建Maven原型。我在文件夹“ archetype-resources”中有一个log4j.properties文件,当我将其用于...时,我希望它位于项目的“ src / main / resources /”下。 [
<fileSet filtered="true">
<directory>src/main/resources</directory>
</fileSet>