LoginSignup
3
3

More than 3 years have passed since last update.

Mavenでwarのファイル名を設定したものに固定にする

Posted at

Maven2を使っているときに、デフォルトのpom.xmlだと出力されるwarのファイル名にファイルにバージョンが自動的に付与されてしまう。

ex) sampleapp-0.0.0.war

Tomcatのwebappsにひょいってデプロイしたいときにこんなファイル名だとめんどくさいので、
そんな時は pom.xml内に以下の設定を追加するとファイル名が固定になる。

pom.xml
<build>
    (略)
     <finalName>sampleapp</finalName>
     <!--↑この行追加 -->
</build>
3
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
3