gpt4 book ai didi

java - 无法再编译 Vaadin 项目(无法执行 objective-c om.vaadin :vaadin-maven-plugin )

转载 作者:行者123 更新时间:2023-11-30 01:58:42 25 4
gpt4 key购买 nike

我有一个 Vaadin 8.6.1 项目,到目前为止一直没有任何问题,突然编译失败:代码或 pom 中的任何内容都没有更改

我运行的命令是 clean package -e ,但即使我启动 jetty:run 问题也是一样的

这是错误堆栈跟踪

[INFO] Compiling module AppWidgetset
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 02:13 min
[INFO] Finished at: 2018-11-30T12:03:26+01:00
[INFO] Final Memory: 80M/732M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.vaadin:vaadin-maven-plugin:8.6.1:compile (default) on project eglobal: Command [[
[ERROR] C:\Program Files\Java\jdk1.8.0_161\jre\bin\java -Xmx1G -Dgwt.persistentunitcache=false com.google.gwt.dev.Compiler -logLevel INFO -style OBF -war C:\Sviluppo\workspaceIntelliJ\eglobalMaven\target\classes\VAADIN\widgetsets -localWorkers 4 -failOnError -XfragmentCount -1 -sourceLevel auto -gen C:\Sviluppo\workspaceIntelliJ\eglobalMaven\target\.generated AppWidgetset
[ERROR] ]] failed with status 1
[ERROR] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.vaadin:vaadin-maven-plugin:8.6.1:compile (default) on project eglobal: Command [[
C:\Program Files\Java\jdk1.8.0_161\jre\bin\java -Xmx1G -Dgwt.persistentunitcache=false com.google.gwt.dev.Compiler -logLevel INFO -style OBF -war C:\Sviluppo\workspaceIntelliJ\eglobalMaven\target\classes\VAADIN\widgetsets -localWorkers 4 -failOnError -XfragmentCount -1 -sourceLevel auto -gen C:\Sviluppo\workspaceIntelliJ\eglobalMaven\target\.generated AppWidgetset
]] 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 org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
at org.codehaus.classworlds.Launcher.main(Launcher.java:47)
Caused by: org.apache.maven.plugin.MojoExecutionException: Command [[
C:\Program Files\Java\jdk1.8.0_161\jre\bin\java -Xmx1G -Dgwt.persistentunitcache=false com.google.gwt.dev.Compiler -logLevel INFO -style OBF -war C:\Sviluppo\workspaceIntelliJ\eglobalMaven\target\classes\VAADIN\widgetsets -localWorkers 4 -failOnError -XfragmentCount -1 -sourceLevel auto -gen C:\Sviluppo\workspaceIntelliJ\eglobalMaven\target\.generated AppWidgetset
]] 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:134)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
... 21 more
Caused by: org.codehaus.mojo.gwt.shell.JavaCommandException: Command [[
C:\Program Files\Java\jdk1.8.0_161\jre\bin\java -Xmx1G -Dgwt.persistentunitcache=false com.google.gwt.dev.Compiler -logLevel INFO -style OBF -war C:\Sviluppo\workspaceIntelliJ\eglobalMaven\target\classes\VAADIN\widgetsets -localWorkers 4 -failOnError -XfragmentCount -1 -sourceLevel auto -gen C:\Sviluppo\workspaceIntelliJ\eglobalMaven\target\.generated AppWidgetset
]] 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:578)
... 25 more
[ERROR]
[ERROR]

但是如果我尝试启动 mvn vaadin:update-widgetset ,它不会出现错误。

这些是我的 pom 的相关部分:

<properties>
<vaadin.version>8.6.1</vaadin.version>
<vaadin.plugin.version>8.6.1</vaadin.plugin.version>
<jetty.plugin.version>9.4.11.v20180605</jetty.plugin.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
</properties>

这是vaadin插件

<plugin>
<groupId>com.vaadin</groupId>

<artifactId>vaadin-maven-plugin</artifactId>
<version>${vaadin.plugin.version}</version>
<executions>
<execution>
<goals>
<goal>update-theme</goal>
<goal>update-widgetset</goal>
<goal>compile</goal>
<goal>compile-theme</goal>

</goals>
</execution>
</executions>
<configuration>
<gwtSdkFirstInClasspath>true</gwtSdkFirstInClasspath>
</configuration>
</plugin>

我可以做什么来解决这个问题?我找不到解决这个问题的方法。我正在使用 IntelliJ Idea x64、Java 1.8、Windows 7

最佳答案

经过多次尝试,我发现问题出在我们公司的代理上。

将我的笔记本电脑与公司网络断开连接,并将其连接到外部,直接连接到互联网后,我可以毫无问题地进行编译。

我已与 Vaadin 支持人员交谈,他们猜测许可证正在尝试联系 Vaadin 服务器以验证其是否有效,但最终出现此错误,该错误并未涉及此失败的连接。

事实上,成功编译后,我能够再次编译,甚至在代理后面。

关于java - 无法再编译 Vaadin 项目(无法执行 objective-c om.vaadin :vaadin-maven-plugin ),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53556552/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com