简体   繁体   English

m2eclipse如何制作Webapp

[英]m2eclipse how make a webapp

I select New Project Wizard and choose Maven Project from the list. 我选择“新建项目向导”,然后从列表中选择“ Maven项目”。 In Archetype selection panel select maven-archetype-webapp. 在“原型选择”面板中,选择“ maven-archetype-webapp”。 Make the project, but i dont see to deploy on tomcat. 进行项目,但我看不到要在tomcat上部署。

You need to install the Maven integration for WTP plugin (aka m2eclipse-wtp). 您需要为WTP插件安装Maven集成(又名m2eclipse-wtp)。 It's available from the m2eclipse Update Site hosted by JBoss: http://download.jboss.org/jbosstools/updates/m2eclipse-wtp/ 可从JBoss托管的m2eclipse更新站点获得: http : //download.jboss.org/jbosstools/updates/m2eclipse-wtp/

Once you've installed it, right click on your project > Maven > Update Project configuration. 安装后,右键单击您的项目> Maven>更新项目配置。 The m2eclipse-wtp plugin will take care of configuring the WTP settings for your project from the maven-war-plugin configuration from your pom.xml. m2eclipse-wtp插件将负责通过pom.xml中的maven-war-plugin配置为您的项目配置WTP设置。

Once configured, you should have access to the "Run > Run on server" menu 配置完成后,您应该可以访问“运行>在服务器上运行”菜单

右键单击>运行>在服务器上运行>添加您的首选服务器并运行

做一个Maven软件包,浏览到http:// localhost:8080 / manager并进行war上传。

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

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