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
I found another workaround here http://code.google.com/p/gwt-maven/issues/detail?id=88 (I have problem with changing pom to fit a specific OS)
In short: make path to local repository as short as possible.
" Comment 40 by gaurav.a...@gmail.com, Mar 23, 2009 One of the fix to the problem of "GWT compilation fails due to- The input line is too long." is as follows:
C:\Documents and Settings\MahcineNameABC\.m2
Copy settings.xml file from folder
apache-maven-2.0.8\apache-maven-2.0.8\conf
into C:\Documents and Settings\MahcineNameABC\.m2
In settings.xml:
change the tag as
. Now your m2 home is a virtual M drive.
D:\maven-2.0.8\repository
C:\Documents and Settings\MahcineNameABC\.m2\repository
to D:\maven-2.0.8\repository
subst M: D:\maven-2.0.8\repository
(help)M2_REPO
with value M:cmd /e:32768
This would fix the problem of long inputs due to very long entries in classpath variables, at least in Win XP SP2. The inputs are combined and tested from comment#22 and #7.
Hope it helps!
This should help in most cases (and 'til the end of project - at least in my case)