Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-83397

Compile fails when building 7.1.x-private bundle

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: No Longer Reproducible
    • Affects Version/s: 7.1.X
    • Fix Version/s: None
    • Labels:
      None
    • Fix Priority:
      4

      Description

      Steps to reprudce:

      1. Upgrade 71p portal source to the latest.
      2. Execute command "ant -f build-working-dir.xml checkout-portal"
      3. Execute command "ant all"

      Expected Result:
      Build bundle successfully.

      Actual Result:
      Compile fails.

           [exec] :apps:headless-apio:content-space:content-space-apio-api:classes
           [exec] /home/liferay/project/portal-ee/modules/apps/headless-apio/content-spac                                                                                                          e/content-space-apio-impl/src/main/java/com/liferay/content/space/apio/internal/arc                                                                                                          hitect/resource/ContentSpaceCollectionResource.java:24: error: package com.liferay.                                                                                                          content.space.apio.architect.util does not exist
           [exec] import com.liferay.content.space.apio.architect.util.ContentSpaceUtil;
           [exec]                                                     ^
           [exec] /home/liferay/project/portal-ee/modules/apps/headless-apio/content-spac                                                                                                          e/content-space-apio-impl/src/main/java/com/liferay/content/space/apio/internal/arc                                                                                                          hitect/resource/ContentSpaceCollectionResource.java:92: error: cannot find symbol
           [exec]                     "name", ContentSpaceUtil::getName
           [exec]                             ^
           [exec]   symbol:   variable ContentSpaceUtil
           [exec]   location: class ContentSpaceCollectionResource
           [exec] 2 errors
           [exec] :apps:headless-apio:content-space:content-space-apio-api:jar
           [exec] :apps:headless-apio:content-space:content-space-apio-impl:compileJava F                                                                                                          AILED
           [exec] Parsed /META-INF/resources/wiki/css/main.scss in 1308ms
           [exec] Finished building to format: amd
           [exec] Finished 'build'...
           [exec]
           [exec] FAILURE: Build failed with an exception.
           [exec]
           [exec] * What went wrong:
           [exec] Execution failed for task ':apps:headless-apio:content-space:content-sp                                                                                                          ace-apio-impl:compileJava'.
           [exec] > Compilation failed; see the compiler error output for details.
           [exec]
           [exec] * Try:
           [exec] Run with --info or --debug option to get more log output.
           [exec]
           [exec] * Exception is:
           [exec] org.gradle.api.tasks.TaskExecutionException: Execution failed for task                                                                                                           ':apps:headless-apio:content-space:content-space-apio-impl:compileJava'.
           [exec]     at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecut                                                                                                          er.executeActions(ExecuteActionsTaskExecuter.java:84)
           [exec]     at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecut                                                                                                          er.execute(ExecuteActionsTaskExecuter.java:55)
           [exec]     at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter                                                                                                          .execute(SkipUpToDateTaskExecuter.java:62)
           [exec]     at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.e                                                                                                          xecute(ValidatingTaskExecuter.java:58)
           [exec]     at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTask                                                                                                          Executer.execute(SkipEmptySourceFilesTaskExecuter.java:88)
           [exec]     at org.gradle.api.internal.tasks.execution.ResolveTaskArtifactState                                                                                                          TaskExecuter.execute(ResolveTaskArtifactStateTaskExecuter.java:46)
           [exec]     at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExe                                                                                                          cuter.execute(SkipTaskWithNoActionsExecuter.java:51)
           [exec]     at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.e                                                                                                          xecute(SkipOnlyIfTaskExecuter.java:54)
           [exec]     at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExe                                                                                                          cuter.execute(ExecuteAtMostOnceTaskExecuter.java:43)
           [exec]     at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecut                                                                                                          er.execute(CatchExceptionTaskExecuter.java:34)
           [exec]     at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFir                                                                                                          ingTaskWorker$1.execute(DefaultTaskGraphExecuter.java:236)
           [exec]     at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFir                                                                                                          ingTaskWorker$1.execute(DefaultTaskGraphExecuter.java:228)
           [exec]     at org.gradle.internal.Transformers$4.transform(Transformers.java:1                                                                                                          69)
           [exec]     at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(D                                                                                                          efaultBuildOperationExecutor.java:106)
           [exec]     at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(D                                                                                                          efaultBuildOperationExecutor.java:61)
           [exec]     at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFir                                                                                                          ingTaskWorker.execute(DefaultTaskGraphExecuter.java:228)
           [exec]     at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFir                                                                                                          ingTaskWorker.execute(DefaultTaskGraphExecuter.java:215)
           [exec]     at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExec                                                                                                          utorWorker.processTask(AbstractTaskPlanExecutor.java:77)
           [exec]     at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExec                                                                                                          utorWorker.run(AbstractTaskPlanExecutor.java:58)
           [exec]     at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFail                                                                                                          ures.onExecute(ExecutorPolicy.java:54)
           [exec]     at org.gradle.internal.concurrent.StoppableExecutorImpl$1.run(Stopp                                                                                                          ableExecutorImpl.java:40)
           [exec] Caused by: org.gradle.api.internal.tasks.compile.CompilationFailedExcep                                                                                                          tion: Compilation failed; see the compiler error output for details.
           [exec]     at org.gradle.api.internal.tasks.compile.JdkJavaCompiler.execute(Jd                                                                                                          kJavaCompiler.java:48)
           [exec]     at org.gradle.api.internal.tasks.compile.JdkJavaCompiler.execute(Jd                                                                                                          kJavaCompiler.java:33)
           [exec]     at org.gradle.api.internal.tasks.compile.NormalizingJavaCompiler.de                                                                                                          legateAndHandleErrors(NormalizingJavaCompiler.java:104)
           [exec]     at org.gradle.api.internal.tasks.compile.NormalizingJavaCompiler.ex                                                                                                          ecute(NormalizingJavaCompiler.java:53)
           [exec]     at org.gradle.api.internal.tasks.compile.NormalizingJavaCompiler.ex                                                                                                          ecute(NormalizingJavaCompiler.java:38)
           [exec]     at org.gradle.api.internal.tasks.compile.CleaningJavaCompilerSuppor                                                                                                          t.execute(CleaningJavaCompilerSupport.java:35)
           [exec]     at org.gradle.api.internal.tasks.compile.CleaningJavaCompilerSuppor                                                                                                          t.execute(CleaningJavaCompilerSupport.java:25)
           [exec]     at org.gradle.api.tasks.compile.JavaCompile.performCompilation(Java                                                                                                          Compile.java:206)
           [exec]     at org.gradle.api.tasks.compile.JavaCompile.compile(JavaCompile.jav                                                                                                          a:187)
           [exec]     at org.gradle.api.tasks.compile.JavaCompile.compile(JavaCompile.jav                                                                                                          a:130)
           [exec]     at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:73                                                                                                          )
           [exec]     at org.gradle.api.internal.project.taskfactory.DefaultTaskClassInfo                                                                                                          Store$IncrementalTaskAction.doExecute(DefaultTaskClassInfoStore.java:163)
           [exec]     at org.gradle.api.internal.project.taskfactory.DefaultTaskClassInfo                                                                                                          Store$StandardTaskAction.execute(DefaultTaskClassInfoStore.java:134)
           [exec]     at org.gradle.api.internal.project.taskfactory.DefaultTaskClassInfo                                                                                                          Store$StandardTaskAction.execute(DefaultTaskClassInfoStore.java:123)
           [exec]     at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecut                                                                                                          er.executeAction(ExecuteActionsTaskExecuter.java:95)
           [exec]     at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecut                                                                                                          er.executeActions(ExecuteActionsTaskExecuter.java:76)
           [exec]     ... 20 more
           [exec]
           [exec]
           [exec]
           [exec] BUILD FAILED
           [exec]
           [exec] Total time: 6 mins 29.856 secs
      
      
      

        Attachments

          Activity

            People

            • Assignee:
              felix.zhang Felix Zhang
              Reporter:
              felix.zhang Felix Zhang
              Participants of an Issue:
              Recent user:
              Felix Zhang
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                1 year, 9 weeks, 3 days ago

                Packages

                Version Package