解决eclipse中tomcat无法识别maven web项目问题

来源:互联网 发布:怎么做淘宝客服兼职 编辑:程序博客网 时间:2024/05/17 02:46

eclipse工具中导入了maven web项目(从git上拉下来的), 但是tomcat死活都识别不了, maven项目进行了clean install等操作, 但是仍无效, 后在网上搜索到以下答案, 解决问题。


1. 右击项目 -> Debug As -> Maven build...

2. 在Goals中填入: -Dwtpversion=2.0 eclipse:eclipse




对于WTP(Web Tools Project)官方的介绍如下

The Eclipse plugin supports creating configurations for Eclipse WTP (Web Tools Project). Projects with a WAR packaging can be setup as WTP dynamic web projects and runtime dependencies are configured to be used when running them using Eclipse internal servers.

大体意思是, Eclipse插件支持为Eclipse WTP(Web Tools Project)创建配置. 具有WAR包的项目可以设置为WTP动态web项目, 运行时依赖配置在使用eclipse内部服务器运行时使用.


链接: http://maven.apache.org/plugins/maven-eclipse-plugin/wtp.html


转自:http://blog.csdn.net/pansanday/article/details/68488490


阅读全文
0 0
原创粉丝点击