<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>1.6</source>
<target >1.6</target>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
Error when loading web project: Tomcat version 6.0 only supports J2EE 1.2, 1.3, 1.4, and Java EE 5 Web modul
2013 -10-22 10:42 8479 people read comments (3) Collection report The servlet project developed
with eclipse cannot be loaded to the tomcat6.0 server because the servlet version is too high
<installed facet="jst.web" version=" 3.0"/> Just change version="3.0" to version="2.5" and restart eclipse! ! !
Specific steps:
Find your eclipse: D:\eclipse\workspace-jee\project name\.settings\org.eclipse.wst.common.project.facet.core.xml this configuration file, put <installed facet="jst.web" version ="3.0"/> Just change version="3.0" to version="2.5" and restart eclipse! ! !
Or download a higher version of Tomcat (above Tomcat 7.0).
===================================================== ========
Resolve "Dynamic Web Module 3.0 requires Java 1.6 or newer." error ////////////////// whether it is the top-level employeeBenefits-main that depends on Also
///////////////////////////////////////bit, there will be the most underlying layer and all JAR, no Hold it in the lower layer, if the compiled version fails, the jar cannot be
compiled . Add to the <build></build> tag of the pom.xml of the project:
[xml] view plaincopyprint?
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
</configuration>
</plugin>
< /plugins>
Save, right-click on the project folder after the project is built, select Maven->Update Project Configuration, the problem is solved. Changed the pom file to update the project
The compilation problem is also related to the maven compilation level setting
Guess you like
Origin http://10.200.1.11:23101/article/api/json?id=326779937&siteId=291194637
Ranking