[
http://jira.codehaus.org/browse/MGWT-49?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=174219#action_174219
]
Max Matveev commented on MGWT-49:
---------------------------------
BTW
Compilation on Linux fails when <gwtVersion> is not specified with following
exception:
java.lang.NullPointerException
at
org.codehaus.mojo.gwt.AbstractGwtMojo.detectGwtVersion(AbstractGwtMojo.java:278)
at
org.codehaus.mojo.gwt.AbstractGwtMojo.getGwtRuntime(AbstractGwtMojo.java:245)
at
org.codehaus.mojo.gwt.shell.AbstractGwtShellMojo.execute(AbstractGwtShellMojo.java:192)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:499)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:478)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.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.java: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)
> Build fails on Mac with exception: [ERROR] Exception in thread "main"
> java.lang.NoClassDefFoundError: com/google/gwt/dev/Compiler
> ---------------------------------------------------------------------------------------------------------------------------------
>
> Key: MGWT-49
> URL: http://jira.codehaus.org/browse/MGWT-49
> Project: Maven 2.x GWT Plugin
> Issue Type: Bug
> Affects Versions: 1.1
> Environment: Mac OS 10.5.6, Maven 2.0.9, GWT 1.5.3 and 1.6.4
> Reporter: Max Matveev
> Priority: Blocker
>
> With current version of plugin GWT compilation fails with error
> [ERROR] Exception in thread "main" java.lang.NoClassDefFoundError:
> com/google/gwt/dev/Compiler
> It does not depend on project (tried to create new) and GWT version (tried
> 1.5.3 and 1.6.4)
> Worked well with version gwt-maven-plugin-1.1-20090312.110417-34
> Please let me know how i can provide more details.
> sample POM fragment:
> ...
> <dependencies>
> <dependency>
> <groupId>com.google.gwt</groupId>
> <artifactId>gwt-servlet</artifactId>
> <version>${gwtVersion}</version>
> <scope>runtime</scope>
> </dependency>
> <dependency>
> <groupId>com.google.gwt</groupId>
> <artifactId>gwt-user</artifactId>
> <version>${gwtVersion}</version>
> <scope>provided</scope>
> </dependency>
> </dependencies>
> <properties>
> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
> <gwtVersion>1.6.4</gwtVersion>
> <javaVersion>1.5</javaVersion>
> </properties>
> <build>
> <defaultGoal>install</defaultGoal>
> <pluginManagement>
> <plugins>
> <plugin>
> <groupId>org.codehaus.mojo</groupId>
> <artifactId>gwt-maven-plugin</artifactId>
> <version>1.1-SNAPSHOT</version>
> <configuration>
> <logLevel>ERROR</logLevel>
> <style>OBF</style>
> <extraJvmArgs>-Xmx512m</extraJvmArgs>
> </configuration>
> <executions>
> <execution>
> <goals>
> <goal>compile</goal>
> </goals>
> </execution>
> </executions>
> </plugin>
> </plugins>
> </build>
> ...
> Plugin repositories are set up to Codehaus snapshots repo.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email