maven problem

0
I do get an dependancy error while building my project. It is a general problem starting from mendx 10.3.1. probably just a settings, please help     FAILURE: Build failed with an exception. * What went wrong:Execution failed for task ':copyDependencies'.> Could not resolve all files for configuration ':implementation'.   > Could not resolve com.google.guava:guava:32.0.1-jre.     Required by:         project :      > Could not resolve com.google.guava:guava:32.0.1-jre.         > Could not get resource 'https://repo.maven.apache.org/maven2/com/google/guava/guava/32.0.1-jre/guava-32.0.1-jre.pom'.            > Could not GET 'https://repo.maven.apache.org/maven2/com/google/guava/guava/32.0.1-jre/guava-32.0.1-jre.pom'.               > The server may not support the client's requested TLS protocol versions: (TLSv1.2, TLSv1.3). You may need to configure the client to allow other protocols to be used. See: https://docs.gradle.org/7.6/userguide/build_environment.html#gradle_system_properties                  > PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target   > Could not resolve com.googlecode.owasp-java-html-sanitizer:owasp-java-html-sanitizer:20211018.2.     Required by:         project :      > Could not resolve com.googlecode.owasp-java-html-sanitizer:owasp-java-html-sanitizer:20211018.2.         > Could not get resource 'https://repo.maven.apache.org/maven2/com/googlecode/owasp-java-html-sanitizer/owasp-java-html-sanitizer/20211018.2/owasp-java-html-sanitizer-20211018.2.pom'.            > Could not GET 'https://repo.maven.apache.org/maven2/com/googlecode/owasp-java-html-sanitizer/owasp-java-html-sanitizer/20211018.2/owasp-java-html-sanitizer-20211018.2.pom'.               > The server may not support the client's requested TLS protocol versions: (TLSv1.2, TLSv1.3). You may need to configure the client to allow other protocols to be used. See: https://docs.gradle.org/7.6/userguide/build_environment.html#gradle_system_properties                  > 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.11.0.     Required by:         project :      > Could not resolve commons-io:commons-io:2.11.0.         > Could not get resource 'https://repo.maven.apache.org/maven2/commons-io/commons-io/2.11.0/commons-io-2.11.0.pom'.            > Could not HEAD 'https://repo.maven.apache.org/maven2/commons-io/commons-io/2.11.0/commons-io-2.11.0.pom'.               > The server may not support the client's requested TLS protocol versions: (TLSv1.2, TLSv1.3). You may need to configure the client to allow other protocols to be used. See: https://docs.gradle.org/7.6/userguide/build_environment.html#gradle_system_properties                  > PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target   > Could not resolve org.apache.pdfbox:pdfbox:2.0.24.     Required by:         project :      > Could not resolve org.apache.pdfbox:pdfbox:2.0.24.         > Could not get resource 'https://repo.maven.apache.org/maven2/org/apache/pdfbox/pdfbox/2.0.24/pdfbox-2.0.24.pom'.            > Could not GET 'https://repo.maven.apache.org/maven2/org/apache/pdfbox/pdfbox/2.0.24/pdfbox-2.0.24.pom'.               > The server may not support the client's requested TLS protocol versions: (TLSv1.2, TLSv1.3). You may need to configure the client to allow other protocols to be used. See: https://docs.gradle.org/7.6/userguide/build_environment.html#gradle_system_properties                  > PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target   > Could not resolve org.apache.commons:commons-lang3:3.12.0.     Required by:         project :      > Could not resolve org.apache.commons:commons-lang3:3.12.0.         > Could not get resource 'https://repo.maven.apache.org/maven2/org/apache/commons/commons-lang3/3.12.0/commons-lang3-3.12.0.pom'.            > Could not HEAD 'https://repo.maven.apache.org/maven2/org/apache/commons/commons-lang3/3.12.0/commons-lang3-3.12.0.pom'.               > The server may not support the client's requested TLS protocol versions: (TLSv1.2, TLSv1.3). You may need to configure the client to allow other protocols to be used. See: https://docs.gradle.org/7.6/userguide/build_environment.html#gradle_system_properties                  > PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target   > Could not resolve org.apache.commons:commons-text:1.10.0.     Required by:         project :      > Could not resolve org.apache.commons:commons-text:1.10.0.         > Could not get resource 'https://repo.maven.apache.org/maven2/org/apache/commons/commons-text/1.10.0/commons-text-1.10.0.pom'.            > Could not HEAD 'https://repo.maven.apache.org/maven2/org/apache/commons/commons-text/1.10.0/commons-text-1.10.0.pom'.               > The server may not support the client's requested TLS protocol versions: (TLSv1.2, TLSv1.3). You may need to configure the client to allow other protocols to be used. See: https://docs.gradle.org/7.6/userguide/build_environment.html#gradle_system_properties                  > PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target * 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 BUILD FAILED in 10s
asked
2 answers
0

Hi Corné,

 

Since 10.3, Mendix uses a new feature to manage Java dependencies. In your case it likes to access this link: https://repo.maven.apache.org/maven2/com/google/guava/guava/32.0.1-jre/guava-32.0.1-jre.pom 

 

As per our company policy, the IT department blocked access to *maven..apache.org. 

 

Try copying the link into your browser to see what is causing the problem. Maybe you need proxy authentication, or you get an proxy error

 

To solve it:

1. Solve proxy authentication (Edit --> Preferences --> Advances in Mx StudioPro)

2. Request a change from the proxy admin for your host/all hosts

3. Use a network without proxy (your phone as Access Point/Hotspot) but only it you are not enforced using the company VPN

4.Try setting up the VPN to check if the same proxy rule is blocking you (trust me it is sometimes different)

5. Use a different (less restrictive) proxy server. For this, ask your fellow developers, you need to edit the network settings. Probably that is blocked too.

6. Try if you can setup a privacy VPN (probably blocked)

7. Use AWS workspaces (https://aws.amazon.com/workspaces/) for this (Will cost additional)

8. Use Mx StudioPro < 10.3 until solved. 

 

Go Make It 

answered
0

Hello

We have the same problem.

 

It is because of the Community Commons module update. Also, you might use a company computer with strong security features (firewall from zscaler), which blocks it. When I use my personal computer, the EXACT same project works, but on my company computer it does not.

 

Either you delete Community Commons (which you probably use), use a different computer or discuss with your IT the firewall and security features.

 

"FAILURE: Build failed with an exception.

* What went wrong:Execution failed for task ':copyDependencies'.> Could not resolve all files for configuration ':implementation'.   > Could not resolve com.google.guava:guava:32.0.1-jre.     Required by:         project :      > Could not resolve com.google.guava:guava:32.0.1-jre.         > Could not get resource 'https://repo.maven.apache.org/maven2/com/google/guava/guava/32.0.1-jre/guava-32.0.1-jre.pom'.            > Could not GET 'https://repo.maven.apache.org/maven2/com/google/guava/guava/32.0.1-jre/guava-32.0.1-jre.pom'.               > The server may not support the client's requested TLS protocol versions: (TLSv1.2, TLSv1.3). You may need to configure the client to allow other protocols to be used. See: https://docs.gradle.org/7.6/userguide/build_environment.html#gradle_system_properties                  > PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target   > Could not resolve com.googlecode.owasp-java-html-sanitizer:owasp-java-html-sanitizer:20211018.2.     Required by:         project :      > Could not resolve com.googlecode.owasp-java-html-sanitizer:owasp-java-html-sanitizer:20211018.2.         > Could not get resource 'https://repo.maven.apache.org/maven2/com/googlecode/owasp-java-html-sanitizer/owasp-java-html-sanitizer/20211018.2/owasp-java-html-sanitizer-20211018.2.pom'.            > Could not GET 'https://repo.maven.apache.org/maven2/com/googlecode/owasp-java-html-sanitizer/owasp-java-html-sanitizer/20211018.2/owasp-java-html-sanitizer-20211018.2.pom'.               > The server may not support the client's requested TLS protocol versions: (TLSv1.2, TLSv1.3). You may need to configure the client to allow other protocols to be used. See: https://docs.gradle.org/7.6/userguide/build_environment.html#gradle_system_properties                  > 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.11.0.     Required by:         project :      > Could not resolve commons-io:commons-io:2.11.0.         > Could not get resource 'https://repo.maven.apache.org/maven2/commons-io/commons-io/2.11.0/commons-io-2.11.0.pom'.            > Could not GET 'https://repo.maven.apache.org/maven2/commons-io/commons-io/2.11.0/commons-io-2.11.0.pom'.               > The server may not support the client's requested TLS protocol versions: (TLSv1.2, TLSv1.3). You may need to configure the client to allow other protocols to be used. See: https://docs.gradle.org/7.6/userguide/build_environment.html#gradle_system_properties                  > PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target   > Could not resolve org.apache.pdfbox:pdfbox:2.0.24.     Required by:         project :      > Could not resolve org.apache.pdfbox:pdfbox:2.0.24.         > Could not get resource 'https://repo.maven.apache.org/maven2/org/apache/pdfbox/pdfbox/2.0.24/pdfbox-2.0.24.pom'.            > Could not GET 'https://repo.maven.apache.org/maven2/org/apache/pdfbox/pdfbox/2.0.24/pdfbox-2.0.24.pom'.               > The server may not support the client's requested TLS protocol versions: (TLSv1.2, TLSv1.3). You may need to configure the client to allow other protocols to be used. See: https://docs.gradle.org/7.6/userguide/build_environment.html#gradle_system_properties                  > PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target   > Could not resolve org.apache.commons:commons-lang3:3.12.0.     Required by:         project :      > Could not resolve org.apache.commons:commons-lang3:3.12.0.         > Could not get resource 'https://repo.maven.apache.org/maven2/org/apache/commons/commons-lang3/3.12.0/commons-lang3-3.12.0.pom'.            > Could not GET 'https://repo.maven.apache.org/maven2/org/apache/commons/commons-lang3/3.12.0/commons-lang3-3.12.0.pom'.               > The server may not support the client's requested TLS protocol versions: (TLSv1.2, TLSv1.3). You may need to configure the client to allow other protocols to be used. See: https://docs.gradle.org/7.6/userguide/build_environment.html#gradle_system_properties                  > PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target   > Could not resolve org.apache.commons:commons-text:1.10.0.     Required by:         project :      > Could not resolve org.apache.commons:commons-text:1.10.0.         > Could not get resource 'https://repo.maven.apache.org/maven2/org/apache/commons/commons-text/1.10.0/commons-text-1.10.0.pom'.            > Could not GET 'https://repo.maven.apache.org/maven2/org/apache/commons/commons-text/1.10.0/commons-text-1.10.0.pom'.               > The server may not support the client's requested TLS protocol versions: (TLSv1.2, TLSv1.3). You may need to configure the client to allow other protocols to be used. See: https://docs.gradle.org/7.6/userguide/build_environment.html#gradle_system_properties                  > PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

* 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

BUILD FAILED in 17s"

answered