pom.xml 4.5 KB

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