score:1

Accepted answer

change the version in pom to 1.8 instead of jdk1.8.0_172

                <configuration>
                    <toolchains>
                        <jdk>
                            <version>1.8</version>
                            <vendor>sun</vendor>
                        </jdk>
                    </toolchains>
                </configuration>

score:0

check your directory path carefully. the two comments about file location and testing with maven --toolchains c:\user\zzz\.m2\toolchains.xml clean install helped me see that my folder was "m2" and not ".m2".


Related Query

More Query from same tag