哪个Eclipse wtp版本应该用于maven? [英] Which Eclipse wtp version should I use for maven?

查看:161
本文介绍了哪个Eclipse wtp版本应该用于maven?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试运行maven目标时收到此错误 - mvn eclipse:eclipse -Dwtpversion = 3.3.1



[ERROR]无法执行目标组织。 apache.maven.plugins:maven-eclipse-plugin:2.8
:项目会议网络上的eclipse(default-cli):不支持的WTP版本:3.3.1
。此插件目前仅支持以下版本:1.0 1.5 2.0 R7非
e。 - > [帮助1]
[错误]



将使用版本2.0是否足够?但是这个目标是否应该成功运行?

 < groupId> org.apache.maven.plugins< / groupId> 
< artifactId> maven-eclipse-plugin< / artifactId>
< configuration>
< wtpmanifest> true< / wtpmanifest>
< wtpapplicationxml> true< / wtpapplicationxml>
< wtpversion> 2.0< / wtpversion>
< / configuration>

以下图片确认我使用的是wtp版本3.3.1?

解决方案

您可以使用最新支持的wtp版本的插件,在eclipse中打开项目,在问题视图中右键单击警告wtp项目版本旧,然后选择quickfix。



据我记得,从插件中删除了wtp的支持,因为maven eclipse m2eclipse插件更加先进。你没有使用那个原因吗?


I receive this error when I try to run the maven goal - mvn eclipse:eclipse -Dwtpversion=3.3.1

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-eclipse-plugin:2.8 :eclipse (default-cli) on project conference-web: Unsupported WTP version: 3.3.1 . This plugin currently supports only the following versions: 1.0 1.5 2.0 R7 non e. -> [Help 1] [ERROR]

Will using version 2.0 suffice ? But should'nt the goal run successfully ?

<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-eclipse-plugin</artifactId>
<configuration>
    <wtpmanifest>true</wtpmanifest>
    <wtpapplicationxml>true</wtpapplicationxml>
    <wtpversion>2.0</wtpversion>
</configuration>

Does'nt below image confirm I am use wtp version 3.3.1 ?

解决方案

you can use the latest supported wtp version of the plugin, open the project in eclipse and in the 'problems' view right click on the warning "wtp project version to old" and choose 'quickfix.

As far as i remember the support of wtp was removed from the plugin since the maven eclipse m2eclipse plugin got more advanced. Any reasons you're not using that one?

这篇关于哪个Eclipse wtp版本应该用于maven?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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