编译不通过,找不到类

一、run as builder..--gogles栏输入compile
java compiler level does not match the version of the installed java project





   1,解决
      我用的jdk是1.6官,maven是3.3.9不支持1.6
      dynamic web module 3.0 对应Tomcat 7.0



  
 <build>
    	<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>  
			        </configuration>  
   			 </plugin>  
		</plugins>  
    </build>

update projects,重新编译

猜你喜欢

转载自fulndon.iteye.com/blog/2267915