Web app version in Tomcat Manager

前端 未结 5 1248
猫巷女王i
猫巷女王i 2020-12-13 17:55

How can I configure my web application for deployment in Tomcat so that Tomcat Manager shows the version in the table that lists all applications installed (/manager/html/li

5条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-13 18:03

    With maven set the output war file name:

    ...
    MyTest
    0.0.1
    ...
    
        ${project.artifactId}##${project.version}
    
    ...
    

    Output -> MyTest##0.0.1.war

    Or simple rename war-file with format file_name##version.war ;)

提交回复
热议问题