Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
Liferay studio: Failed to apply plugin 'com.liferay.workspace'
hi
I encountered an exception after refreshing my Gradle project, and I would appreciate any assistance in resolving it. Below is the error message:
FAILURE: Build failed with an exception.* Where:
Settings file 'C:\LiferayWorkspacewithDevStudio\cip-workspace\settings.gradle' line: 23* What went wrong:
A problem occurred evaluating settings 'cip-workspace'.
> 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 :portal-7.4-ga31* 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
Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.6.1/userguide/command_line_interface.html#sec:command_line_warningsBUILD FAILED in 53s
This issue has occurred before, and it seems to be related to Liferay's server. However, this time, it is taking significantly longer to resolve.
Could you please provide any insights or possible solutions? Any help would be greatly appreciated.
Thank you in advance for your time and support.
btw, is there any way to fix the gradle and no need to link to server?
I'm experiencing the same problem. The --stacktrace
output shows:
Caused by: sun.security.validator.ValidatorException: PKIX path
building failed:
sun.security.provider.certpath.SunCertPathBuilderException: unable to
find valid certification path to requested target
... 175
more
Caused by:
sun.security.provider.certpath.SunCertPathBuilderException: unable to
find valid certification path to requested target
... 175 more
This occurs with both a Liferay 7.0 and a Liferay 7.1 workspace, using Gradle 5.6.1.