Maven:如何避免将版本附加到Maven的war文件中? [英] Maven : How to avoid version appended to a war file in Maven?

查看:96
本文介绍了Maven:如何避免将版本附加到Maven的war文件中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Maven作为构建文件,这是我要生成的战争文件名的以下设置

I am using Maven as the build file , this is my below settings for the war file name to be generated

我正在使用Maven 2.2.1版

I am using Maven version 2.2.1

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

因此它实际上生成了一个名称为TataWeb-1.0的战争文件

So its actually generating a war file with this name TataWeb-1.0

但是我希望战争文件的名称只能是TataWeb.

But i want the war file name to be only TataWeb .

请让我知道如何避免添加到战争文件名中的版本??

Please let me know how can i avoid the version appeneded to the war file name ??

谢谢.

推荐答案

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

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

这篇关于Maven:如何避免将版本附加到Maven的war文件中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆