How to get maven gwt 2.0 work

EDIT: added part of the output of mvn -X -e commands at the end

My company is developing a GWT application. We have been using maven 2 and GWT 1.7 for quite some time. We recently decided to upgrade to GWT 2.0. We have already updated the eclipse project, and we can successfully launch the application in dev-mode.

We are trying to get an application built using maven. I hope someone can tell me what I'm doing wrong here, since I'm running out of time.

The exact output bit that bothers me is this GWT message is skipped:

[INFO] Copying 119 resources
[INFO] [compiler:compile {execution: default-compile}]
[INFO] Compiling 704 source files to K:\iCura\assessor\target\classes
[INFO] [gwt:compile {execution: default}]
[INFO] using GWT jars for specified version 2.0.0
[INFO] establishing classpath list (scope = compile)
[INFO] com.curasoftware.assessor.Assessor is up to date. GWT compilation skipped
[INFO] [jspc:compile {execution: jspc}]
[INFO] Built File: \index.jsp

I am inserting the gwt-maven-plugin section below. If you need anything else, ask.

        <plugin>
            <groupId>org.codehaus.mojo</groupId>
            <artifactId>gwt-maven-plugin</artifactId>
            <version>1.2</version>
            <configuration> 
                <localWorkers>1</localWorkers>
                <warSourceDirectory>${basedir}/war</warSourceDirectory>
                <logLevel>ALL</logLevel>
                <module>${cura.assessor.module}</module>
                <!-- use style OBF for prod -->
                <style>OBFUSCATED</style>                   
                <extraJvmArgs>-Xmx2048m -Xss1024k</extraJvmArgs>
                <gwtVersion>${version.gwt}</gwtVersion>
                <disableCastChecking>true</disableCastChecking>
                <soyc>false</soyc>
            </configuration>
            <executions>
                <execution>
                    <goals>                         
                        <!-- plugin goals -->
                        <goal>clean</goal>
                        <goal>compile</goal>
                    </goals>
                </execution>
            </executions>
        </plugin>

I ran mvn clean install -X -e and these are some of the results that I get:

[DEBUG] Configuring mojo 'org.codehaus.mojo:gwt-maven-plugin:1.2:compile' -->
[DEBUG]   (f) disableCastChecking = true
[DEBUG]   (f) disableClassMetadata = false
[DEBUG]   (f) draftCompile = false
[DEBUG]   (f) enableAssertions = false
[DEBUG]   (f) extra = K:\iCura\assessor\target\extra
[DEBUG]   (f) extraJvmArgs = -Xmx2048m -Xss1024k
[DEBUG]   (f) force = false
[DEBUG]   (f) gen = K:\iCura\assessor\target\.generated
[DEBUG]   (f) generateDirectory = K:\iCura\assessor\target\generated-sources\gwt
[DEBUG]   (f) gwtVersion = 2.0.0
[DEBUG]   (f) inplace = false
[DEBUG]   (f) localRepository = Repository[local|file://K:/iCura/lib]
[DEBUG]   (f) localWorkers = 1
[DEBUG]   (f) logLevel = ALL
[DEBUG]   (f) module = com.curasoftware.assessor.Assessor
[DEBUG]   (f) project = MavenProject: com.curasoftware.assessor:assessor:3.5.0.0 @ K:\iCura\assessor\pom.xml
[DEBUG]   (f) remoteRepositories = [Repository[gwt-maven|http://gwt-maven.googlecode.com/svn/trunk/mavenrepo/], Repository[main-maven|http://www.ibiblio.org/maven2/], Repository[central|http://repo1.maven.org/maven2]]
[DEBUG]   (f) skip = false
[DEBUG]   (f) sourceDirectory = K:\iCura\assessor\src
[DEBUG]   (f) soyc = false
[DEBUG]   (f) style = OBFUSCATED
[DEBUG]   (f) treeLogger = false
[DEBUG]   (f) validateOnly = false
[DEBUG]   (f) warSourceDirectory = K:\iCura\assessor\war
[DEBUG]   (f) webappDirectory = K:\iCura\assessor\target\assessor
[DEBUG] -- end configuration --

and then this:

[DEBUG] SOYC has been disabled by user
[DEBUG] GWT module com.curasoftware.assessor.Assessor found in K:\iCura\assessor\src
[INFO] com.curasoftware.assessor.Assessor is up to date. GWT compilation skipped
[DEBUG] com.curasoftware.assessor:assessor:war:3.5.0.0 (selected for null)
[DEBUG]   com.curasoftware.dto:dto-gen:jar:3.5.0.0:compile (selected for compile)
...

. "com", , , , .

+3
2

'' module '', gwt.xml.

0

, jira.codehaus.org/browse/MGWT-151, , , , ( , , ). , ​​ 2.1.0, gwt-maven 1.3-SNAPSHOT, .

0

Source: https://habr.com/ru/post/1729038/


All Articles