サポートされていないWTPバージョン:1.5. このプラグインは現在、以下のバージョンのみをサポートしています:1.0 R7
Eclipse IDE用のWebプロジェクトを作成するには、「
mvn eclipse:eclipse -Dwtpversion = 1.5
」コマンドを使用することがよくありますが、次のエラーメッセージが表示されることがあります。
Unsupported WTP version: 1.5. This plugin currently supports only the following versions: 1.0 R7
D:\mkyong>mvn eclipse:eclipse -Dwtpversion=1.5[INFO]Scanning for projects...[INFO]Searching repository for plugin with prefix: 'eclipse'.[INFO]------------------------------------------------------------------------[INFO]Building wicketHelloWorld[INFO] task-segment:[eclipse:eclipse][INFO]------------------------------------------------------------------------[INFO]Preparing eclipse:eclipse[INFO]No goals needed for project - skipping[INFO][eclipse:eclipse][INFO]------------------------------------------------------------------------[ERROR]BUILD ERROR[INFO]------------------------------------------------------------------------[INFO]Unsupported WTP version: 1.5. This plugin currently supports only the following versions: 1.0 R7
解決策には、 ”
maven-eclipse-plugin
” Mavenプラグインをpom.xmlファイルに含めます。
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-eclipse-plugin</artifactId> <version>2.5</version> <configuration> <wtpversion>1.5</wtpversion> </configuration> </plugin>
完了しました。
mvn eclipse:eclipse -Dwtpversion = 1.5
コマンドをもう一度試してください。