pom.xml 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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>servlet01</artifactId>
  8. <version>1.0-SNAPSHOT</version>
  9. <name>servlet01</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. <!-- https://mvnrepository.com/artifact/javax.servlet/javax.servlet-api -->
  18. <dependency>
  19. <groupId>javax.servlet</groupId>
  20. <artifactId>javax.servlet-api</artifactId>
  21. <version>4.0.1</version>
  22. <scope>provided</scope>
  23. </dependency>
  24. </dependencies>
  25. <build>
  26. <plugins>
  27. <!--Tomcat插件 -->
  28. <plugin>
  29. <groupId>org.apache.tomcat.maven</groupId>
  30. <artifactId>tomcat7-maven-plugin</artifactId>
  31. <version>2.2</version>
  32. <configuration>
  33. <!--项目访问路径 -->
  34. <path>/web01</path>
  35. <!--端口-->
  36. <port>8080</port>
  37. <!-- 编码 -->
  38. <uriEncoding>UTF-8</uriEncoding>
  39. </configuration>
  40. </plugin>
  41. </plugins>
  42. </build>
  43. </project>