gwt-maven-plugin: Compile fails “with status 1”

后端 未结 2 1118
长发绾君心
长发绾君心 2021-01-21 16:58

I\'ve been working on a GWT project for a while, and I believe since I\'ve added new dependencies, I get the error below.

Failed to execute goal org.codeh

相关标签:
2条回答
  • 2021-01-21 17:29

    I faced similar issue when MVN building a Vaadin project in Cygwyn 32-bit version. But when I switched to Cygwyn 64-bit this issue is resolved.

    [ERROR] Failed to execute goal com.vaadin:vaadin-maven-plugin:7.7.2:compile (default) on project vaadin-app: Command [[
    ...
    [ERROR] ]] failed with status 1
    [ERROR] -> [Help 1]
    ...
    failed with status 1
            at org.codehaus.mojo.gwt.shell.CompileMojo.compile(CompileMojo.java:582)
            at org.codehaus.mojo.gwt.shell.CompileMojo.doExecute(CompileMojo.java:435)
            at org.codehaus.mojo.gwt.shell.AbstractGwtShellMojo.execute(AbstractGwtShellMojo.java:182)
            at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
            at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
    
    0 讨论(0)
  • 2021-01-21 17:41

    I ran mvn package -X and found the following errors

    [INFO] [ERROR] Errors in 'gwtupload/client/DecoratedFileUpload.java' [INFO] [ERROR] Line 371: Rebind result 'gwtupload.client.DecoratedFileUpload.DecoratedFileUploadImpl' cannot be abstract

    So I updated the dependency gwtupload to a newer version which resolved my problem.

    The reason I had ignored this error in a previous attempt, was that mvn package was successful before, using this dependency in this specific version. So I thought this error must have always been there, still leading to a successful package.

    0 讨论(0)
提交回复
热议问题