maven项目在eclipse的命令tomcat:run默认用的tomcat6,如果用jdk1.8可能出现如下错误
org.eclipse.jdt.internal.compiler.classfmt.ClassFormatException。。。。。
这时可以在pom.xml加入

<build>
    <plugins>
        <plugin>
            <groupId>org.apache.tomcat.maven</groupId>
            <artifactId>tomcat7-maven-plugin</artifactId>
            <version>2.2</version>
            <configuration>
                <port>9999</port> 
                <uriEncoding>UTF-8</uriEncoding>
            </configuration>
        </plugin>
    </plugins>
</build>

使用tomcat7:run命令运行。
或者更换项目为jdk1.7。