maven 编译解决jdk 版本问题

1.在父工程中pom 添加版本限制:

<plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>2.3.2</version>
                <configuration>
                    <source>1.8</source>
                    <target>1.8</target>
                    <encoding>UTF-8</encoding>
                </configuration>
            </plugin>
        </plugins>
View Code

猜你喜欢

转载自www.cnblogs.com/lshan/p/9444378.html