简体   繁体   English

如何在不同的环境中部署Maven jar?

[英]How to deploy maven jar in different environments?

我有一个独立的应用程序,可以通过maven生成jar。它没有任何耳朵或战争.jar文件在我的目标文件夹中生成。我想了解这个jar文件的构建部署过程。假设我想部署这个jar在10个不同的环境中复制文件。如何操作。我应直接从eclipse复制jar还是应从tortoise svn复制它。如何在不同的环境中生成工件。我将jar文件复制到winscp并通过腻子将其部署所有不同的环境。请帮助!!

Instead of copying the jar file manually to each machine, you do the following: a. 您可以执行以下操作,而不是将jar文件手动复制到每台计算机上: Store your app jar file in a maven repository. 将您的应用jar文件存储在Maven存储库中。 Refer link for instructions: https://maven.apache.org/guides/mini/guide-central-repository-upload.html b. 请参阅链接以获取说明: https : //maven.apache.org/guides/mini/guide-central-repository-upload.html b。 On the machines where you wish to execute the you can use maven to execute the application. 在要执行的机器上,可以使用maven执行应用程序。 http://www.mojohaus.org/exec-maven-plugin/usage.html http://www.mojohaus.org/exec-maven-plugin/usage.html

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM