gpt4 book ai didi

maven - Maven资源过滤排除

转载 作者:行者123 更新时间:2023-12-04 04:48:52 26 4
gpt4 key购买 nike

我有以下Maven配置:

        <resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
<excludes>
<exclude>keystore.jks</exclude>
</excludes>
</resource>
</resources>


我希望 keystore.jks包含在类/ war应用程序中,但不希望由Maven过滤处理。

如何更改此配置?

最佳答案

根据Maven Resource Filtering Documentation,这应该起作用:

<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
<excludes>
<exclude>keystore.jks</exclude>
</excludes>
</resource>
<resource>
<directory>src/main/resources</directory>
<filtering>false</filtering>
<includes>
<include>keystore.jks</include>
</includes>
</resource>
</resources>

关于maven - Maven资源过滤排除,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34749819/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com