Issue 1: Importing Project Tips cannot change version of project facet Dynamic Web Module to 2.5
Solution:
In the project directory there is a. Settings folder, open Org.eclipse.wst.common.project.facet.core.xml, make the following changes:
Change the version of this line to 2.5. <installed facet= "Jst.web" version= "2.5"/>
Issue 2: "Dynamic Web Module 3.0 requires Java 1.6 or newer." Error
Solution:
Eclipse maven
In the Pom.xml <build></build> tag of the project, add:
<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, after the project is built, right-click on the project folder and select Maven->update Project Configuration to solve the problem.
Issue 3: Import the project report Maven Error "Failure to transfer ..."
Solution: Remove all packages that failed to download
Linux:
Find ~/.m2-name "*.lastupdated"-exec grep-q "Could not transfer" {} \; -print-exec rm {} \;
Windows:
CD%userprofile%\.m2\repositoryfor/r%i in (*.lastupdated) do del%i
This article is from the "no programming, no Life" blog, please be sure to keep this source http://51coding.blog.51cto.com/6079322/1718585
MAVEN FAQ Solution