在 Maven 配置文件 settings.xml 里找到 profiles 标签,在其中添加以下即可 <profile> <id>jdk-1.8</id> <activation> <activeByDefault>true<