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

Cannot build 7.1.1-ga2 tag from source.

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: 7.1.1 CE GA2
    • Fix Version/s: None
    • Labels:
      None

      Description

      Steps to reproduce:

      1. Create a temporary, empty maven repository:
         mkdir /tmp/.m2
        
      2. Change the local maven repository to the new directory in ~/.m2/settings.xml by adding the following text:
         <localRepository>/tmp/.m2<localRepository>
        
      3. Clone or checkout the 7.1.1-ga2 tag.
         git clone https://github.com/liferay/liferay-portal --branch 7.1.1-ga2 --single-branch --depth 1
        
      4. Build the portal:
         cd liferay-portal && ant clean all
        

      If the bug still exists, the build will fail with the following error:

           [exec] BUILD FAILED
           [exec]
           [exec] Total time: 1 mins 21.924 secs
           [exec]
           [exec] FAILURE: Build failed with an exception.
           [exec]
           [exec] * What went wrong:
           [exec] Could not resolve all dependencies for configuration ':core:portal-compat:petra:portal-kernel-io-compat:detachedConfiguration1'.
           [exec] > Could not find com.liferay.portal:com.liferay.portal.kernel:3.0.0-20180426.173855-7.
           [exec]   Searched in the following locations:
           [exec]       file:/home/kylestiemann/Temp/liferay-portal/.m2/com/liferay/portal/com.liferay.portal.kernel/3.0.0-SNAPSHOT/com.liferay.portal.kernel-3.0.0-20180426.173855-7.pom
           [exec]       file:/home/kylestiemann/Temp/liferay-portal/.m2/com/liferay/portal/com.liferay.portal.kernel/3.0.0-SNAPSHOT/com.liferay.portal.kernel-3.0.0-20180426.173855-7.jar
           [exec]       https://repository-cdn.liferay.com/nexus/content/groups/public/com/liferay/portal/com.liferay.portal.kernel/3.0.0-SNAPSHOT/com.liferay.portal.kernel-3.0.0-20180426.173855-7.pom
           [exec]       https://repository-cdn.liferay.com/nexus/content/groups/public/com/liferay/portal/com.liferay.portal.kernel/3.0.0-SNAPSHOT/com.liferay.portal.kernel-3.0.0-20180426.173855-7.jar
           [exec]   Required by:
           [exec]       project :core:portal-compat:petra:portal-kernel-io-compat
           [exec]
           [exec] * Try:
           [exec] Run with --info or --debug option to get more log output.
           [exec]
           [exec] * Exception is:
           [exec] org.gradle.api.artifacts.ResolveException: Could not resolve all dependencies for configuration ':core:portal-compat:petra:portal-kernel-io-compat:detachedConfiguration1'.
           [exec]     at org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration.rethrowFailure(DefaultLenientConfiguration.java:192)
           [exec]     at org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$1.collectFiles(DefaultLenientConfiguration.java:141)
           [exec]     at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration$ConfigurationFileCollection.getFiles(DefaultConfiguration.java:810)
           [exec]     at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration.getFiles(DefaultConfiguration.java:376)
           [exec]     at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration_Decorated.getFiles(Unknown Source)
           [exec]     at org.gradle.api.internal.file.AbstractFileCollection.getSingleFile(AbstractFileCollection.java:57)
           [exec]     at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration_Decorated.getSingleFile(Unknown Source)
           [exec]     at com.liferay.gradle.plugins.defaults.LiferayOSGiPortalCompatDefaultsPlugin$2.call(LiferayOSGiPortalCompatDefaultsPlugin.java:147)
           [exec]     at com.liferay.gradle.plugins.defaults.LiferayOSGiPortalCompatDefaultsPlugin$2.call(LiferayOSGiPortalCompatDefaultsPlugin.java:143)
           [exec]     at org.gradle.util.GUtil.uncheckedCall(GUtil.java:402)
           [exec]     at org.gradle.api.internal.file.collections.BuildDependenciesOnlyFileCollectionResolveContext.add(BuildDependenciesOnlyFileCollectionResolveContext.java:72)
           [exec]     at org.gradle.api.internal.file.collections.BuildDependenciesOnlyFileCollectionResolveContext.add(BuildDependenciesOnlyFileCollectionResolveContext.java:79)
           [exec]     at org.gradle.api.internal.file.collections.BuildDependenciesOnlyFileCollectionResolveContext.add(BuildDependenciesOnlyFileCollectionResolveContext.java:79)
           [exec]     at org.gradle.api.internal.file.collections.DefaultConfigurableFileCollection.visitContents(DefaultConfigurableFileCollection.java:91)
           [exec]     at org.gradle.api.internal.file.CompositeFileCollection.visitDependencies(CompositeFileCollection.java:166)
           [exec]     at org.gradle.api.internal.file.collections.DefaultConfigurableFileCollection.visitDependencies(DefaultConfigurableFileCollection.java:97)
           [exec]     at org.gradle.api.internal.file.CompositeFileCollection$1.visitDependencies(CompositeFileCollection.java:116)
           [exec]     at org.gradle.api.internal.file.CompositeFileTree$FilteredFileTree.visitDependencies(CompositeFileTree.java:122)
           [exec]     at org.gradle.api.internal.tasks.CachingTaskDependencyResolveContext$TaskGraphImpl.getNodeValues(CachingTaskDependencyResolveContext.java:88)
           [exec]     at org.gradle.internal.graph.CachingDirectedGraphWalker$GraphWithEmpyEdges.getNodeValues(CachingDirectedGraphWalker.java:202)
           [exec]     at org.gradle.internal.graph.CachingDirectedGraphWalker.doSearch(CachingDirectedGraphWalker.java:112)
           [exec]     at org.gradle.internal.graph.CachingDirectedGraphWalker.findValues(CachingDirectedGraphWalker.java:64)
           [exec]     at org.gradle.api.internal.tasks.CachingTaskDependencyResolveContext.doResolve(CachingTaskDependencyResolveContext.java:76)
           [exec]     at org.gradle.api.internal.tasks.CachingTaskDependencyResolveContext.resolve(CachingTaskDependencyResolveContext.java:65)
           [exec]     at org.gradle.api.internal.tasks.CachingTaskDependencyResolveContext.getDependencies(CachingTaskDependencyResolveContext.java:55)
           [exec]     at org.gradle.execution.taskgraph.DefaultTaskExecutionPlan.addToTaskGraph(DefaultTaskExecutionPlan.java:139)
           [exec]     at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter.addTasks(DefaultTaskGraphExecuter.java:101)
           [exec]     at org.gradle.execution.TaskNameResolvingBuildConfigurationAction.configure(TaskNameResolvingBuildConfigurationAction.java:47)
           [exec]     at org.gradle.execution.DefaultBuildConfigurationActionExecuter.configure(DefaultBuildConfigurationActionExecuter.java:48)
           [exec]     at org.gradle.execution.DefaultBuildConfigurationActionExecuter.access$000(DefaultBuildConfigurationActionExecuter.java:25)
           [exec]     at org.gradle.execution.DefaultBuildConfigurationActionExecuter$1.proceed(DefaultBuildConfigurationActionExecuter.java:54)
           [exec]     at org.gradle.execution.DefaultTasksBuildExecutionAction.configure(DefaultTasksBuildExecutionAction.java:44)
           [exec]     at org.gradle.execution.DefaultBuildConfigurationActionExecuter.configure(DefaultBuildConfigurationActionExecuter.java:48)
           [exec]     at org.gradle.execution.DefaultBuildConfigurationActionExecuter.access$000(DefaultBuildConfigurationActionExecuter.java:25)
           [exec]     at org.gradle.execution.DefaultBuildConfigurationActionExecuter$1.proceed(DefaultBuildConfigurationActionExecuter.java:54)
           [exec]     at org.gradle.execution.ExcludedTaskFilteringBuildConfigurationAction.configure(ExcludedTaskFilteringBuildConfigurationAction.java:47)
           [exec]     at org.gradle.execution.DefaultBuildConfigurationActionExecuter.configure(DefaultBuildConfigurationActionExecuter.java:48)
           [exec]     at org.gradle.execution.DefaultBuildConfigurationActionExecuter.select(DefaultBuildConfigurationActionExecuter.java:36)
           [exec]     at org.gradle.initialization.DefaultGradleLauncher$CalculateTaskGraphAction.execute(DefaultGradleLauncher.java:220)
           [exec]     at org.gradle.initialization.DefaultGradleLauncher$CalculateTaskGraphAction.execute(DefaultGradleLauncher.java:217)
           [exec]     at org.gradle.internal.Transformers$4.transform(Transformers.java:169)
           [exec]     at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:106)
           [exec]     at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:56)
           [exec]     at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:158)
           [exec]     at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:112)
           [exec]     at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:95)
           [exec]     at org.gradle.launcher.exec.GradleBuildController.run(GradleBuildController.java:66)
           [exec]     at org.gradle.tooling.internal.provider.ExecuteBuildActionRunner.run(ExecuteBuildActionRunner.java:28)
           [exec]     at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35)
           [exec]     at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:41)
           [exec]     at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:26)
           [exec]     at org.gradle.tooling.internal.provider.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:75)
           [exec]     at org.gradle.tooling.internal.provider.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:49)
           [exec]     at org.gradle.tooling.internal.provider.ServicesSetupBuildActionExecuter.execute(ServicesSetupBuildActionExecuter.java:49)
           [exec]     at org.gradle.tooling.internal.provider.ServicesSetupBuildActionExecuter.execute(ServicesSetupBuildActionExecuter.java:31)
           [exec]     at org.gradle.launcher.cli.RunBuildAction.run(RunBuildAction.java:51)
           [exec]     at org.gradle.internal.Actions$RunnableActionAdapter.execute(Actions.java:173)
           [exec]     at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:281)
           [exec]     at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:254)
           [exec]     at org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntimeValidationAction.java:33)
           [exec]     at org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntimeValidationAction.java:24)
           [exec]     at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:33)
           [exec]     at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:22)
           [exec]     at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:247)
           [exec]     at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:182)
           [exec]     at org.gradle.launcher.Main.doAction(Main.java:33)
           [exec]     at org.gradle.launcher.bootstrap.EntryPoint.run(EntryPoint.java:45)
           [exec]     at org.gradle.launcher.bootstrap.ProcessBootstrap.runNoExit(ProcessBootstrap.java:60)
           [exec]     at org.gradle.launcher.bootstrap.ProcessBootstrap.run(ProcessBootstrap.java:37)
           [exec]     at org.gradle.launcher.GradleMain.main(GradleMain.java:23)
           [exec]     at org.gradle.wrapper.BootstrapMainStarter.start(BootstrapMainStarter.java:31)
           [exec]     at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:108)
           [exec]     at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)
           [exec] Caused by: org.gradle.internal.resolve.ModuleVersionNotFoundException: Could not find com.liferay.portal:com.liferay.portal.kernel:3.0.0-20180426.173855-7.
           [exec] Searched in the following locations:
           [exec]     file:/home/kylestiemann/Temp/liferay-portal/.m2/com/liferay/portal/com.liferay.portal.kernel/3.0.0-SNAPSHOT/com.liferay.portal.kernel-3.0.0-20180426.173855-7.pom
           [exec]     file:/home/kylestiemann/Temp/liferay-portal/.m2/com/liferay/portal/com.liferay.portal.kernel/3.0.0-SNAPSHOT/com.liferay.portal.kernel-3.0.0-20180426.173855-7.jar
           [exec]     https://repository-cdn.liferay.com/nexus/content/groups/public/com/liferay/portal/com.liferay.portal.kernel/3.0.0-SNAPSHOT/com.liferay.portal.kernel-3.0.0-20180426.173855-7.pom
           [exec]     https://repository-cdn.liferay.com/nexus/content/groups/public/com/liferay/portal/com.liferay.portal.kernel/3.0.0-SNAPSHOT/com.liferay.portal.kernel-3.0.0-20180426.173855-7.jar
           [exec] Required by:
           [exec]     project :core:portal-compat:petra:portal-kernel-io-compat
           [exec]     at org.gradle.internal.resolve.result.DefaultBuildableComponentResolveResult.notFound(DefaultBuildableComponentResolveResult.java:38)
           [exec]     at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.RepositoryChainComponentMetaDataResolver.resolveModule(RepositoryChainComponentMetaDataResolver.java:88)
           [exec]     at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.RepositoryChainComponentMetaDataResolver.resolve(RepositoryChainComponentMetaDataResolver.java:59)
           [exec]     at org.gradle.api.internal.artifacts.ivyservice.resolveengine.ComponentResolversChain$ComponentMetaDataResolverChain.resolve(ComponentResolversChain.java:85)
           [exec]     at org.gradle.api.internal.artifacts.ivyservice.clientmodule.ClientModuleResolver.resolve(ClientModuleResolver.java:45)
           [exec]     at org.gradle.api.internal.artifacts.ivyservice.resolveengine.graph.DependencyGraphBuilder$ModuleVersionResolveState.resolve(DependencyGraphBuilder.java:661)
           [exec]     at org.gradle.api.internal.artifacts.ivyservice.resolveengine.graph.DependencyGraphBuilder$ModuleVersionResolveState.getMetaData(DependencyGraphBuilder.java:672)
           [exec]     at org.gradle.api.internal.artifacts.ivyservice.resolveengine.graph.DependencyGraphBuilder$DependencyEdge.calculateTargetConfigurations(DependencyGraphBuilder.java:297)
           [exec]     at org.gradle.api.internal.artifacts.ivyservice.resolveengine.graph.DependencyGraphBuilder$DependencyEdge.attachToTargetConfigurations(DependencyGraphBuilder.java:270)
           [exec]     at org.gradle.api.internal.artifacts.ivyservice.resolveengine.graph.DependencyGraphBuilder.traverseGraph(DependencyGraphBuilder.java:167)
           [exec]     at org.gradle.api.internal.artifacts.ivyservice.resolveengine.graph.DependencyGraphBuilder.resolve(DependencyGraphBuilder.java:104)
           [exec]     at org.gradle.api.internal.artifacts.ivyservice.resolveengine.DefaultArtifactDependencyResolver.resolve(DefaultArtifactDependencyResolver.java:92)
           [exec]     at org.gradle.api.internal.artifacts.ivyservice.CacheLockingArtifactDependencyResolver$1.run(CacheLockingArtifactDependencyResolver.java:45)
           [exec]     at org.gradle.internal.Factories$1.create(Factories.java:25)
           [exec]     at org.gradle.cache.internal.DefaultCacheAccess.useCache(DefaultCacheAccess.java:189)
           [exec]     at org.gradle.cache.internal.DefaultCacheAccess.useCache(DefaultCacheAccess.java:175)
           [exec]     at org.gradle.cache.internal.DefaultPersistentDirectoryStore.useCache(DefaultPersistentDirectoryStore.java:134)
           [exec]     at org.gradle.cache.internal.DefaultCacheFactory$ReferenceTrackingCache.useCache(DefaultCacheFactory.java:199)
           [exec]     at org.gradle.api.internal.artifacts.ivyservice.DefaultCacheLockingManager.useCache(DefaultCacheLockingManager.java:65)
           [exec]     at org.gradle.api.internal.artifacts.ivyservice.CacheLockingArtifactDependencyResolver.resolve(CacheLockingArtifactDependencyResolver.java:43)
           [exec]     at org.gradle.api.internal.artifacts.ivyservice.DefaultConfigurationResolver.resolveGraph(DefaultConfigurationResolver.java:134)
           [exec]     at org.gradle.api.internal.artifacts.ivyservice.ShortCircuitEmptyConfigurationResolver.resolveGraph(ShortCircuitEmptyConfigurationResolver.java:74)
           [exec]     at org.gradle.api.internal.artifacts.ivyservice.ErrorHandlingConfigurationResolver.resolveGraph(ErrorHandlingConfigurationResolver.java:67)
           [exec]     at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration$4.execute(DefaultConfiguration.java:463)
           [exec]     at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration$4.execute(DefaultConfiguration.java:455)
           [exec]     at org.gradle.internal.Transformers$4.transform(Transformers.java:169)
           [exec]     at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:106)
           [exec]     at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:56)
           [exec]     at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration.resolveGraphIfRequired(DefaultConfiguration.java:455)
           [exec]     at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration.resolveToStateOrLater(DefaultConfiguration.java:431)
           [exec]     at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration.access$1400(DefaultConfiguration.java:109)
           [exec]     at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration$ConfigurationFileCollection.getSelectedArtifacts(DefaultConfiguration.java:816)
           [exec]     ... 71 more
           [exec]
           [exec]
      
      BUILD FAILED
      /home/kylestiemann/Temp/liferay-portal/build.xml:116: The following error occurred while executing this line:
      /home/kylestiemann/Temp/liferay-portal/build.xml:248: The following error occurred while executing this line:
      /home/kylestiemann/Temp/liferay-portal/build-common.xml:847: /home/kylestiemann/Temp/liferay-portal/build-common.xml:849: exec returned: 1
      

      If the bug is fixed, the build will succeed.

        Attachments

          Activity

            People

            • Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Days since last comment:
                1 week, 2 days ago

                Packages

                Version Package