Solve Failed to execute goal org.apache.maven.plugins: maven-compiler-plugin: 3.1: compile error problem

Before being given:

        <!--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>-->

Solve all finished :( not replace)

            // jdk path is not configured, idea will look jdk path of the JAVA_HOME 
      <plugin> <the groupId> org.apache.maven.plugins </ the groupId> <the artifactId> Compiler-Maven-plugin </ the artifactId> <Version> 3.1 </ Version> <Configuration> <Source> 1.8 </ Source> <target> 1.8 </ target> <the fork> to true </ the fork> <Executable> D: \ ideajdk1.8 \ JDK \ jdk1.8.0_131 \ bin \ the javac < / executable> // Find jdk adaptation projects <encoding> UTF-8 </ encoding> <compilerArguments> <extdirs>${project.basedir}/src/main/webapp/WEB-INF/lib</extdirs> </compilerArguments> </configuration> </plugin>

  

Guess you like

Origin www.cnblogs.com/money131/p/11504424.html