一直报错 Failed to execute goal org.mybatis.generator:mybatis-generator-maven-plugin:1.3.2:generate (default-cli) on project DouYinProject: Execution default-cli of goal org.mybatis.generator:mybatis-generator-maven-plugin:1.3.2:generate failed: Plugin org.mybatis.generator:mybatis-generator-maven-plugin:1.3.2 or one of its dependencies could not be resolved: Failed to collect dependencies at org.mybatis.generator:mybatis-generator-maven-plugin:jar:1.3.2 -> mysql:mysql-connector-java:jar:5.1.47: Failed to read artifact descriptor for mysql:mysql-connector-java:jar:5.1.47: Could not transfer artifact mysql:mysql-connector-java:pom:5.1.47 from/to alimaven (http://maven.aliyun.com/nexus/content/groups/public/): sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target -> [Help 1] [ERROR]
setting.xml配置文件把拉包仓库地址http://maven.aliyun.com/nexus/content/groups/public/换成https://maven.aliyun.com/repository/central即:
<repository>
<id>central</id>
<name>Maven2 Central Repository</name>
<layout>default</layout>
<url>https://maven.aliyun.com/repository/central</url>
</repository>