Which Eclipse wtp version should I use for maven?

心不动则不痛 提交于 2019-12-07 13:44:42

问题


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 ?


回答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?



来源:https://stackoverflow.com/questions/9227312/which-eclipse-wtp-version-should-i-use-for-maven

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!