SpringBoot------Maven Install报错

报错信息:

Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.5.1:compile (default-compile) on project xxx:

 

解决方法:

修改pom.xml为

<build>
  <finalName>myspringboot</finalName>
  <plugins>
    <plugin>
      <groupId>org.springframework.boot</groupId>
      <artifactId>spring-boot-maven-plugin</artifactId>
    </plugin>
    <plugin>
      <artifactId>maven-compiler-plugin</artifactId>
      <configuration>
        <source>1.8</source>
        <target>1.8</target>
      </configuration>
    </plugin>
  </plugins>
</build>

 

另附:

可能Problem窗体下回给出错误提示(警告不用管),直接右键删除即可,不然有报错提示Maven Install会不成功

 

 

转载:

https://www.cnblogs.com/LordNeo/p/8126523.html

 

posted @ 2018-10-13 00:05  玉天恒  阅读(1861)  评论(0编辑  收藏  举报