如何在Eclipse中制作war文件 [英] How to make war file in Eclipse

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

问题描述



当我右键单击运行在服务器上,但我想在tomcat服务器上部署时,我的项目正在工作。
我已经安装了 m2clipse ,但它给了我一个错误。


  1. 是否必须强制制作战争文件?

  2. 我需要特殊的目录结构才能与eclipse战争吗?



    失败执行目标org.apache.maven.plugins:maven-war-plugin:2.1.1:在项目测试中的war(default-war)2:组装WAR时出错:需要webxml属性(或预先存在的WEB-INF / web。 xml如果在更新模式下执行) - > [帮助1]
    [ERROR]



解决方案

文件 - >导出 - >网络 - > WAR文件



或在开普勒关注如下所示:




What is the easy way to make war file?

My project is working when i right click run on server, but i want to deploy on tomcat server. I have installed m2clipse but it gave me an error.

  1. Is maven compulsory to make war file?
  2. Do i need special directory structure to make war with eclipse?

    Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.1.1:war (default-war) on project testing2: Error assembling WAR: webxml attribute is required (or pre-existing WEB-INF/web.xml if executing in update mode) -> [Help 1] [ERROR]

解决方案

File -> Export -> Web -> WAR file

OR in Kepler follow as shown below :

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

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