saiddfhi / gwt-maven

Automatically exported from code.google.com/p/gwt-maven
0 stars 0 forks source link

Process running compile.cmd exits with code 1 for no reason #130

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Is this Maven 1 or Maven 2?
Maven 2
What steps will reproduce the problem?
1. Download and unpack the shine reference project
(http://code.google.com/p/shine-reference/) under Windows XP platform. 
2. Run gwt:compile
3. Get an error message.

What is the expected output? What do you see instead?
I get an exception:

 [Eugene] C:\dev\shine-reference\shine-reference-gwt$ "E:\Program
Files\Java\jdk1.6.0_06\jre\bin\java" -Xmx512m -cp "c:\
dev\gwt-windows-1.4.62";"c:\dev\gwt-windows-1.4.62\gwt-user.jar";"c:\dev\gwt-win
dows-1.4.62\gwt-dev-windows.jar";"C:\dev
\shine-reference\shine-reference-gwt\src\main\java";"C:\dev\shine-reference\shin
e-reference-gwt\src\main\resources";"C:\
dev\shine-reference\shine-reference-gwt\classes";"C:\dev\shine-reference\shine-r
eference-gwt\target\classes";"c:\.m2repo
\log4j\log4j\1.2.9\log4j-1.2.9.jar";"c:\.m2repo\commons-logging\commons-logging\
1.1\commons-logging-1.1.jar";"c:\.m2repo
\logkit\logkit\1.0.1\logkit-1.0.1.jar";"c:\.m2repo\avalon-framework\avalon-frame
work\4.1.3\avalon-framework-4.1.3.jar";"
c:\.m2repo\javax\servlet\servlet-api\2.3\servlet-api-2.3.jar";"c:\.m2repo\org\sp
ringframework\spring\2.5.1\spring-2.5.1.
jar";"c:\.m2repo\org\springframework\spring-webmvc\2.5.1\spring-webmvc-2.5.1.jar
";"c:\.m2repo\org\springframework\spring
-beans\2.5.1\spring-beans-2.5.1.jar";"c:\.m2repo\org\springframework\spring-core
\2.5.1\spring-core-2.5.1.jar";"c:\.m2rep
o\org\springframework\spring-context\2.5.1\spring-context-2.5.1.jar";"c:\.m2repo
\aopalliance\aopalliance\1.0\aopalliance
-1.0.jar";"c:\.m2repo\org\springframework\spring-context-support\2.5.1\spring-co
ntext-support-2.5.1.jar";"c:\.m2repo\org
\springframework\spring-web\2.5.1\spring-web-2.5.1.jar";"c:\.m2repo\com\shinetec
h\shine-reference-common\1.2\shine-refer
ence-common-1.2.jar";"c:\.m2repo\com\shinetech\shine-reference-common\1.2\shine-
reference-common-1.2-sources.jar";"c:\.m
2repo\com\google\gwt\gwt-user\1.4.62\gwt-user-1.4.62.jar"; 
com.google.gwt.dev.GWTCompiler  -gen "C:\dev\shine-reference
\shine-reference-gwt\target\.generated" -logLevel ERROR -style OBF -out
C:\dev\shine-reference\shine-reference-gwt\targe
t\shinetech-gwt-sample com.shinetech.SampleApp
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Exception attempting compile.

Embedded error: Compilation failed.
[INFO] ------------------------------------------------------------------------
[DEBUG] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Exception
attempting compile.
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycl
eExecutor.java:583)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(Defaul
tLifecycleExecutor.java:512)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycle
Executor.java:482)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures
(DefaultLifecycleExecutor.jav
a:330)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultL
ifecycleExecutor.java:291)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExec
utor.java:142)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav
a:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoExecutionException: Exception
attempting compile.
        at com.totsp.mavenplugin.gwt.CompileMojo.execute(CompileMojo.java:60)
        at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.ja
va:451)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycl
eExecutor.java:558)
        ... 16 more
Caused by: org.apache.maven.plugin.MojoFailureException: Compilation failed.
        at com.totsp.mavenplugin.gwt.CompileMojo.execute(CompileMojo.java:57)
        ... 18 more

What version of the product are you using? On what operating system?

plugin version 2.0-beta19, gwt version 1.4.62 on Windows XP and Linux

Please provide any additional information below.

Compiling project with gwt:compile works fine on Linux, but on Windows
platform it causes an error for some reason. A process running compile.cmd
script is returning exit code 1 (see ProcessWatcher.waitFor(...)), though
compilation seem to accomplish when the compilation script is being run
manually.

Original issue reported on code.google.com by evgenymu...@gmail.com on 31 Jul 2008 at 4:17

GoogleCodeExporter commented 9 years ago
I can't reproduce this in all the samples I have tried.  I haven't tried this
specific example, but I have tried many other projects and all seem to work as 
expected. 

Original comment by charlie....@gmail.com on 16 Sep 2008 at 1:20