Home > Web App > [Fixed] Import existing maven project in eclipse: “could not change the facet version of Web…” error

[Fixed] Import existing maven project in eclipse: “could not change the facet version of Web…” error

Step 1: delete the project in eclipse.

Step 2: remove ” .classpath, .settings and .project ” outside

Step 3: import the project back into eclipse.

Step 4: make sure you have a 2.5 web.xml

Step 5:  specifically set the maven-compiler-plugin version to 1.5 in the pom.xml


<build>
...
<plugins>
...
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.5</source>
<target>1.5</target>
</configuration>
</plugin>
...
</plugins>
</build>

Reference:

http://maven.40175.n5.nabble.com/Management-of-version-2-5-of-Dynamic-web-module-td137025.html

Advertisements
Categories: Web App
  1. lak
    November 11, 2013 at 9:49 AM

    good job

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: