pom.xml 4.8 KB

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