Java Maven插件gwt Maven插件错误目标编译

Java Maven插件gwt Maven插件错误目标编译,java,maven,gwt,gwt-maven-plugin,Java,Maven,Gwt,Gwt Maven Plugin,我在构建我的项目时遇到了困难。在执行此操作时,我在2.8.0版的gwt maven插件上遇到了一个错误。更多资讯: ApacheMaven 3.3.9 openjdk版本“1.8.0131” Ubuntu 16.10 这可能是什么原因 日志: [ERROR]无法在project gwt editor:命令上执行目标org.codehaus.mojo:gwt maven插件:2.8.0:compile(compile)[[ [错误]/bin/sh-c'/usr/lib/jvm/java-8-o

我在构建我的项目时遇到了困难。在执行此操作时,我在2.8.0版的gwt maven插件上遇到了一个错误。更多资讯:

  • ApacheMaven 3.3.9
  • openjdk版本“1.8.0131”
  • Ubuntu 16.10
这可能是什么原因

日志:

[ERROR]无法在project gwt editor:命令上执行目标org.codehaus.mojo:gwt maven插件:2.8.0:compile(compile)[[
[错误]/bin/sh-c'/usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java'-Xmx1024M'-Xss1024k'-com.google.gwt.dev.Compiler'-logLevel'-INFO'-war'/home/lob/Downloads/zanata-platform-platform-4.3.0/server/gwt-editor-4.3'-localWorkers'-2'-draftCompile'-XfragmentCount'-1'-sourceLevel'-auto'-style'-style'-PRETTY'-gen'-home'-gen'-/lob/Downloads/zanata-platform-platform-4.3.0/server/gwt editor/target/。生成的“org.zanata.webtrans.Application”
[错误]]]失败,状态为1
[错误]->[帮助1]
org.apache.maven.lifecycle.LifecycleExecutionException:未能在project gwt editor:命令上执行目标org.codehaus.mojo:gwt maven插件:2.8.0:compile(compile)[[
/bin/sh-c'/usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java'-Xmx1024M'-Xss1024k'-com.google.gwt.dev.Compiler'-logLevel'-INFO'-war'/home/lob/Downloads/zanata-platform-platform-4.3.0/server/gwt-editor-4.3.0'-localWorkers'-2'-draftCompile'-XfragmentCount'-1'-sourceLevel'-auto'-style'-style'-PRETTY'-gen'-home'-l'-ob/Downloads/zanata-platform-platform-4.3.0/server/gwt editor/target/。生成的“”org.zanata.webtrans.Application'
]]失败,状态为1
位于org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)
位于org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
位于org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
位于org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
位于io.takari.maven.builder.smart.SmartBuilderImpl.buildProject(SmartBuilderImpl.java:334)
在io.takari.maven.builder.smart.SmartBuilderImpl$ProjectBuildTask.run(SmartBuilderImpl.java:104)上
位于java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
在java.util.concurrent.FutureTask.run(FutureTask.java:266)处
位于java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
位于java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
运行(Thread.java:748)
原因:org.apache.maven.plugin.MojoExecutionException:命令[[
/bin/sh-c'/usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java'-Xmx1024M'-Xss1024k'-com.google.gwt.dev.Compiler'-logLevel'-INFO'-war'/home/lob/Downloads/zanata-platform-platform-4.3.0/server/gwt-editor-4.3.0'-localWorkers'-2'-draftCompile'-XfragmentCount'-1'-sourceLevel'-auto'-style'-style'-PRETTY'-gen'-home'-l'-ob/Downloads/zanata-platform-platform-4.3.0/server/gwt editor/target/。生成的“”org.zanata.webtrans.Application'
]]失败,状态为1
位于org.codehaus.mojo.gwt.shell.CompileMojo.compile(CompileMojo.java:520)
位于org.codehaus.mojo.gwt.shell.CompileMojo.doExecute(CompileMojo.java:387)
位于org.codehaus.mojo.gwt.shell.AbstractGwtShellMojo.execute(AbstractGwtShellMojo.java:162)
位于org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
位于org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
... 10多
原因:org.codehaus.mojo.gwt.shell.JavaCommandException:命令[[
/bin/sh-c'/usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java'-Xmx1024M'-Xss1024k'-com.google.gwt.dev.Compiler'-logLevel'-INFO'-war'/home/lob/Downloads/zanata-platform-platform-4.3.0/server/gwt-editor-4.3.0'-localWorkers'-2'-draftCompile'-XfragmentCount'-1'-sourceLevel'-auto'-style'-style'-PRETTY'-gen'-home'-l'-ob/Downloads/zanata-platform-platform-4.3.0/server/gwt editor/target/。生成的“”org.zanata.webtrans.Application'
]]失败,状态为1
位于org.codehaus.mojo.gwt.shell.JavaCommand.execute(JavaCommand.java:330)
位于org.codehaus.mojo.gwt.shell.CompileMojo.compile(CompileMojo.java:516)
... 14多
[错误]
[错误]
[错误]有关错误和可能的解决方案的更多信息,请阅读以下文章:
[错误][帮助1]http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[错误]
[错误]纠正问题后,可以使用命令恢复生成
[错误]mvn-rf:gwt编辑器
插件配置:

  <plugin>
    <groupId>org.codehaus.mojo</groupId>
    <artifactId>gwt-maven-plugin</artifactId>
    <executions>
      <execution>
        <id>generate-i18n</id>
        <goals>
          <goal>compile</goal>
        </goals>
        <!--here we bind it to generate-test-resource because we want it to happen before the real compile(prepare-package) and able to do its job -->
        <phase>generate-test-resources</phase>
        <configuration>
          <module>org.zanata.webtrans.ApplicationI18n</module>
          <extra>${project.build.directory}/gwt-extra</extra>
          <extraParam>true</extraParam>
        </configuration>
      </execution>
    </executions>
  </plugin>

org.codehaus.mojo
GWTMaven插件
生成-i18n
编译
生成测试资源
org.zanata.webtrans.application18n
${project.build.directory}/gwtextra
真的

这些是最令人恼火的。。。是否尝试启用maven调试?是否可以手动运行异常中的cmd
/bin/sh-c'/usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java…
?您是否也可以添加构建早期的日志?通常情况下,它会显示导致编译器在失败后退出的实际错误。您可以手动启动该命令并查看发生了什么情况吗?它可能仍然返回1,但您可能会在控制台中看到构建日志中未显示的其他输出
  <plugin>
    <groupId>org.codehaus.mojo</groupId>
    <artifactId>gwt-maven-plugin</artifactId>
    <executions>
      <execution>
        <id>generate-i18n</id>
        <goals>
          <goal>compile</goal>
        </goals>
        <!--here we bind it to generate-test-resource because we want it to happen before the real compile(prepare-package) and able to do its job -->
        <phase>generate-test-resources</phase>
        <configuration>
          <module>org.zanata.webtrans.ApplicationI18n</module>
          <extra>${project.build.directory}/gwt-extra</extra>
          <extraParam>true</extraParam>
        </configuration>
      </execution>
    </executions>
  </plugin>