首页 > 代码库 > Dynamic Web Module 2.3 change to 3.0 maven工程解决办法

Dynamic Web Module 2.3 change to 3.0 maven工程解决办法

pom.xml

 1 <plugins>
 2             <plugin>
 3                 <groupId>org.apache.maven.plugins</groupId>
 4                 <artifactId>maven-compiler-plugin</artifactId>
 5                 <version>3.1</version>
 6                 <configuration>
 7                     <source>1.7</source>
 8                     <target>1.7</target>
 9                 </configuration>
10             </plugin>
11         </plugins>

web.xml

1 <?xml version="1.0" encoding="UTF-8"?>
2 <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3     xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee 
4                 http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"
5     version="3.1" xmlns="http://xmlns.jcp.org/xml/ns/javaee">
6 
7 </web-app>

org.eclipse.wst.common.project.facet.core.xml

1 <?xml version="1.0" encoding="UTF-8"?>
2 <faceted-project>
3   <fixed facet="wst.jsdt.web"/>
4   <installed facet="wst.jsdt.web" version="1.0"/>
5   <installed facet="java" version="1.7"/>
6   <installed facet="jst.web" version="3.0"/>
7 </faceted-project>

 

Dynamic Web Module 2.3 change to 3.0 maven工程解决办法