gpt4 book ai didi

Maven : How to avoid version appended to a war file in Maven?

转载 作者:IT老高 更新时间:2023-10-28 11:23:16 25 4
gpt4 key购买 nike

我使用 Maven 作为构建文件,这是我下面要生成的 war 文件名的设置

我使用的是 Maven 2.2.1 版

     <artifactId>TataWeb</artifactId>
<packaging>war</packaging>
<version>1.0</version>

所以它实际上生成了一个名为 TataWeb-1.0 的 war 文件

但我希望 war 文件名只有 TataWeb。

请告诉我如何避免 war 文件名附加的版本??

谢谢。

最佳答案

只需将其添加到您的 pom.xml:

<build>
<finalName>TataWeb</finalName>
</build>

关于Maven : How to avoid version appended to a war file in Maven?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10548553/

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