Gradle build failures - Native Mac OS 10.7.0 beta

0
Hello, I have the following error:    FAILURE: Build failed with an exception.* What went wrong:A problem occurred configuring root project 'temp'. show quoted text > Could not resolve org.cyclonedx:cyclonedx-core-java:8.0.3.Required by:project : > org.cyclonedx.bom:org.cyclonedx.bom.gradle.plugin:1.8.1 > org.cyclonedx:cyclonedx-gradle-plugin:1.8.1> Could not resolve org.cyclonedx:cyclonedx-core-java:8.0.3.> Could not get resource 'https://plugins.gradle.org/m2/org/cyclonedx/cyclonedx-core-java/8.0.3/cyclonedx-core-java-8.0.3.pom'.> Could not GET 'https://jcenter.bintray.com/org/cyclonedx/cyclonedx-core-java/8.0.3/cyclonedx-core-java-8.0.3.pom'.> sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target> Could not resolve commons-codec:commons-codec:1.16.0.Required by:project : > org.cyclonedx.bom:org.cyclonedx.bom.gradle.plugin:1.8.1 > org.cyclonedx:cyclonedx-gradle-plugin:1.8.1> Could not resolve commons-codec:commons-codec:1.16.0.> Could not get resource 'https://plugins.gradle.org/m2/commons-codec/commons-codec/1.16.0/commons-codec-1.16.0.pom'.> Could not GET 'https://jcenter.bintray.com/commons-codec/commons-codec/1.16.0/commons-codec-1.16.0.pom'.> sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target> Could not resolve commons-io:commons-io:2.15.0.Required by:project : > org.cyclonedx.bom:org.cyclonedx.bom.gradle.plugin:1.8.1 > org.cyclonedx:cyclonedx-gradle-plugin:1.8.1> Could not resolve commons-io:commons-io:2.15.0.> Could not get resource 'https://plugins.gradle.org/m2/commons-io/commons-io/2.15.0/commons-io-2.15.0.pom'.> Could not GET 'https://jcenter.bintray.com/commons-io/commons-io/2.15.0/commons-io-2.15.0.pom'.> sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target> Could not resolve org.apache.maven:maven-core:3.9.5.Required by:project : > org.cyclonedx.bom:org.cyclonedx.bom.gradle.plugin:1.8.1 > org.cyclonedx:cyclonedx-gradle-plugin:1.8.1> Could not resolve org.apache.maven:maven-core:3.9.5.> Could not get resource 'https://plugins.gradle.org/m2/org/apache/maven/maven-core/3.9.5/maven-core-3.9.5.pom'.> Could not GET 'https://jcenter.bintray.com/org/apache/maven/maven-core/3.9.5/maven-core-3.9.5.pom'.> sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target* Try: show quoted text * Get more help at https://help.gradle.orgBUILD FAILED in 1s         Others have suggested toggling with the preferences menu (as is described in the link below) however on my version of Mendix I am not even able to see any "preferences" menu. Here is a link to a similiar error: https://community.mendix.com/link/space/app-development/questions/130645.    Please help! :) 
asked
1 answers
0

I recently had a similar issue. 

 

The root cause of the issue appears to be an un-trusted certificate based on this:

PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

 

Organizations (Companies, Universities, etc) often intercept SSL traffic, decrypt it for inspection and re-encrypt with a private certificate.

 

To solve this, you will need to obtain the certificate used to resign SSL traffic and add it to the certificate store of the Java JDK that you are using for Mendix as configured in the Studio Pro preferences.

 

Here is a stackoverflow that explains how to update the java certificate store.

https://stackoverflow.com/a/63722059

 

answered