Unsupported WTP version: 1.5. This plugin currently supports only the following versions: 1.0 R7

Often times, you may to use “mvn eclipse:eclipse -Dwtpversion=1.5” command to create a web project for Eclipse IDE, but you may encounter the following error messages.


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 

The solution is include the “maven-eclipse-plugin” Maven plugin into pom.xml file.


<plugin>
      <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-eclipse-plugin</artifactId>
      <version>2.5</version>
	  <configuration>
		 <wtpversion>1.5</wtpversion>
	  </configuration>
</plugin>

Done. Try mvn eclipse:eclipse -Dwtpversion=1.5 command again.

About the Author

author image
mkyong
Founder of Mkyong.com, love Java and open source stuff. Follow him on Twitter. If you like my tutorials, consider make a donation to these charities.

Comments

avatar
2 Comment threads
0 Thread replies
0 Followers
 
Most reacted comment
Hottest comment thread
0 Comment authors
Maven TutorialsHow to use Maven to create a Dynamic Web Project in Eclipse? | Maven Recent comment authors
newest oldest most voted
trackback
Maven Tutorials

[…] Unsupported WTP version: 1.5 […]

trackback
How to use Maven to create a Dynamic Web Project in Eclipse? | Maven

[…] P.S If you hit Unsupported WTP version: 1.5. This plugin currently supports only the following versions: 1.0 R7 error, please visit solution here […]