不同构建、打包情况下分别运行
1.pom 添加配置
<build>
<resources>
<resource>
<directory>src/main/resources</directory>
<includes>
<include>**/*.properties</include>
<include>**/*.xml</include>
</includes>
<filtering>true</filtering>
</resource>
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/*.properties</include>
<include>**/*.xml</include>
</includes>
<filtering>true</filtering>
</resource>
</resources>
</build>
解决:删除仓库中的_remote.repositories文件,否则还是回到远程仓库去找(重要重要重要)
打开仓库地址,输入cmd 打开命令行,执行下面语句
for /r %i in (_remote.repositories) do del %i