欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

maven eclipse 编译错误 Dynamic Web Module 3.0 requires Java 1.6 or new

程序员文章站 2022-04-14 22:53:28
...

 

新建项目出现 Dynamic Web Module 3.0 requires Java 1.6 or new 


maven eclipse  编译错误 Dynamic Web Module 3.0 requires Java 1.6 or new
            
    
    博客分类: maven maveneclipse编译错误 
 

编译器的java版本不同导致

maven eclipse  编译错误 Dynamic Web Module 3.0 requires Java 1.6 or new
            
    
    博客分类: maven maveneclipse编译错误 
 

 

 

解决方法:pom添加 这段,eclpise 一下

 

<plugins>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-compiler-plugin</artifactId>
				<version>3.3</version>
				<dependencies>
					<dependency>
						<groupId>org.codehaus.plexus</groupId>
						<artifactId>plexus-compiler-javac</artifactId>
						<version>2.5</version>
					</dependency>
				</dependencies>
				<configuration>
					<source>1.7</source>
					<target>1.7</target>
					<encoding>UTF-8</encoding>
					<compilerArguments>
						<verbose />
						<bootclasspath>${java.home}/lib/rt.jar:${java.home}/lib/jce.jar</bootclasspath>
					</compilerArguments>
				</configuration>
			</plugin>

 

 

 

 

 

 

 

 

 

 

捐助开发者

在兴趣的驱动下,写一个免费的东西,有欣喜,也还有汗水,希望你喜欢我的作品,同时也能支持一下。 当然,有钱捧个钱场(右上角的爱心标志,支持支付宝和PayPal捐助),没钱捧个人场,谢谢各位。


maven eclipse  编译错误 Dynamic Web Module 3.0 requires Java 1.6 or new
            
    
    博客分类: maven maveneclipse编译错误 maven eclipse  编译错误 Dynamic Web Module 3.0 requires Java 1.6 or new
            
    
    博客分类: maven maveneclipse编译错误 maven eclipse  编译错误 Dynamic Web Module 3.0 requires Java 1.6 or new
            
    
    博客分类: maven maveneclipse编译错误 
 
 
 谢谢您的赞助,我会做的更好!

 

 

 

 

  • maven eclipse  编译错误 Dynamic Web Module 3.0 requires Java 1.6 or new
            
    
    博客分类: maven maveneclipse编译错误 
  • 大小: 142.9 KB
  • maven eclipse  编译错误 Dynamic Web Module 3.0 requires Java 1.6 or new
            
    
    博客分类: maven maveneclipse编译错误 
  • 大小: 2.9 KB