简体   繁体   English

如何对在Apache Tomcat上运行的War应用程序使用版本控制

[英]How to use versioning for a war application running on Apache Tomcat

How to use versioning for a war application running on Apache Tomcat? 如何对在Apache Tomcat上运行的战争应用程序使用版本控制?

My war suffix contains version of the current war like: myApp-web-2.0.1.war 我的战争后缀包含当前战争的版本,例如:myApp-web-2.0.1.war

What I want to achieve is create o folder named dist or else in order to see which versions were deployed before the current one. 我要实现的是创建一个名为dist的o文件夹,或者查看当前版本之前已部署的版本。

I would like to hear your approaches, and best practises. 我想听听您的方法和最佳实践。 Thanks. 谢谢。

Are you building your WAR file with Ant? 您是否正在使用Ant构建WAR文件? Maven would provide a versioning strategy for you inherently with the tag in your pom.xml. Maven会使用pom.xml中的标记为您提供固有的版本控制策略。

Assuming you are using Ant, I would recommend keeping your current deployable named myApp-web.war and then copying that artifact out to an archive directory with a <major>.<minor>.<increment> extension to keep unique version history on each subsequent build. 假设您使用的是Ant,我建议您保留当前可部署的名为myApp-web.war的文件,然后将该工件复制到带有<major>.<minor>.<increment>扩展名的存档目录中,以在每个文件上保留唯一的版本历史记录。后续构建。 If you keep all your historic artifacts in the deploy directory, Tomcat is going to deploy them all which probably is not your desired behavior. 如果将所有历史工件保留在deploy目录中,则Tomcat会将它们全部部署,这可能不是您想要的行为。 It sounds like you are just after a version archival. 听起来您就像是在进行版本存档之后。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在 Apache Tomcat 上部署 .war 时如何使用给定的 application.properties 文件? - How do I use a given application.properties file when deploying a .war on Apache Tomcat? 如何将运行在Apache Tomcat 5中的Java应用程序迁移到Apache Tomcat 7? - How to migrate a java application running in Apache Tomcat 5 to Apache Tomcat 7? 如何获取在 Apache Tomcat 上运行的应用程序的 maxConnections - How to get maxConnections of an application running on Apache Tomcat 在没有战争的情况下在tomcat上运行Java Web应用程序 - Running Java web application on tomcat without war 如何使用骆驼 http 组件将文件上传到运行在 apache tomcat 服务器上的应用程序? - How can I use camel http compponent to upload a file to an application running on apache tomcat server? Apache Ant 如何将.war 文件部署到 Tomcat - How Apache Ant deploys .war file to Tomcat 如何在apache tomcat 8中将uaa部署为war文件? - How to deploy uaa as a war file in apache tomcat 8? 无法在Apache Tomcat服务器上启动Spring Boot应用程序(WAR文件) - Spring Boot Application(WAR file) could not be started On Apache Tomcat Server 一台Apache Tomcat应用程序服务器,具有2个配置的war应用程序和一个MessageSource异常 - One Apache Tomcat application server with 2 configured war applications and a MessageSource exception Apache服务器RewriteRule与Tomcat战争-从URL删除应用程序名称 - Apache server RewriteRule to Tomcat war - Remove application name from url
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM