I just got the maven2 plugin mostly working yesterday, but I've
experienced a weird issue with it. If I run the gwt:gwt target in
order to make a war file, I get this error when the plugin attempts to
run gwt:compile after running compile:compile (I've changed package
names to protect the innocent :-):
[INFO] [compiler:compile]
Compiling 28 source files to C:\dev\myproject\target\classes
[INFO] [gwt:compile {execution: default}]
Using classpath: ...
[INFO] Running GWTCompile with command: "C:\Program Files\Java
\jdk1.5.0_10\jre\bin\java" -classpath "..."
com.google.gwt.dev.GWTCompiler -logLevel INFO -style OBF -out C:\dev
\myproject\target\projectoutput com.my.package.MyProject
'C:\Program' is not recognized as an internal or external command,
operable program or batch file.
org.apache.maven.plugin.MojoExecutionException: 'C:\Program' is not
recognized as an internal or external command,
operable program or batch file.
at com.totsp.mavenplugin.gwt.CompileMojo.execute(CompileMojo.java:80)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:
412)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:
534)
It seems to me as though it's going to run java and it somehow doesn't
see the quotes in the run string, and therefore it's trying to run a
target of C:\Program. The weird thing is, if I run a 'mvn compile'
separately then a 'mvn gwt:compile war:war', it works fine. It's only
when the gwt:compile target is run right after a compile:compile (as
happens in the gwt:gwt target) that I'm experiencing these issues.
Any ideas on what might be causing this?
Thanks,
Tim
Tim
On Mar 7, 11:04 pm, "Robert \"kebernet\" Cooper" <keber...@gmail.com>
wrote:
> Hmm. This would be a problem. I will look into this.
>
> Setting the JAVA_HOME with no spaces should correct this in the interim.
>
I was getting the same issue so I added the version 1.5.0 node to the
plugin xml in my pom.
Now I don't get the error but the gwt:gwt goal exits with code 1,
without bring up the shell.
This is the last message i get: (Sorry about the length, i've got a
big classpath)
[INFO] [gwt:debug]
Using classpath: c:\doxlaworkspace\wineApp\gwt-webapp\target\classes;C:
\Document
s and Settings\dano\.m2\repository\javax\transaction\jta\1.0.1B
\jta-1.0.1B.jar;C
:\Documents and Settings\dano\.m2\repository\net\sf\ehcache\ehcache
\1.2\ehcache-
1.2.jar;C:\Documents and Settings\dano\.m2\repository\commons-logging
\commons-lo
gging\1.0.4\commons-logging-1.0.4.jar;C:\Documents and Settings\dano
\.m2\reposit
ory\dom4j\dom4j\1.6.1\dom4j-1.6.1.jar;C:\Documents and Settings\dano
\.m2\reposit
ory\cglib\cglib\2.1_3\cglib-2.1_3.jar;C:\Documents and Settings\dano
\.m2\reposit
ory\asm\asm-attrs\1.5.3\asm-attrs-1.5.3.jar;C:\Documents and Settings
\dano\.m2\r
epository\org\springframework\spring-mock\2.0-rc3\spring-mock-2.0-
rc3.jar;C:\Doc
uments and Settings\dano\.m2\repository\antlr\antlr
\2.7.6\antlr-2.7.6.jar;C:\Doc
uments and Settings\dano\.m2\repository\org\springframework\spring
\2.0.1\spring-
2.0.1.jar;C:\Documents and Settings\dano\.m2\repository\asm\asm
\1.5.3\asm-1.5.3.
jar;C:\Documents and Settings\dano\.m2\repository\commons-collections
\commons-co
llections\2.1.1\commons-collections-2.1.1.jar;C:\Documents and Settings
\dano\.m2
\repository\postgresql\postgresql
\8.2-504.jdbc3\postgresql-8.2-504.jdbc3.jar;C:\
Documents and Settings\dano\.m2\repository\commons-dbcp\commons-dbcp
\1.2.1\commo
ns-dbcp-1.2.1.jar;C:\Documents and Settings\dano\.m2\repository\org
\doxla\wine\1
.0\wine-1.0.jar;C:\Documents and Settings\dano\.m2\repository\com
\google\gwt\gwt
-servlet\1.3.3\gwt-servlet-1.3.3.jar;C:\Documents and Settings\dano
\.m2\reposito
ry\org\hibernate\hibernate\3.2.0.cr5\hibernate-3.2.0.cr5.jar;C:
\Documents and Se
ttings\dano\.m2\repository\xml-apis\xml-apis\1.0.b2\xml-
apis-1.0.b2.jar;C:\Docum
ents and Settings\dano\.m2\repository\xerces\xercesImpl
\2.0.2\xercesImpl-2.0.2.j
ar;C:\Documents and Settings\dano\.m2\repository\log4j\log4j
\1.2.14\log4j-1.2.14
.jar;C:\Documents and Settings\dano\.m2\repository\commons-pool
\commons-pool\1.2
\commons-pool-1.2.jar;C:\gwt-windows-1.3.3\gwt-dev-linux.jar;C:\gwt-
windows-1.3.
3\gwt-dev-mac.jar;C:\gwt-windows-1.3.3\gwt-dev-windows.jar;C:\gwt-
windows-1.3.3\
gwt-user.jar;c:\doxlaworkspace\wineApp\gwt-webapp\src\main\resources;c:
\doxlawor
kspace\wineApp\gwt-webapp\src\main\java
[INFO] Running GWT with command: "c:\Program Files\Java\jdk1.5.0_10\jre
\bin\java
" -Xdebug -Xnoagent -Djava.compiler=NONE -
Xrunjdwp:transport=dt_socket,server=y,
address=8888,suspend=y -Dcatalina.base=c:\doxlaworkspace\wineApp\gwt-
webapp\targ
et\tomcat -classpath "c:\doxlaworkspace\wineApp\gwt-webapp\target
\classes;C:\Doc
uments and Settings\dano\.m2\repository\javax\transaction\jta\1.0.1B
\jta-1.0.1B.
jar;C:\Documents and Settings\dano\.m2\repository\net\sf\ehcache
\ehcache\1.2\ehc
ache-1.2.jar;C:\Documents and Settings\dano\.m2\repository\commons-
logging\commo
ns-logging\1.0.4\commons-logging-1.0.4.jar;C:\Documents and Settings
\dano\.m2\re
pository\dom4j\dom4j\1.6.1\dom4j-1.6.1.jar;C:\Documents and Settings
\dano\.m2\re
pository\cglib\cglib\2.1_3\cglib-2.1_3.jar;C:\Documents and Settings
\dano\.m2\re
pository\asm\asm-attrs\1.5.3\asm-attrs-1.5.3.jar;C:\Documents and
Settings\dano\
.m2\repository\org\springframework\spring-mock\2.0-rc3\spring-mock-2.0-
rc3.jar;C
:\Documents and Settings\dano\.m2\repository\antlr\antlr
\2.7.6\antlr-2.7.6.jar;C
:\Documents and Settings\dano\.m2\repository\org\springframework\spring
\2.0.1\sp
ring-2.0.1.jar;C:\Documents and Settings\dano\.m2\repository\asm\asm
\1.5.3\asm-1
.5.3.jar;C:\Documents and Settings\dano\.m2\repository\commons-
collections\commo
ns-collections\2.1.1\commons-collections-2.1.1.jar;C:\Documents and
Settings\dan
o\.m2\repository\postgresql\postgresql
\8.2-504.jdbc3\postgresql-8.2-504.jdbc3.ja
r;C:\Documents and Settings\dano\.m2\repository\commons-dbcp\commons-
dbcp\1.2.1\
commons-dbcp-1.2.1.jar;C:\Documents and Settings\dano\.m2\repository
\org\doxla\w
ine\1.0\wine-1.0.jar;C:\Documents and Settings\dano\.m2\repository\com
\google\gw
t\gwt-servlet\1.3.3\gwt-servlet-1.3.3.jar;C:\Documents and Settings
\dano\.m2\rep
ository\org\hibernate\hibernate\3.2.0.cr5\hibernate-3.2.0.cr5.jar;C:
\Documents a
nd Settings\dano\.m2\repository\xml-apis\xml-apis\1.0.b2\xml-
apis-1.0.b2.jar;C:\
Documents and Settings\dano\.m2\repository\xerces\xercesImpl
\2.0.2\xercesImpl-2.
0.2.jar;C:\Documents and Settings\dano\.m2\repository\log4j\log4j
\1.2.14\log4j-1
.2.14.jar;C:\Documents and Settings\dano\.m2\repository\commons-pool
\commons-poo
l\1.2\commons-pool-1.2.jar;C:\gwt-windows-1.3.3\gwt-dev-linux.jar;C:
\gwt-windows
-1.3.3\gwt-dev-mac.jar;C:\gwt-windows-1.3.3\gwt-dev-windows.jar;C:\gwt-
windows-1
.3.3\gwt-user.jar;c:\doxlaworkspace\wineApp\gwt-webapp\src\main
\resources;c:\dox
laworkspace\wineApp\gwt-webapp\src\main\java"
com.google.gwt.dev.GWTShell -logLe
vel ALL -style OBF -port 8888 -out c:\doxlaworkspace\wineApp\gwt-webapp
\target\g
wt-wine org.doxla.gwt.Wine/Wine.html
[INFO] Exited with code 1
[INFO]
------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 10 seconds
[INFO] Finished at: Tue Mar 13 11:32:35 GMT 2007
[INFO] Final Memory: 6M/10M
[INFO]
------------------------------------------------------------------------
Cheers for your help.
Dan
On Mar 8, 3:03 pm, "Robert \"kebernet\" Cooper" <keber...@gmail.com>
wrote:
> I think this should be correct in svn now.
>