pom.xml 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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>servlet03</artifactId>
  8. <version>1.0-SNAPSHOT</version>
  9. <name>servlet03</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>4.0.1</version>
  21. <scope>provided</scope>
  22. </dependency>
  23. <!--mysql-->
  24. <dependency>
  25. <groupId>mysql</groupId>
  26. <artifactId>mysql-connector-java</artifactId>
  27. <version>5.1.47</version>
  28. </dependency>
  29. <!--mybatis-->
  30. <dependency>
  31. <groupId>org.mybatis</groupId>
  32. <artifactId>mybatis</artifactId>
  33. <version>3.5.6</version>
  34. </dependency>
  35. <!--jstl-->
  36. <dependency>
  37. <groupId>jstl</groupId>
  38. <artifactId>jstl</artifactId>
  39. <version>1.2</version>
  40. </dependency>
  41. <dependency>
  42. <groupId>javax.servlet.jsp</groupId>
  43. <artifactId>jsp-api</artifactId>
  44. <version>2.2</version>
  45. <scope>provided</scope>
  46. </dependency>
  47. </dependencies>
  48. <build>
  49. <plugins>
  50. <!--Tomcat插件 -->
  51. <plugin>
  52. <groupId>org.apache.tomcat.maven</groupId>
  53. <artifactId>tomcat7-maven-plugin</artifactId>
  54. <version>2.2</version>
  55. <configuration>
  56. <!--项目访问路径 -->
  57. <path>/web02</path>
  58. <!--端口-->
  59. <port>8090</port>
  60. <!-- 编码 -->
  61. <uriEncoding>UTF-8</uriEncoding>
  62. </configuration>
  63. </plugin>
  64. </plugins>
  65. </build>
  66. </project>