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

 

posted on 2018-08-08 18:00  lshan  阅读(169)  评论(0编辑  收藏  举报