编译Cuba平台报错,错误信息如下

似乎是Java 源码有语法错误或没有找到依赖项。上传完整日志

Configure project :
CUBA Platform Version 7.1-SNAPSHOT

Task :cuba-core:compileJava FAILED
E:\Code\work\Cuba\modules\core\src\com\haulmont\cuba\core\sys\remoting\LocalServiceInvokerImpl.java:30: 错误: 找不到符号
public class LocalServiceInvokerImpl implements LocalServiceInvoker {
^
符号: 类 LocalServiceInvoker
E:\Code\work\Cuba\modules\core\src\com\haulmont\cuba\core\sys\remoting\LocalServiceInvokerImpl.java:43: 错误: 找不到符号
public LocalServiceInvocationResult invoke(LocalServiceInvocation invocation) {
^
符号: 类 LocalServiceInvocation
位置: 类 LocalServiceInvokerImpl
E:\Code\work\Cuba\modules\core\src\com\haulmont\cuba\core\sys\remoting\LocalServiceInvokerImpl.java:43: 错误: 找不到符号
public LocalServiceInvocationResult invoke(LocalServiceInvocation invocation) {
^
符号: 类 LocalServiceInvocationResult
位置: 类 LocalServiceInvokerImpl
E:\Code\work\Cuba\modules\core\src\com\haulmont\cuba\core\sys\singleapp\SingleAppCoreServletListener.java:20: 错误: 找不到符号
import com.haulmont.cuba.core.sys.CubaSingleAppClassLoader;
^
符号: 类 CubaSingleAppClassLoader
位置: 程序包 com.haulmont.cuba.core.sys
E:\Code\work\Cuba\modules\core\src\com\haulmont\cuba\core\sys\persistence\PostgresDbTypeConverter.java:70: 错误: 找不到符号
return new PostgresUUID((UUID) value);
^
符号: 类 PostgresUUID
位置: 类 PostgresDbTypeConverter
E:\Code\work\Cuba\modules\core\src\com\haulmont\cuba\core\sys\remoting\LocalServiceInvokerImpl.java:42: 错误: 方法不会覆盖或实现超类型的方法
@Override
^
E:\Code\work\Cuba\modules\core\src\com\haulmont\cuba\core\sys\remoting\LocalServiceInvokerImpl.java:48: 错误: 找不到符号
LocalServiceInvocationResult result = new LocalServiceInvocationResult();
^
符号: 类 LocalServiceInvocationResult
位置: 类 LocalServiceInvokerImpl
E:\Code\work\Cuba\modules\core\src\com\haulmont\cuba\core\sys\remoting\LocalServiceInvokerImpl.java:48: 错误: 找不到符号
LocalServiceInvocationResult result = new LocalServiceInvocationResult();
^
符号: 类 LocalServiceInvocationResult
位置: 类 LocalServiceInvokerImpl
E:\Code\work\Cuba\modules\core\src\com\haulmont\cuba\core\sys\remoting\RemotingServlet.java:110: 错误: 找不到符号
LocalServiceDirectory.start();
^
符号: 变量 LocalServiceDirectory
位置: 类 RemotingServlet
E:\Code\work\Cuba\modules\core\src\com\haulmont\cuba\core\sys\remoting\ServiceExportHelper.java:29: 错误: 找不到符号
LocalServiceInvoker invoker = new LocalServiceInvokerImpl(service);
^
符号: 类 LocalServiceInvoker
位置: 类 ServiceExportHelper
E:\Code\work\Cuba\modules\core\src\com\haulmont\cuba\core\sys\remoting\ServiceExportHelper.java:30: 错误: 找不到符号
LocalServiceDirectory.registerInvoker(entryName, invoker);
^
符号: 变量 LocalServiceDirectory
位置: 类 ServiceExportHelper
E:\Code\work\Cuba\modules\core\src\com\haulmont\cuba\core\sys\singleapp\SingleAppCoreServletListener.java:85: 错误: 找不到符号
URLClassLoader coreClassLoader = new CubaSingleAppClassLoader(urls, contextClassLoader);
^
符号: 类 CubaSingleAppClassLoader
位置: 类 SingleAppCoreServletListener
注: 某些输入文件使用或覆盖了已过时的 API。
注: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。
注: 某些输入文件使用了未经检查或不安全的操作。
注: 有关详细信息, 请使用 -Xlint:unchecked 重新编译。
12 个错误

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:cuba-core:compileJava’.

Compilation failed; see the compiler error output for details.

  • Try:
    Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Exception is:
    org.gradle.api.tasks.TaskExecutionException: Execution failed for task ‘:cuba-core:compileJava’.
    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:110)
    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:77)
    at org.gradle.api.internal.tasks.execution.OutputDirectoryCreatingTaskExecuter.execute(OutputDirectoryCreatingTaskExecuter.java:51)
    at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:59)
    at org.gradle.api.internal.tasks.execution.ResolveTaskOutputCachingStateExecuter.execute(ResolveTaskOutputCachingStateExecuter.java:54)
    at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:59)
    at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:101)
    at org.gradle.api.internal.tasks.execution.FinalizeInputFilePropertiesTaskExecuter.execute(FinalizeInputFilePropertiesTaskExecuter.java:44)
    at org.gradle.api.internal.tasks.execution.CleanupStaleOutputsExecuter.execute(CleanupStaleOutputsExecuter.java:91)
    at org.gradle.api.internal.tasks.execution.ResolveTaskArtifactStateTaskExecuter.execute(ResolveTaskArtifactStateTaskExecuter.java:62)
    at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:59)
    at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:54)
    at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43)
    at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:34)
    at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.run(EventFiringTaskExecuter.java:51)
    at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:301)
    at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:293)
    at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:175)
    at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:91)
    at org.gradle.internal.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:31)
    at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter.execute(EventFiringTaskExecuter.java:46)
    at org.gradle.execution.taskgraph.LocalTaskInfoExecutor.execute(LocalTaskInfoExecutor.java:42)
    at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareWorkItemExecutor.execute(DefaultTaskExecutionGraph.java:277)
    at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareWorkItemExecutor.execute(DefaultTaskExecutionGraph.java:262)
    at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$ExecutorWorker$1.execute(DefaultTaskPlanExecutor.java:135)
    at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$ExecutorWorker$1.execute(DefaultTaskPlanExecutor.java:130)
    at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$ExecutorWorker.execute(DefaultTaskPlanExecutor.java:200)
    at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$ExecutorWorker.executeWithWork(DefaultTaskPlanExecutor.java:191)
    at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$ExecutorWorker.run(DefaultTaskPlanExecutor.java:130)
    at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63)
    at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:46)
    at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55)
    Caused by: org.gradle.api.internal.tasks.compile.CompilationFailedException: Compilation failed; see the compiler error output for details.
    at org.gradle.api.internal.tasks.compile.JdkJavaCompiler.execute(JdkJavaCompiler.java:52)
    at org.gradle.api.internal.tasks.compile.JdkJavaCompiler.execute(JdkJavaCompiler.java:36)
    at org.gradle.api.internal.tasks.compile.NormalizingJavaCompiler.delegateAndHandleErrors(NormalizingJavaCompiler.java:100)
    at org.gradle.api.internal.tasks.compile.NormalizingJavaCompiler.execute(NormalizingJavaCompiler.java:52)
    at org.gradle.api.internal.tasks.compile.NormalizingJavaCompiler.execute(NormalizingJavaCompiler.java:38)
    at org.gradle.api.internal.tasks.compile.AnnotationProcessorDiscoveringCompiler.execute(AnnotationProcessorDiscoveringCompiler.java:49)
    at org.gradle.api.internal.tasks.compile.AnnotationProcessorDiscoveringCompiler.execute(AnnotationProcessorDiscoveringCompiler.java:35)
    at org.gradle.api.internal.tasks.compile.CleaningJavaCompilerSupport.execute(CleaningJavaCompilerSupport.java:39)
    at org.gradle.api.internal.tasks.compile.incremental.IncrementalCompilerFactory$2.execute(IncrementalCompilerFactory.java:110)
    at org.gradle.api.internal.tasks.compile.incremental.IncrementalCompilerFactory$2.execute(IncrementalCompilerFactory.java:106)
    at org.gradle.api.internal.tasks.compile.incremental.IncrementalResultStoringCompiler.execute(IncrementalResultStoringCompiler.java:59)
    at org.gradle.api.internal.tasks.compile.incremental.IncrementalResultStoringCompiler.execute(IncrementalResultStoringCompiler.java:43)
    at org.gradle.api.tasks.compile.JavaCompile.performCompilation(JavaCompile.java:153)
    at org.gradle.api.tasks.compile.JavaCompile.compile(JavaCompile.java:121)
    at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:73)
    at org.gradle.api.internal.project.taskfactory.IncrementalTaskAction.doExecute(IncrementalTaskAction.java:50)
    at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:39)
    at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:26)
    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$1.run(ExecuteActionsTaskExecuter.java:131)
    at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:301)
    at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:293)
    at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:175)
    at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:91)
    at org.gradle.internal.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:31)
    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:120)
    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:99)
    … 31 more

  • Get more help at https://help.gradle.org

BUILD FAILED in 4s
24 actionable tasks: 3 executed, 21 up-to-date

是否安装了 CUBA-Gradle-Plugin ? 从Gradle 面板看一下是不是所有依赖都同步下来了?

E:\Code\work\cuba-gradle-plugin>gradlew install

BUILD SUCCESSFUL in 3s
7 actionable tasks: 1 executed, 6 up-to-date
E:\Code\work\cuba-gradle-plugin>

我编译的是7.1-SNAPSHOT,感觉程序集不匹配呀

现在是什么错误?

11个帖子被分离到新主题CUBA 平台源码编译问题

是不需要执行一下gradlew deploy,整个运行期都会给组织好,我运行之后同级目录出来一个tomcat目录,看里面的内容应该是完整的

咱们一个帖子讨论一问题,在我分拆出的另一个帖子里讨论