I have maven-gwt project. It has lots of dependencies which is usual by a large project. I think it is at the limit with creation of classpath. I found some information abou
This seems to be a known problem with gwt-maven. There is a discussion on the gwt-maven google groups: Workaround for windows command line length limit
The problem seems to be that the sources are included on the test classpath, hence you're getting problems when you're running surefire:
The workaround is to exclude the sources dependency, make it system scope (from the above thread):
myproject-rpc-source
${project.groupId}
${project.version}
sources
system
${basedir}/../rpc/target/myproject-rpc-${project.version}-sources.jar
but I would fully read and understand the google groups thread before proceeding with this.