解决Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile报错问题

报错前:

        <!--maven插件-->
<!--  
            <!–jdk编译插件–>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <configuration>
                    <source>1.7</source>
                    <target>1.7</target>

                    <encoding>utf-8</encoding>
                </configuration>
            </plugin>-->

解决完:(全部不替换掉)

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
<fork>true</fork>
<executable>D:\ideajdk1.8\jdk\jdk1.8.0_131\bin\javac</executable>
<encoding>UTF-8</encoding>
<compilerArguments>
<extdirs>${project.basedir}/src/main/webapp/WEB-INF/lib</extdirs>
</compilerArguments>
</configuration>
</plugin>

  

posted @ 2019-09-11 09:29  Money131  阅读(5265)  评论(0编辑  收藏  举报