我的应用程序是建立在 maven 上的,我有以下信息和模块我有一个 application.xml,内容如下
<module id="WebModule_1344925542124">
<web>
<web-uri>Test1-module-timerweb-3.2.0.0-SNAPSHOT.war</web-uri>
<context-root>/Test1</context-root>
</web>
</module>
<module id="WebModule_1344925542155">
<web>
<web-uri>Test2-module-web-3.2.0.0-SNAPSHOT.war</web-uri>
<context-root>/Test2</context-root>
</web>
</module>
<module id="WebModule_1344925542187">
<web>
<web-uri>Test3-module-web-3.2.0.0-SNAPSHOT.war</web-uri>
<context-root>/Test3</context-root>
</web>
</module>
<module id="WebModule_1344926714491">
<web>
<web-uri>Test4-module-web-3.2.0.0-SNAPSHOT.war</web-uri>
<context-root>/Test4</context-root>
</web>
</module>
是否有任何 maven 命令可以一次更改所有地方的 web-uri 文件名。为了更改 pom.xml 中的版本号,我在执行命令后使用 mvn 版本:set -DnewVersion=3.2.10.2 命令,所有版本号和模块名称都在更改,除了 application.xml 中的名称。因此,我的应用程序无法正常工作,我在所有地方手动更改并正常工作。
如果有任何其他方法可以更改 application.xml 中的文件名以及版本号,请帮助我。