pom.xml 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <parent>
  5. <artifactId>aivfo-data-transmission</artifactId>
  6. <groupId>com.aivfo</groupId>
  7. <version>2.2.3.0-SNAPSHOT</version>
  8. </parent>
  9. <modelVersion>4.0.0</modelVersion>
  10. <artifactId>aivfo-data-transmission-lanucher</artifactId>
  11. <dependencies>
  12. <!-- ==========serviceImpl、controller========= -->
  13. <dependency>
  14. <groupId>com.aivfo</groupId>
  15. <artifactId>aivfo-data-transmission-service-impl</artifactId>
  16. </dependency>
  17. <dependency>
  18. <groupId>com.aivfo</groupId>
  19. <artifactId>aivfo-data-transmission-controller</artifactId>
  20. </dependency>
  21. <dependency>
  22. <groupId>com.aivfo</groupId>
  23. <artifactId>aivfo-mybatis-plus-spring-boot-starter</artifactId>
  24. </dependency>
  25. <dependency>
  26. <groupId>com.aivfo</groupId>
  27. <artifactId>aivfo-nacos-spring-boot-starter</artifactId>
  28. </dependency>
  29. <dependency>
  30. <groupId>com.aivfo</groupId>
  31. <artifactId>aivfo-safety-spring-boot-starter</artifactId>
  32. </dependency>
  33. <dependency>
  34. <groupId>com.aivfo</groupId>
  35. <artifactId>aivfo-data-transmission-rpc</artifactId>
  36. </dependency>
  37. <!-- 操作日志 Kafka 发送端:本服务已引入 aivfo-kafka-spring-boot-starter,
  38. 引入后 KafkaOperationLogSender 自动装配(@ConditionalOnBean ProducerNormal),
  39. 被 @OperateLog 标注的方法会采集操作日志并发往 tl-oplog 主题。 -->
  40. <dependency>
  41. <groupId>com.aivfo</groupId>
  42. <artifactId>aivfo-oplog-client</artifactId>
  43. </dependency>
  44. <!-- ==========serviceImpl、controller========= -->
  45. </dependencies>
  46. <build>
  47. <resources>
  48. <resource>
  49. <directory>src/main/resources</directory>
  50. <excludes>
  51. <exclude>application-dev.properties</exclude>
  52. <exclude>application-hospital.properties</exclude>
  53. <exclude>application-test.properties</exclude>
  54. </excludes>
  55. </resource>
  56. </resources>
  57. <plugins>
  58. <plugin>
  59. <groupId>org.springframework.boot</groupId>
  60. <artifactId>spring-boot-maven-plugin</artifactId>
  61. <version>2.2.7.RELEASE</version>
  62. <configuration>
  63. <skip>false</skip>
  64. </configuration>
  65. <executions>
  66. <execution>
  67. <goals>
  68. <goal>repackage</goal>
  69. </goals>
  70. </execution>
  71. </executions>
  72. </plugin>
  73. <plugin>
  74. <groupId>org.apache.maven.plugins</groupId>
  75. <artifactId>maven-deploy-plugin</artifactId>
  76. <configuration>
  77. <skip>true</skip>
  78. </configuration>
  79. </plugin>
  80. <!-- 使用assembly插件打成zip -->
  81. <plugin>
  82. <groupId>org.apache.maven.plugins</groupId>
  83. <artifactId>maven-assembly-plugin</artifactId>
  84. <configuration>
  85. <!-- 指定assembly配置文件路径 -->
  86. <descriptors><descriptor>src/assembly/assembly.xml</descriptor></descriptors>
  87. <finalName>${project.name}</finalName>
  88. </configuration>
  89. <executions>
  90. <execution>
  91. <!-- 在执行package打包时,执行assembly:single -->
  92. <phase>package</phase>
  93. <goals>
  94. <!-- 在执行assembly一次 -->
  95. <goal>single</goal>
  96. </goals>
  97. </execution>
  98. </executions>
  99. </plugin>
  100. <plugin>
  101. <groupId>org.codehaus.mojo</groupId>
  102. <artifactId>buildnumber-maven-plugin</artifactId>
  103. <version>1.4</version>
  104. <configuration>
  105. <timestampFormat>yyyyMMddHHmm</timestampFormat>
  106. </configuration>
  107. <executions>
  108. <execution>
  109. <goals>
  110. <goal>create-timestamp</goal>
  111. </goals>
  112. </execution>
  113. </executions>
  114. <inherited>false</inherited>
  115. </plugin>
  116. </plugins>
  117. </build>
  118. </project>