Use maven-eclipse-plugin.