Tuesday, March 5, 2019

Compilation failure when upgrade the GWT version from 2.7.0 to 2.8.2

Hello,

I'm trying to upgrade my GWT version from 2.7.0 to 2.8.2.

The dependencies are specified as below in the pom.xml

<properties>
 <version.gwt>2.8.2</version.gwt>
  <version.maven.gwt.plugin>2.8.2</version.maven.gwt.plugin>
 </properties>



    <dependencies>

        <!-- Maven-GWT default dependencies -->
        <dependency>
            <groupId>com.google.gwt</groupId>
            <artifactId>gwt-servlet</artifactId>
            <version>${version.gwt}</version>
            <scope>runtime</scope>
        </dependency>
        <dependency>
            <groupId>com.google.gwt</groupId>
            <artifactId>gwt-user</artifactId>
            <version>${version.gwt}</version>
            <scope>provided</scope>
        </dependency>

    </dependencies>

<build>
<plugins>     
<plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>gwt-maven-plugin</artifactId>
                <version>${version.maven.gwt.plugin}</version>
                <executions>
                    <execution>
                        <goals>
                            <goal>compile</goal>
                        </goals>
                    </execution>
                    <execution>
                        <id>test</id>
                        <goals>
                            <goal>test</goal>
                        </goals>
                        <phase>test</phase>
                    </execution>
                </executions>
                <configuration>
                    <testTimeOut>120</testTimeOut>
                    <extraParam>true</extraParam>
                    <hostedWebapp>${project.build.directory}/${project.build.finalName}</hostedWebapp>
                </configuration>
            </plugin>
</plugins>
</build>


When I compile the project using the command "mvn clean package -Dmaven.test.skip=true", the below exception is occurring.

[INFO]    Tracing compile failure path for type 'com.google.gwt.safehtml.shared.UriUtils'
[INFO]       Errors in 'jar:file:/root/.m2/repository/com/google/gwt/gwt-user/2.8.2/gwt-user-2.8.2.jar!/com/google/gwt/safehtml/shared/UriUtils.java'
[INFO]          Line 240: ROOT cannot be resolved or is not a field
[INFO]          Line 235: ROOT cannot be resolved or is not a field
[INFO]          Line 84: ROOT cannot be resolved or is not a field
[INFO]       Checked 1 dependencies for errors.
[INFO]    Tracing compile failure path for type 'com.google.gwt.dom.client.DataTransfer'
[INFO]       Errors in 'jar:file:/root/.m2/repository/com/google/gwt/gwt-user/2.8.2/gwt-user-2.8.2.jar!/com/google/gwt/dom/client/DataTransfer.java'
[INFO]          Line 127: ROOT cannot be resolved or is not a field
[INFO]       Checked 1 dependencies for errors.
[INFO]    Tracing compile failure path for type 'com.google.gwt.user.client.ui.UIObject'
[INFO]       Errors in 'jar:file:/root/.m2/repository/com/google/gwt/gwt-user/2.8.2/gwt-user-2.8.2.jar!/com/google/gwt/user/client/ui/UIObject.java'
[INFO]          Line 657: ROOT cannot be resolved or is not a field
[INFO]          Line 775: ROOT cannot be resolved or is not a field
[INFO]       Checked 1 dependencies for errors.
[INFO]    Tracing compile failure path for type 'com.google.gwt.dom.builder.client.DomStylesBuilder'
[INFO]       Errors in 'jar:file:/root/.m2/repository/com/google/gwt/gwt-user/2.8.2/gwt-user-2.8.2.jar!/com/google/gwt/dom/builder/client/DomStylesBuilder.java'
[INFO]          Line 113: ROOT cannot be resolved or is not a field
[INFO]       Checked 1 dependencies for errors.
[INFO]    Tracing compile failure path for type 'com.google.gwt.dom.client.HeadingElement'
[INFO]       Errors in 'jar:file:/root/.m2/repository/com/google/gwt/gwt-user/2.8.2/gwt-user-2.8.2.jar!/com/google/gwt/dom/client/HeadingElement.java'
[INFO]          Line 91: ROOT cannot be resolved or is not a field
[INFO]       Checked 1 dependencies for errors.
[INFO]    Tracing compile failure path for type 'com.google.gwt.user.client.ui.MultiWordSuggestOracle'
[INFO]       Errors in 'jar:file:/root/.m2/repository/com/google/gwt/gwt-user/2.8.2/gwt-user-2.8.2.jar!/com/google/gwt/user/client/ui/MultiWordSuggestOracle.java'
[INFO]          Line 534: ROOT cannot be resolved or is not a field
[INFO]       Checked 1 dependencies for errors.

The GWT version 2.7.0 is working fine. But when I update to version 2.8.0 or 2.8.2, the above error is occurring.

I'm unable to find the solution . Could you please help me to fix the problem?.


Thanks,
Periyasamy


--
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 google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment