[
http://jira.codehaus.org/browse/MGWT-108?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
nicolas de loof closed MGWT-108.
--------------------------------
Resolution: Won't Fix
> gwt-dev also need to be visible on the classpath for some projects (eg: mine)
> -----------------------------------------------------------------------------
>
> Key: MGWT-108
> URL: http://jira.codehaus.org/browse/MGWT-108
> Project: Maven 2.x GWT Plugin
> Issue Type: Bug
> Affects Versions: 1.1
> Environment: Maven 2/Windows/GWT 1.7
> Reporter: Yons Jongkind
>
> In my project I include/use the following classes from GWT-dev.jar.
> import com.google.gwt.core.ext.TreeLogger;
> import com.google.gwt.core.ext.UnableToCompleteException;
> import com.google.gwt.core.ext.typeinfo.JClassType;
> import com.google.gwt.core.ext.typeinfo.JMethod;
> import com.google.gwt.core.ext.typeinfo.JParameter;
> import com.google.gwt.core.ext.typeinfo.JParameterizedType;
> import com.google.gwt.core.ext.typeinfo.JPrimitiveType;
> My pom looks like:
> <?xml version="1.0" encoding="UTF-8"?>
> <project xmlns="http://maven.apache.org/POM/4.0.0"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> http://maven.apache.org/maven-v4_0_0.xsd">
> <!--
> GWT-Maven example POM without google.webtoolkit.home SET (GWT
> as deps)
> -->
> <modelVersion>4.0.0</modelVersion>
> <groupId>com.habitsoft</groupId>
> <artifactId>kiyaa</artifactId>
> <packaging>jar</packaging>
> <version>1.0-SNAPSHOT</version>
> <name>kiyaa GWT library</name>
>
> <properties>
> <target.dir>target</target.dir>
> <gwt.version>1.7.0</gwt.version>
> </properties>
>
> <dependencies>
> <!-- GWT dependencies (from maven "central" repo) -->
> <dependency>
> <groupId>com.google.gwt</groupId>
> <artifactId>gwt-servlet</artifactId>
> <version>${gwt.version}</version>
> <scope>compile</scope>
> </dependency>
> <dependency>
> <groupId>com.google.gwt</groupId>
> <artifactId>gwt-user</artifactId>
> <version>${gwt.version}</version>
> <scope>provided</scope>
> </dependency>
>
>
> <dependency>
> ...
> </dependency>
> </dependencies>
>
>
> <build>
> <sourceDirectory>src</sourceDirectory>
> <testSourceDirectory>test</testSourceDirectory>
>
> <resources>
> <resource>
> <directory>src</directory>
> <includes>
> <include>**/*.java</include>
> <include>**/*.gwt.xml</include>
> </includes>
> </resource>
> </resources>
>
> <outputDirectory>${basedir}/${target.dir}/classes</outputDirectory>
>
> <testOutputDirectory>${basedir}/${target.dir}/test-classes</testOutputDirectory>
>
> <plugins>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-source-plugin</artifactId>
> <executions>
> <execution>
> <id>attach-sources</id>
> <goals>
> <goal>jar</goal>
> </goals>
> </execution>
> </executions>
> </plugin>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-compiler-plugin</artifactId>
> <configuration>
> <source>1.6</source>
> <target>1.6</target>
> </configuration>
> </plugin>
> <plugin>
> <groupId>org.codehaus.mojo</groupId>
> <artifactId>gwt-maven-plugin</artifactId>
> <version>1.1</version>
> <executions>
> <execution>
> <goals>
> <goal>compile</goal>
> </goals>
> </execution>
> </executions>
> </plugin>
> </plugins>
> </build>
> And my workaround is to add the following dependancies:
> <!-- this allows us to "see" gwt-dev.jar. Though the maven
> docs recommend against it. -->
> <dependency>
> <groupId>com.google.gwt</groupId>
> <artifactId>gwt-dev</artifactId>
> <version>${gwt.version}</version>
> <classifier>windows-libs</classifier>
> <type>zip</type>
> <scope>provided</scope>
> </dependency>
> <dependency>
> <groupId>com.google.gwt</groupId>
> <artifactId>gwt-dev</artifactId>
> <version>${gwt.version}</version>
> <classifier>windows</classifier>
> <scope>provided</scope>
> </dependency>
> A test case could be:
> import com.google.gwt.core.ext.TreeLogger;
> public class TestForGwtDev {
> public void testOnClassPath() {
> String name = TreeLogger.getClass().getName();
> }
> }
--
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