How to put maven project version in war file manifest?

前端 未结 3 1715
旧时难觅i
旧时难觅i 2021-02-02 10:29

I need to have Maven insert the version number from the POM file into the manifest located in the WAR file under /WEB-INF/manifest.mf.

How do I do this? I was able to ea

3条回答
  •  眼角桃花
    2021-02-02 11:00

    Put ${project.version} in your manifest.mf where you want the version to be. In order for this to work, I believe you need the resources plugin so that manven will 'filter' resources as they are included in your war file.

提交回复
热议问题