While working on maven project, encountered an error:
Cannot change version of project facet Dynamic Web Module to 2.3. line 1 Maven Java EE Configuration Problem
When I tried to run the project it was running fine but always giving the error on eclipse. To remove this error:
1) Click on Project->Properties->Project Facets - Change Java to 1.5, uncheck Dynamic web module and click ok.
2) Check your pom.xml and find build. Change configuration to 1.7
<build>
<finalName>Test
</finalName>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.7</source>
<target>1.7</target>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
3) Go to maven -> Update Project.
4) Change Dynamic web module to 3.1
0 Comment(s)