我正在为我的项目创建maven-archetype。我在" archetype -resources“文件夹中有一个log4j.properties文件,当我使用这个原型创建maven项目时,我希望它位于我的项目的"src/main/resources/”下。如果我设置了如下xml,它不会在resources文件夹中添加任何内容:
archetype-metadata.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>任何帮助都是非常感谢的。谢谢:)
发布于 2020-04-28 22:33:08
只要使用下面的代码,它就应该可以工作了。
<fileSet filtered="true">
<directory>src/main/resources</directory>
</fileSet>https://stackoverflow.com/questions/46814316
复制相似问题