pom.xml 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  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-tl-control</artifactId>
  6. <groupId>com.aivfo</groupId>
  7. <version>2.2.4.0-SNAPSHOT</version>
  8. </parent>
  9. <modelVersion>4.0.0</modelVersion>
  10. <artifactId>aivfo-tl-control-lanucher</artifactId>
  11. <dependencies>
  12. <!-- ==========serviceImpl、controller========= -->
  13. <dependency>
  14. <groupId>com.aivfo</groupId>
  15. <artifactId>aivfo-tl-control-controller</artifactId>
  16. </dependency>
  17. <!-- ==========serviceImpl、controller========= -->
  18. <dependency>
  19. <groupId>com.aivfo</groupId>
  20. <artifactId>aivfo-nacos-spring-boot-starter</artifactId>
  21. </dependency>
  22. <!-- 操作日志 Kafka 发送端:KafkaOperationLogSender 自动装配(@ConditionalOnBean ProducerNormal) -->
  23. <dependency>
  24. <groupId>com.aivfo</groupId>
  25. <artifactId>aivfo-oplog-client</artifactId>
  26. </dependency>
  27. </dependencies>
  28. <build>
  29. <resources>
  30. <resource>
  31. <directory>src/main/resources</directory>
  32. <excludes>
  33. <exclude>application-dev.properties</exclude>
  34. <exclude>application-hospital.properties</exclude>
  35. <exclude>application-test.properties</exclude>
  36. </excludes>
  37. </resource>
  38. </resources>
  39. <!-- 其他构建配置 -->
  40. <plugins>
  41. <plugin>
  42. <groupId>org.springframework.boot</groupId>
  43. <artifactId>spring-boot-maven-plugin</artifactId>
  44. <version>2.2.7.RELEASE</version>
  45. <configuration>
  46. <skip>false</skip>
  47. </configuration>
  48. <executions>
  49. <execution>
  50. <goals>
  51. <goal>repackage</goal>
  52. </goals>
  53. </execution>
  54. </executions>
  55. </plugin>
  56. <plugin>
  57. <groupId>org.apache.maven.plugins</groupId>
  58. <artifactId>maven-deploy-plugin</artifactId>
  59. <configuration>
  60. <skip>true</skip>
  61. </configuration>
  62. </plugin>
  63. <!-- 使用assembly插件打成zip -->
  64. <plugin>
  65. <groupId>org.apache.maven.plugins</groupId>
  66. <artifactId>maven-assembly-plugin</artifactId>
  67. <configuration>
  68. <!-- 指定assembly配置文件路径 -->
  69. <descriptors><descriptor>src/assembly/assembly.xml</descriptor></descriptors>
  70. <finalName>${project.name}</finalName>
  71. </configuration>
  72. <executions>
  73. <execution>
  74. <!-- 在执行package打包时,执行assembly:single -->
  75. <phase>package</phase>
  76. <goals>
  77. <!-- 在执行assembly一次 -->
  78. <goal>single</goal>
  79. </goals>
  80. </execution>
  81. </executions>
  82. </plugin>
  83. <plugin>
  84. <groupId>org.codehaus.mojo</groupId>
  85. <artifactId>buildnumber-maven-plugin</artifactId>
  86. <version>1.4</version>
  87. <executions>
  88. <execution>
  89. <phase>validate</phase>
  90. <goals>
  91. <goal>create-timestamp</goal>
  92. </goals>
  93. </execution>
  94. </executions>
  95. </plugin>
  96. <plugin>
  97. <groupId>org.codehaus.mojo</groupId>
  98. <artifactId>buildnumber-maven-plugin</artifactId>
  99. <version>1.4</version>
  100. <configuration>
  101. <timestampFormat>yyyyMMddHHmm</timestampFormat>
  102. </configuration>
  103. <executions>
  104. <execution>
  105. <goals>
  106. <goal>create-timestamp</goal>
  107. </goals>
  108. </execution>
  109. </executions>
  110. <inherited>false</inherited>
  111. </plugin>
  112. </plugins>
  113. </build>
  114. </project>