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
You are viewing an article from our legacy "FastTrack"
publication program, made available for informational purposes. Articles
in this program were published without a requirement for independent
editing or verification and are provided"as is" without
guarantee.
Before using any information from this article, independently verify its
suitability for your situation and project.
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 ?