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

跟風遠走 提交于 2019-12-02 06:57:14

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.

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)
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!