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
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.
did-this-article-resolve-your-issue