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