maven maven 执行update project 后,出现Java compile versiont does not match问题解决

maven maven 执行update project 后,出现Java compile versiont does not match问题解决:

在pom.xml文件中增加以下内容:

<build>
        <finalName>kevin-web</finalName>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <configuration>
                    <source>1.7</source>
                    <target>1.7</target>
                </configuration>
            </plugin>
        </plugins>
    </build>

猜你喜欢

转载自qingwei201314.iteye.com/blog/2297042