pom.xml 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <parent>
  6. <groupId>top.continew</groupId>
  7. <artifactId>continew-admin</artifactId>
  8. <version>${revision}</version>
  9. </parent>
  10. <artifactId>continew-appapi</artifactId>
  11. <version>3.4.0</version>
  12. <name>continew-appapi</name>
  13. <description>gold-coin的app接口</description>
  14. <properties>
  15. <!-- ### 打包配置相关 ### -->
  16. <!-- 启动类 -->
  17. <main-class>top.continew.admin.ContinewAppApiApplication</main-class>
  18. <!-- 程序 jar 输出目录 -->
  19. <bin-path>bin/</bin-path>
  20. <!-- 配置文件输出目录 -->
  21. <config-path>config/</config-path>
  22. <!-- 依赖 jar 输出目录 -->
  23. <lib-path>lib/</lib-path>
  24. </properties>
  25. <dependencies>
  26. <!-- ContiNew Starter 日志模块 - 拦截器版(Spring Boot Actuator HttpTrace 增强版) -->
  27. <dependency>
  28. <groupId>top.continew</groupId>
  29. <artifactId>continew-starter-log-interceptor</artifactId>
  30. </dependency>
  31. <!-- 系统管理模块(存放系统管理模块相关功能,例如:部门管理、角色管理、用户管理等) -->
  32. <dependency>
  33. <groupId>top.continew</groupId>
  34. <artifactId>continew-module-coin-core</artifactId>
  35. </dependency>
  36. <!-- 任务调度插件(后续会改造为独立插件) -->
  37. <dependency>
  38. <groupId>top.continew</groupId>
  39. <artifactId>continew-plugin-schedule</artifactId>
  40. </dependency>
  41. <!-- 能力开放插件(后续会改造为独立插件) -->
  42. <dependency>
  43. <groupId>top.continew</groupId>
  44. <artifactId>continew-plugin-open</artifactId>
  45. </dependency>
  46. <!-- 代码生成器插件(后续会改造为独立插件) -->
  47. <dependency>
  48. <groupId>top.continew</groupId>
  49. <artifactId>continew-plugin-generator</artifactId>
  50. </dependency>
  51. <!-- Liquibase(用于管理数据库版本,跟踪、管理和应用数据库变化) -->
  52. <dependency>
  53. <groupId>org.liquibase</groupId>
  54. <artifactId>liquibase-core</artifactId>
  55. </dependency>
  56. <dependency>
  57. <groupId>org.springframework.boot</groupId>
  58. <artifactId>spring-boot-starter-test</artifactId>
  59. <scope>test</scope>
  60. </dependency>
  61. </dependencies>
  62. <build>
  63. <!-- 设置构建的 jar 包名 -->
  64. <finalName>${project.parent.name}</finalName>
  65. <plugins>
  66. <!-- Maven 打包插件 -->
  67. <plugin>
  68. <groupId>org.apache.maven.plugins</groupId>
  69. <artifactId>maven-jar-plugin</artifactId>
  70. <configuration>
  71. <!-- 排除配置文件 -->
  72. <excludes>
  73. <exclude>${config-path}</exclude>
  74. <exclude>db/</exclude>
  75. <exclude>templates/</exclude>
  76. <exclude>logback-spring.xml</exclude>
  77. </excludes>
  78. <archive>
  79. <manifest>
  80. <mainClass>${main-class}</mainClass>
  81. <!-- 为 MANIFEST.MF 中的 Class-Path 加入依赖 jar 目录前缀 -->
  82. <classpathPrefix>../${lib-path}</classpathPrefix>
  83. <addClasspath>true</addClasspath>
  84. <!-- jar 包不包含唯一版本标识 -->
  85. <useUniqueVersions>false</useUniqueVersions>
  86. </manifest>
  87. <manifestEntries>
  88. <!--为 MANIFEST.MF 中的 Class-Path 加入配置文件目录前缀 -->
  89. <Class-Path>../${config-path}</Class-Path>
  90. </manifestEntries>
  91. </archive>
  92. <outputDirectory>${project.build.directory}/app/${bin-path}</outputDirectory>
  93. </configuration>
  94. </plugin>
  95. <!-- 拷贝依赖 jar -->
  96. <plugin>
  97. <groupId>org.apache.maven.plugins</groupId>
  98. <artifactId>maven-dependency-plugin</artifactId>
  99. <executions>
  100. <execution>
  101. <id>copy-dependencies</id>
  102. <phase>package</phase>
  103. <goals>
  104. <goal>copy-dependencies</goal>
  105. </goals>
  106. <configuration>
  107. <outputDirectory>${project.build.directory}/app/${lib-path}</outputDirectory>
  108. </configuration>
  109. </execution>
  110. </executions>
  111. </plugin>
  112. <!-- 拷贝配置文件 -->
  113. <plugin>
  114. <groupId>org.apache.maven.plugins</groupId>
  115. <artifactId>maven-resources-plugin</artifactId>
  116. <executions>
  117. <execution>
  118. <id>copy-resources</id>
  119. <phase>package</phase>
  120. <goals>
  121. <goal>copy-resources</goal>
  122. </goals>
  123. <configuration>
  124. <resources>
  125. <resource>
  126. <directory>src/main/resources/${config-path}</directory>
  127. </resource>
  128. <resource>
  129. <directory>src/main/resources</directory>
  130. <includes>
  131. <include>db/</include>
  132. <include>templates/</include>
  133. <include>logback-spring.xml</include>
  134. </includes>
  135. </resource>
  136. </resources>
  137. <outputDirectory>${project.build.directory}/app/${config-path}</outputDirectory>
  138. </configuration>
  139. </execution>
  140. </executions>
  141. </plugin>
  142. </plugins>
  143. </build>
  144. </project>