legacy-knowledge-base
公開されました Jun. 30, 2025

Unable to get product info error showing in console

written-by

SK Sahil Akhtar

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

legacy-article

learn-legacy-article-disclaimer-text

Issue

  • When building projects, users are getting the below error in the console: 

    FAILURE: Build failed with an exception.

    * Where:
    Settings file 'C:\Users\ABC\Downloads\Dev\liferay\example\settings.gradle' line: 16

    * What went wrong:
    A problem occurred evaluating settings 'example'.
    > Failed to apply plugin 'com.liferay.workspace'.
       > Could not create an instance of type com.liferay.gradle.plugins.workspace.WorkspaceExtension.
          > Unable to get product info for :dxp-7.2-sp3

    * Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

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

    CONFIGURE FAILED in 21s

Environment

  • Liferay 7.2
  • Liferay 7.3
  • Liferay 7.4

Resolution

  • One of the instances of this error is due to  https://release.liferay.com/ site being down while using liferay.workspace.product=dxp-7.2-sp3 (or any workspace project)
  • Users can manage to work around this issue, by using the 'bom' file instead of the API. In gradle.properties file, change liferay.workspace.product=dxp-7.2-sp3 to liferay.workspace.target.platform.version=7.2.10.3 
    liferay.workspace.target.platform.version=7.2.10.3
  • And, set the setting.gradle to use the latest workspace plugin:
    buildscript {
    dependencies {
    classpath group: "biz.aQute.bnd", name: "biz.aQute.bnd", version: "5.2.0"
    classpath(group: "com.liferay", name: "com.liferay.gradle.plugins.workspace", version: "9.1.5") {
    exclude group: "biz.aQute.bnd", module: "biz.aQute.bnd"
    }
    classpath group: "net.saliman", name: "gradle-properties-plugin", version: "1.4.6"
    }

    repositories {
    maven {
    url "https://repository-cdn.liferay.com/nexus/content/groups/public"
    }

    maven {
    url "https://repository.liferay.com/nexus/content/groups/public"
    }
    }
    }

    apply plugin: "net.saliman.properties"

    apply plugin: "com.liferay.workspace"
    Note: After changing the workspace plugin version, if an error occurs during the build, adjust the version to match your workspace by referring to this link.

Additional Information

did-this-article-resolve-your-issue

legacy-knowledge-base