[
http://jira.codehaus.org/browse/MGWT-49?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=174265#action_174265
]
nicolas de loof commented on MGWT-49:
-------------------------------------
The change was required to bypass command line length limitation on Windows.
Running in a script breaks where dependencies introduce classpath more than
~4000 chars
The fix is to run as a forked process, with no shell to parse the command. This
seems to have ugly side-effect on Unix-based systems.
last-chance attempt : use the "classic" plexus Commandline with a Shell on
unixes and the "custom" no-shell on Windows.
> 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