pom.xml 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  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 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5. <parent>
  6. <artifactId>backend</artifactId>
  7. <groupId>cn.kdan.pdf.office</groupId>
  8. <version>0.0.1</version>
  9. </parent>
  10. <modelVersion>4.0.0</modelVersion>
  11. <artifactId>pdf-office-email</artifactId>
  12. <description>PDF-OFFICE email发送中心</description>
  13. <packaging>jar</packaging>
  14. <name>pdf-office-email</name>
  15. <url>http://maven.apache.org</url>
  16. <properties>
  17. <maven.compiler.source>8</maven.compiler.source>
  18. <maven.compiler.target>8</maven.compiler.target>
  19. </properties>
  20. <dependencies>
  21. <!-- <dependency>-->
  22. <!-- <groupId>cn.kdan.pdf.office</groupId>-->
  23. <!-- <artifactId>pdf-office-common</artifactId>-->
  24. <!-- <version>0.0.1</version>-->
  25. <!-- </dependency>-->
  26. <dependency>
  27. <groupId>org.springframework.boot</groupId>
  28. <artifactId>spring-boot-starter-freemarker</artifactId>
  29. </dependency>
  30. <dependency>
  31. <groupId>org.springframework.boot</groupId>
  32. <artifactId>spring-boot-starter-web</artifactId>
  33. </dependency>
  34. <dependency>
  35. <groupId>org.springframework.boot</groupId>
  36. <artifactId>spring-boot-starter-test</artifactId>
  37. <scope>test</scope>
  38. </dependency>
  39. <dependency>
  40. <groupId>org.springframework.boot</groupId>
  41. <artifactId>spring-boot-starter-actuator</artifactId>
  42. <scope>compile</scope>
  43. </dependency>
  44. <dependency>
  45. <groupId>com.alibaba.cloud</groupId>
  46. <artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
  47. </dependency>
  48. <dependency>
  49. <groupId>com.alibaba.cloud</groupId>
  50. <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
  51. </dependency>
  52. <dependency>
  53. <groupId>org.springframework.cloud</groupId>
  54. <artifactId>spring-cloud-starter-openfeign</artifactId>
  55. </dependency>
  56. <dependency>
  57. <groupId>org.springframework.cloud</groupId>
  58. <artifactId>spring-cloud-starter-netflix-hystrix</artifactId>
  59. </dependency>
  60. <dependency>
  61. <groupId>org.springframework.boot</groupId>
  62. <artifactId>spring-boot-starter-mail</artifactId>
  63. </dependency>
  64. <dependency>
  65. <groupId>cn.kdan.pdf.office</groupId>
  66. <artifactId>pdf-office-api-email</artifactId>
  67. <version>0.0.1</version>
  68. <scope>compile</scope>
  69. </dependency>
  70. <dependency>
  71. <groupId>com.alibaba</groupId>
  72. <artifactId>druid-spring-boot-starter</artifactId>
  73. </dependency>
  74. <dependency>
  75. <groupId>com.alibaba</groupId>
  76. <artifactId>druid</artifactId>
  77. </dependency>
  78. </dependencies>
  79. <build>
  80. <finalName>pdf-office-email</finalName>
  81. <resources>
  82. <resource>
  83. <directory>src/main/resources</directory>
  84. <includes>
  85. <include>**/*</include>
  86. </includes>
  87. <filtering>true</filtering>
  88. </resource>
  89. </resources>
  90. <plugins>
  91. <plugin>
  92. <groupId>org.springframework.boot</groupId>
  93. <artifactId>spring-boot-maven-plugin</artifactId>
  94. </plugin>
  95. <plugin>
  96. <groupId>org.apache.maven.plugins</groupId>
  97. <artifactId>maven-surefire-plugin</artifactId>
  98. <version>2.22.2</version>
  99. <configuration>
  100. <skipTests>true</skipTests>
  101. </configuration>
  102. </plugin>
  103. <plugin>
  104. <groupId>com.spotify</groupId>
  105. <artifactId>docker-maven-plugin</artifactId>
  106. <version>${docker.version}</version>
  107. <configuration>
  108. <!-- Docker 远程管理地址-->
  109. <dockerHost>http://${docker.host}</dockerHost>
  110. <!--镜像名称-->
  111. <imageName>${project.artifactId}</imageName>
  112. <!--Dockerfile-->
  113. <dockerDirectory>${project.basedir}/docker</dockerDirectory>
  114. <!--插件会将需要的资源拷贝到docker目录下,供Dockerfile里构建镜像使用-->
  115. <resources>
  116. <resource>
  117. <targetPath>/</targetPath>
  118. <directory>${project.build.directory}</directory>
  119. <include>${project.build.finalName}.jar</include>
  120. </resource>
  121. </resources>
  122. </configuration>
  123. </plugin>
  124. </plugins>
  125. </build>
  126. </project>