2

我在构建我的项目时遇到了麻烦。执行此操作时,我在 2.8.0 版中的 gwt-maven-plugin 上遇到错误。更多信息:

  • 阿帕奇 Maven 3.3.9,
  • openjdk 版本“1.8.0_131”
  • Ubuntu 16.10

这可能导致什么?

日志:

[ERROR] Failed to execute goal org.codehaus.mojo:gwt-maven-plugin:2.8.0:compile (compile) on project gwt-editor: Command [[
[ERROR] /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/target/gwt-editor-4.3.0' '-localWorkers' '2' '-draftCompile' '-XfragmentCount' '-1' '-sourceLevel' 'auto' '-style' 'PRETTY' '-gen' '/home/lob/Downloads/zanata-platform-platform-4.3.0/server/gwt-editor/target/.generated' 'org.zanata.webtrans.Application'
[ERROR] ]] failed with status 1
[ERROR] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.mojo:gwt-maven-plugin:2.8.0:compile (compile) on project gwt-editor: Command [[
/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/target/gwt-editor-4.3.0' '-localWorkers' '2' '-draftCompile' '-XfragmentCount' '-1' '-sourceLevel' 'auto' '-style' 'PRETTY' '-gen' '/home/lob/Downloads/zanata-platform-platform-4.3.0/server/gwt-editor/target/.generated' 'org.zanata.webtrans.Application'
]] failed with status 1
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
    at io.takari.maven.builder.smart.SmartBuilderImpl.buildProject(SmartBuilderImpl.java:334)
    at io.takari.maven.builder.smart.SmartBuilderImpl$ProjectBuildTask.run(SmartBuilderImpl.java:104)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:748)
Caused by: org.apache.maven.plugin.MojoExecutionException: Command [[
/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/target/gwt-editor-4.3.0' '-localWorkers' '2' '-draftCompile' '-XfragmentCount' '-1' '-sourceLevel' 'auto' '-style' 'PRETTY' '-gen' '/home/lob/Downloads/zanata-platform-platform-4.3.0/server/gwt-editor/target/.generated' 'org.zanata.webtrans.Application'
]] failed with status 1
    at org.codehaus.mojo.gwt.shell.CompileMojo.compile(CompileMojo.java:520)
    at org.codehaus.mojo.gwt.shell.CompileMojo.doExecute(CompileMojo.java:387)
    at org.codehaus.mojo.gwt.shell.AbstractGwtShellMojo.execute(AbstractGwtShellMojo.java:162)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
    ... 10 more
Caused by: org.codehaus.mojo.gwt.shell.JavaCommandException: Command [[
/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/target/gwt-editor-4.3.0' '-localWorkers' '2' '-draftCompile' '-XfragmentCount' '-1' '-sourceLevel' 'auto' '-style' 'PRETTY' '-gen' '/home/lob/Downloads/zanata-platform-platform-4.3.0/server/gwt-editor/target/.generated' 'org.zanata.webtrans.Application'
]] failed with status 1
    at org.codehaus.mojo.gwt.shell.JavaCommand.execute(JavaCommand.java:330)
    at org.codehaus.mojo.gwt.shell.CompileMojo.compile(CompileMojo.java:516)
    ... 14 more
[ERROR] 
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :gwt-editor

插件配置:

  <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>
4

0 回答 0