I tried using the Maven Plugin for GWT (
https://tbroyer.github.io/gwt-maven-plugin/) with an existing project that
I just upgraded to use GWT 2.9.0.
When I try running mvn run:codeserver, I get this:
[DEBUG] Arguments: com.google.gwt.dev.codeserver.CodeServer -workDir
/Users/rflores/workspace/commonui/client-appmark-admin/target/gwt/codeserver
-allowMissingSrc -src
/Users/rflores/workspace/commonui/client-appmark-admin/src/main/java
com.microfocus.am.Adminui
[WARNING] Error: Could not find or load main class
com.google.gwt.dev.codeserver.CodeServer
[WARNING] Caused by: java.lang.ClassNotFoundException:
com.google.gwt.dev.codeserver.CodeServer
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 4.358 s
[INFO] Finished at: 2020-05-14T17:41:51-06:00
[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal
net.ltgt.gwt.maven:gwt-maven-plugin:1.0.0:codeserver (default-cli) on
project commonui-appmark-admin: GWT exited with status 1 -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
goal net.ltgt.gwt.maven:gwt-maven-plugin:1.0.0:codeserver (default-cli) on
project commonui-appmark-admin: GWT exited with status 1
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (
MojoExecutor.java:215)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (
MojoExecutor.java:156)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (
MojoExecutor.java:148)
at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (
LifecycleModuleBuilder.java:117)
at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (
LifecycleModuleBuilder.java:81)
at
org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build
(SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (
LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (
NativeMethodAccessorImpl.java:62)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (
DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:567)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (
Launcher.java:282)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (
Launcher.java:225)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (
Launcher.java:406)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (
Launcher.java:347)
Caused by: org.apache.maven.plugin.MojoExecutionException: GWT exited with
status 1
at net.ltgt.gwt.maven.CommandLine.execute (CommandLine.java:73)
at net.ltgt.gwt.maven.AbstractDevModeMojo.execute (
AbstractDevModeMojo.java:272)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (
DefaultBuildPluginManager.java:137)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (
MojoExecutor.java:210)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (
MojoExecutor.java:156)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (
MojoExecutor.java:148)
at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (
LifecycleModuleBuilder.java:117)
at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (
LifecycleModuleBuilder.java:81)
at
org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build
(SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (
LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (
NativeMethodAccessorImpl.java:62)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (
DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:567)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (
Launcher.java:282)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (
Launcher.java:225)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (
Launcher.java:406)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (
Launcher.java:347)
[ERROR]
[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
Does anybody know why?
I then tried to create a brand new project to see if I was missing
something in my configuration by looking at the project created from the
archetype. I did this:
$ mvn archetype:generate -DarchetypeGroupId=net.ltgt.gwt.archetypes
-DarchetypeVersion=1.0.0 -DarchetypeArtifactId=modular-webapp
and I get this Error:
[WARNING] Error reading archetype catalog
http://repo.maven.apache.org/maven2
org.apache.maven.wagon.TransferFailedException: Transfer failed for
http://repo.maven.apache.org/maven2 501 HTTPS Required
In the case of my project, I can build it fine, so this isn't stopping me
since I run SuperDevMode from IntelliJ (running fine too), but was
wondering why I can't do it from the CLI with maven + plugin.
--
You received this message because you are subscribed to the Google Groups "GWT
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/google-web-toolkit/304aa5a5-f2db-49a5-b733-66db7d5e04c9%40googlegroups.com.