tbroyer / gwt-maven-plugin

Starting fresh on building GWT projects with Maven
https://tbroyer.github.io/gwt-maven-plugin/
Apache License 2.0
167 stars 39 forks source link

java process doesn't start. #158

Closed kspalaiologos closed 1 year ago

kspalaiologos commented 1 year ago

Hello.

I get the following error while building a project with the GWT plugin:

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO] 
[INFO] parent                                                             [pom]
[INFO] web                                                                [war]
[INFO] 
[INFO] -------------------< rocks.palaiologos.bfir:parent >--------------------
[INFO] Building parent 1.0.0-SNAPSHOT                                     [1/2]
[INFO] --------------------------------[ pom ]---------------------------------
[INFO] 
[INFO] ---------------------< rocks.palaiologos.bfir:web >---------------------
[INFO] Building web 1.0.0-SNAPSHOT                                        [2/2]
[INFO] --------------------------------[ war ]---------------------------------
Downloading from central: https://repo.maven.apache.org/maven2/org/codehaus/mojo/gwt-maven-plugin/maven-metadata.xml
Downloaded from central: https://repo.maven.apache.org/maven2/org/codehaus/mojo/gwt-maven-plugin/maven-metadata.xml (1.4 kB at 3.7 kB/s)
[WARNING] The artifact com.google.gwt:gwt-servlet:jar:2.10.0 has been relocated to org.gwtproject:gwt-servlet:jar:2.10.0
[WARNING] The artifact com.google.gwt:gwt-user:jar:2.10.0 has been relocated to org.gwtproject:gwt-user:jar:2.10.0
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ web ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] 
[INFO] --- maven-compiler-plugin:2.5.1:compile (default-compile) @ web ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] --- maven-war-plugin:3.3.2:exploded (default) @ web ---
[INFO] Exploding webapp
[INFO] Assembling webapp [web] in [/home/palaiologos/Desktop/bfir/web/target/web-1.0.0-SNAPSHOT]
[INFO] Processing war project
[INFO] Copying webapp resources [/home/palaiologos/Desktop/bfir/web/src/main/webapp]
[INFO] 
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ web ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/palaiologos/Desktop/bfir/web/src/test/resources
[INFO] 
[INFO] --- maven-compiler-plugin:2.5.1:testCompile (default-testCompile) @ web ---
[INFO] No sources to compile
[INFO] 
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ web ---
[INFO] No tests to run.
[INFO] 
[INFO] --- gwt-maven-plugin:2.10.0:compile (default) @ web ---
[INFO] auto discovered modules [rocks.palaiologos.bfir.parent]
[INFO] Compiling module rocks.palaiologos.bfir.parent
[INFO]    Ignored 80 units with compilation errors in first pass.
[INFO] Compile with -strict or with -logLevel set to TRACE or DEBUG to see all errors.
[INFO]    Finding entry point classes
[INFO]       [ERROR] Hint: Your source appears not to live underneath a subpackage called 'client'; no problem, but you'll need to use the <source> directive in your module to make it accessible
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for parent 1.0.0-SNAPSHOT:
[INFO] 
[INFO] parent ............................................. SUCCESS [  0.002 s]
[INFO] web ................................................ FAILURE [ 10.334 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  10.406 s
[INFO] Finished at: 2023-05-16T14:54:04+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:gwt-maven-plugin:2.10.0:compile (default) on project web: Command failed with status 1:
[ERROR] /bin/sh -c '/home/palaiologos/.jdks/openjdk-19.0.1/bin/java' '-Xmx512m' 'com.google.gwt.dev.Compiler' '-logLevel' 'INFO' '-war' '/home/palaiologos/Desktop/bfir/web/target/web-1.0.0-SNAPSHOT' '-localWorkers' '16' '-draftCompile' '-XfragmentCount' '-1' '-sourceLevel' 'auto' '-gen' '/home/palaiologos/Desktop/bfir/web/target/.generated' 'rocks.palaiologos.bfir.parent'
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <args> -rf :web

Process finished with exit code 1

What could it be caused by?

tbroyer commented 1 year ago

You're using "the other plugin"

Try re-running your Maven command with -Dgwt.compiler.strict or -Dgwt.logLevel=TRACE (or DEBUG) as suggested by the error to understand why those 80 files are in error.

You can ask for help in the Google Group or Gitter chatroom