pom.xml 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  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. <parent>
  7. <groupId>org.springframework.boot</groupId>
  8. <artifactId>spring-boot-starter-parent</artifactId>
  9. <version>2.6.3</version>
  10. <relativePath/> <!-- lookup parent from repository -->
  11. </parent>
  12. <groupId>com.shcd</groupId>
  13. <artifactId>SpringMail</artifactId>
  14. <version>0.0.1-SNAPSHOT</version>
  15. <packaging>war</packaging>
  16. <name>SpringMail</name>
  17. <description>Demo project for Spring Boot</description>
  18. <properties>
  19. <java.version>1.8</java.version>
  20. </properties>
  21. <dependencies>
  22. <!-- spring相关-->
  23. <dependency>
  24. <groupId>org.springframework.boot</groupId>
  25. <artifactId>spring-boot-starter-mail</artifactId>
  26. </dependency>
  27. <dependency>
  28. <groupId>org.springframework.boot</groupId>
  29. <artifactId>spring-boot-starter-web</artifactId>
  30. </dependency>
  31. <dependency>
  32. <groupId>org.mybatis.spring.boot</groupId>
  33. <artifactId>mybatis-spring-boot-starter</artifactId>
  34. <version>2.2.2</version>
  35. </dependency>
  36. <dependency>
  37. <groupId>org.springframework.boot</groupId>
  38. <artifactId>spring-boot-starter-tomcat</artifactId>
  39. <scope>provided</scope>
  40. </dependency>
  41. <!-- 工具-->
  42. <dependency>
  43. <groupId>com.alibaba</groupId>
  44. <artifactId>fastjson</artifactId>
  45. <version>1.2.83</version>
  46. </dependency>
  47. <dependency>
  48. <groupId>org.projectlombok</groupId>
  49. <artifactId>lombok</artifactId>
  50. <optional>true</optional>
  51. </dependency>
  52. <dependency>
  53. <groupId>org.apache.commons</groupId>
  54. <artifactId>commons-lang3</artifactId>
  55. <version>3.9</version>
  56. </dependency>
  57. <dependency>
  58. <groupId>cn.hutool</groupId>
  59. <artifactId>hutool-all</artifactId>
  60. <version>5.5.2</version>
  61. </dependency>
  62. <!-- sqlite数据库-->
  63. <dependency>
  64. <groupId>org.xerial</groupId>
  65. <artifactId>sqlite-jdbc</artifactId>
  66. <version>3.27.2.1</version>
  67. </dependency>
  68. <dependency>
  69. <groupId>org.springframework.boot</groupId>
  70. <artifactId>spring-boot-starter-jdbc</artifactId>
  71. </dependency>
  72. </dependencies>
  73. <build>
  74. <finalName>SpringMail</finalName>
  75. <plugins>
  76. <plugin>
  77. <groupId>org.springframework.boot</groupId>
  78. <artifactId>spring-boot-maven-plugin</artifactId>
  79. <configuration>
  80. <excludes>
  81. <exclude>
  82. <groupId>org.projectlombok</groupId>
  83. <artifactId>lombok</artifactId>
  84. </exclude>
  85. </excludes>
  86. </configuration>
  87. </plugin>
  88. </plugins>
  89. <resources>
  90. <resource>
  91. <!--打包时先排除不必要的文件,想要指定加入的再下面的resource指定-->
  92. <directory>${project.basedir}/src/main/resources</directory>
  93. <excludes>
  94. <exclude>profile/**</exclude>
  95. </excludes>
  96. </resource>
  97. </resources>
  98. </build>
  99. </project>