Why maven-googlewebtoolkit2-plugin includes all the transitive dependencies in classpath?

8 views
Skip to first unread message

vikas.n...@gmail.com

unread,
May 25, 2007, 7:19:36 AM5/25/07
to gwt-maven
In my batch file to do GWT Compile I just need gwt-user.jar and gwt-
dev-windows.jar in my classpath, e.g. Following is what I doing in my
batch file -
java -cp "%~dp0\build\web\WEB-INF\classes";"%~dp0\src\java;
%~dp0\bin;d:/work/electra/gwt-windows-1.3.1/gwt-user.jar;d:/work/
electra/gwt-windows-1.3.1/gwt-dev-windows.jar"
com.google.gwt.dev.GWTCompiler -out "%~dp0\build\web\html" %*
com.x.y.z.EntryPoint

While this maven-googlewebtoolkit2-plugin uses complete dependency
(including transitive one) defined in my POM which are definitely not
required.

Its a problem for me when I have huge transitive dependency, because
my gwt:compile fails with 'The command line is too long.'

Is this going to be fixed?

Tuck

unread,
May 31, 2007, 10:59:57 AM5/31/07
to gwt-maven
I'm not sure this is a function of the gwt-maven plugin or with
Windows command line limitations. I ran into the command line issue
with the gwt-maven plugin and changed the transitivity scope to
"provided" which alleviated the issue. (Dependency dependents no
longer included on the command line....). A scope of "runtime" should
remove this from the command line altogether.

Jeff

On May 25, 7:19 am, "vikas.n.sha...@gmail.com"

Reply all
Reply to author
Forward
0 new messages