pom.xml 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
  5. <modelVersion>4.0.0</modelVersion>
  6. <groupId>com.lc</groupId>
  7. <artifactId>servelet04</artifactId>
  8. <version>1.0-SNAPSHOT</version>
  9. <name>servelet04</name>
  10. <packaging>war</packaging>
  11. <properties>
  12. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  13. <maven.compiler.target>11</maven.compiler.target>
  14. <maven.compiler.source>11</maven.compiler.source>
  15. </properties>
  16. <dependencies>
  17. <dependency>
  18. <groupId>javax.servlet</groupId>
  19. <artifactId>javax.servlet-api</artifactId>
  20. <version>3.1.0</version>
  21. <scope>provided</scope>
  22. </dependency>
  23. <!--jstl-->
  24. <dependency>
  25. <groupId>jstl</groupId>
  26. <artifactId>jstl</artifactId>
  27. <version>1.2</version>
  28. </dependency>
  29. <dependency>
  30. <groupId>javax.servlet.jsp</groupId>
  31. <artifactId>jsp-api</artifactId>
  32. <version>2.2</version>
  33. <scope>provided</scope>
  34. </dependency>
  35. </dependencies>
  36. <build>
  37. <plugins>
  38. <!--Tomcat插件 -->
  39. <plugin>
  40. <groupId>org.apache.tomcat.maven</groupId>
  41. <artifactId>tomcat7-maven-plugin</artifactId>
  42. <version>2.2</version>
  43. <configuration>
  44. <!--项目访问路径 -->
  45. <path>/web04</path>
  46. <!--端口-->
  47. <port>8080</port>
  48. <!-- 编码 -->
  49. <uriEncoding>UTF-8</uriEncoding>
  50. </configuration>
  51. </plugin>
  52. </plugins>
  53. </build>
  54. </project>