如何在eclipse中创建WAR文件? [英] How to create WAR file in eclipse?

查看:181
本文介绍了如何在eclipse中创建WAR文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有基于maven的项目。我想创建WAR文件。我有eclipse(版本:Helios服务版本2)。
*创建WAR文件的步骤是什么?
*在哪里给出WAR名称?

解决方案

如果您的项目是基于maven的项目,那么:
1)右键点击你的项目。
2)选择Run-as
3)选择Maven install
4)检查控制台是否构建失败或成功。



您的项目的WAR文件生成到目标文件夹中。


I have maven based project. I want to create WAR file. I have eclipse (Version: Helios Service Release 2). *What are the steps to create WAR file? *Where to give WAR name?

解决方案

If your project is maven-based project then : 1)Right click on your project. 2) Choose Run-as 3) Select Maven install 4) Check the console for Build failure or success .

Your WAR file of a project is generated into the target folder.

这篇关于如何在eclipse中创建WAR文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆