Maven管理啓動Tomcat時出現無效的目標發行版本

pom.xml配置:

<plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>3.3</version>
                <configuration>
                    <source>1.7</source>
                    <target>1.7</target>
                    <encoding>UTF-8</encoding>
                </configuration>
            </plugin>

依然出現問題,將tomcat的jre版本調高,讓其兼容你的版本即可

解決辦法:

選中Run Configuration
這裏寫圖片描述

選中要啓動的項目,點擊jre,修改爲更高版本

這裏寫圖片描述

然後正常使用 clean tomcat7:run 啓動tomcat

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章