Giter Site home page Giter Site logo

Comments (10)

tbroyer avatar tbroyer commented on May 24, 2024

Can you copy/paste the output of mvn -v and also run gwt:codeserver with -X and look at (or copy/paste here) the lines that start with Arguments: and Classpath:?

from gwt-maven-plugin.

natros avatar natros commented on May 24, 2024

Hi

mvn --version -v
Apache Maven 3.2.5 (12a6b3acb947671f09b81f49094c53f426d8cea1; 2014-12-14T17:29:23+00:00)
Maven home: /usr/local/Cellar/maven32/3.2.5/libexec
Java version: 1.8.0_45, vendor: Oracle Corporation
Java home: /Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "mac os x", version: "10.10.3", arch: "x86_64", family: "mac"
[DEBUG]   (f) project = MavenProject: pt.ipb.gwt.demo:gwt-demo:0.1.0-SNAPSHOT @ /Users/fsousa/Projects/exemplos/gwt-demo/pom.xml
[DEBUG] -- end configuration --
[DEBUG] Arguments: com.google.gwt.dev.codeserver.CodeServer -logLevel DEBUG -workDir gwt/codeserver -allowMissingSrc
[DEBUG] Classpath: 
[WARNING] Error: Could not find or load main class com.google.gwt.dev.codeserver.CodeServer

the project
https://dl.dropboxusercontent.com/u/5176435/gwt-demo.tar.gz

Thanks.

from gwt-maven-plugin.

branflake2267 avatar branflake2267 commented on May 24, 2024

Looks like the codeserver wasn't loaded into the classpath. Adding it as a dependency should do the trick. Maybe something went haywire, adding -U sometimes helps.

from gwt-maven-plugin.

natros avatar natros commented on May 24, 2024

you mean this?

            <plugin>
                <groupId>net.ltgt.gwt.maven</groupId>
                <artifactId>gwt-maven-plugin</artifactId>
                <version>1.0-beta-1</version>
                <extensions>true</extensions>
                <configuration>
                    <moduleName>pt.ipb.gwt.demo.Demo</moduleName>
                    <moduleShortName>demo</moduleShortName>
                </configuration>
                <dependencies>
                    <dependency>
                        <groupId>com.google.gwt</groupId>
                        <artifactId>gwt-codeserver</artifactId>
                        <version>2.7.0</version>
                    </dependency>
                    <dependency>
                        <groupId>com.google.gwt</groupId>
                        <artifactId>gwt-dev</artifactId>
                        <version>2.7.0</version>
                    </dependency>
                </dependencies>
            </plugin>

mvn -U -X gwt:codeserver

---
[DEBUG]   (f) project = MavenProject: pt.ipb.gwt.demo:gwt-demo:0.1.0-SNAPSHOT @ /Users/fsousa/Projects/exemplos/gwt-demo/pom.xml
[DEBUG] -- end configuration --
[DEBUG] Arguments: com.google.gwt.dev.codeserver.CodeServer -logLevel DEBUG -workDir gwt/codeserver -allowMissingSrc
[DEBUG] Classpath: 
[WARNING] Error: Could not find or load main class com.google.gwt.dev.codeserver.CodeServer
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.649 s
[INFO] Finished at: 2015-04-19T08:47:13+01:00
[INFO] Final Memory: 14M/245M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal net.ltgt.gwt.maven:gwt-maven-plugin:1.0-beta-1:codeserver (default-cli) on project gwt-demo: GWT Compiler exited with status 1 -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal net.ltgt.gwt.maven:gwt-maven-plugin:1.0-beta-1:codeserver (default-cli) on project gwt-demo: GWT Compiler exited with status 1
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:216)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:120)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:355)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155)
    at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584)
    at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:216)
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:160)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
    at org.codehaus.classworlds.Launcher.main(Launcher.java:47)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at com.intellij.rt.execution.application.AppMain.main(AppMain.java:140)
Caused by: org.apache.maven.plugin.MojoExecutionException: GWT Compiler exited with status 1
    at net.ltgt.gwt.maven.CodeServerMojo.execute(CodeServerMojo.java:253)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:132)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
    ... 25 more
[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

from gwt-maven-plugin.

tbroyer avatar tbroyer commented on May 24, 2024

Bug reproduced with the sample project. I had only tested with multi-module projects, and your demo project has a single module. Now I know what to do today ;-)
Thanks for the report and the repro case.

from gwt-maven-plugin.

tbroyer avatar tbroyer commented on May 24, 2024

Apparently fixed by f361ab4

Could you try with 1.0-SNAPSHOT?

from gwt-maven-plugin.

natros avatar natros commented on May 24, 2024

It's working.

Thank you!

from gwt-maven-plugin.

crispi avatar crispi commented on May 24, 2024

I pulled down 1.0-rc-9 which looks like it contains your fix - but am still getting that error.


			<plugin>
				<groupId>net.ltgt.gwt.maven</groupId>
				<artifactId>gwt-maven-plugin</artifactId>
				<version>1.0-rc-9</version>
				<extensions>true</extensions>
				<dependencies>
					<dependency>
						<groupId>com.google.gwt</groupId>
						<artifactId>gwt-dev</artifactId>
						<version>2.1.1</version>
					</dependency>
					<dependency>
						<groupId>com.google.gwt</groupId>
						<artifactId>gwt-user</artifactId>
						<version>2.1.1</version>
					</dependency>
				</dependencies>
				<configuration>
					<moduleName>com.autoniq.AutoniqAdmin</moduleName>
					<logLevel>TRACE</logLevel>
					<sourceLevel>1.8</sourceLevel>
				</configuration>
				<executions>
					<execution>
						<id>default-deploy</id>
						<phase>none</phase>
					</execution>
				</executions>
			</plugin>

Unfortunately this is an old codebase, and we can't move beyond 2.1.1, and there is no gwt-codeserver jar for that version.

from gwt-maven-plugin.

tbroyer avatar tbroyer commented on May 24, 2024

@crispi Two things:

  1. adding GWT as dependencies of the plugin is totally useless. This plugin uses project dependencies; Mojo's plugin uses plugin dependencies which might be why you did that.
  2. GWT 2.1.1 (wow, that's 7 years old already!) didn't have superdevmode (that was first added in GWT 2.5, two years later), so you won't be able to use gwt:codeserver, only gwt:devmode. But please note that this plugin is only guaranteed to work with the last two versions of GWT (and 1.0-rc-9 has only been tested with the last 3: 2.8.0, 2.8.1, and 2.8.2); if it doesn't work for you, then you'll have to use Mojo's plugin.

from gwt-maven-plugin.

crispi avatar crispi commented on May 24, 2024

@tbroyer thanks - I figured out that I need to add compile scope to the gwt-dev dependency. Yes - the age of the plugin is a challenge - the whole app is a challenge :) Unfortunately we have to hang on to it while we rewrite the whole thing without GWT and are trying to automate the build process. I've ended up going in the direction of pulling down your plugin and making some custom changes just so we can get this working.

from gwt-maven-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.