'I am getting the error - unable to find valid certification path" in my Springtoolsuite 4(in Mac)

I am trying to compile my first project in Spring tool suite4, but getting the following error - The following artifacts could not be resolved: commons- io:commons-io:jar:2.6, org.codehaus.plexus:plexus-component-annotations:jar:2.0.0: Could not transfer artifact commons-io:commons-io:jar:2.6 from/to central (https://artifacts.apple.com/plugins-release): PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target ...Also the error is pointing to the following code block in pom.xml

<plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>3.10.1</version>
                <configuration>
                    <source>11</source>
                    <target>11</target>
                </configuration>
            </plugin>


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source