首页 新闻 会员 周边 捐助

maven约定大于配置,写的配置文件无法导出或生效的问题,解决方法

-1
[待解决问题]

maven约定大于配置,写的配置文件无法导出或生效的问题,解决方法。在为啥有的用<filtering>false</filtering>可以解决,而有的要用<filtering>true</filtering>才能解决

<build>
<resources>
<resource>
<directory>src/main/resources</directory>
<includes>
<include>/*.properties</include>
<include>
/.xml</include>
</includes>
→→→→ <filtering>false</filtering>
</resource>
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/
.properties</include>
<include>/*.xml</include>
</includes>
<filtering>false</filtering>
</resource>
</resources>
</build>
————————————————
<build>
<resources>
<resource>
<directory>src/main/java</directory>
<includes>
<include>
/.properties</include>
<include>**/
.xml</include>
</includes>
→→→→ <filtering>true</filtering>
</resource>
<resource>
<directory>src/main/resources</directory>
<includes>
<include>/*.properties</include>
<include>
/*.xml</include>
</includes>
<filtering>true</filtering>
</resource>
</resources>
</build>
————————————————

豆腐干后果后的主页 豆腐干后果后 | 菜鸟二级 | 园豆:202
提问于:2022-11-25 23:41
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册