pom.xml 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5. <parent>
  6. <artifactId>jjt</artifactId>
  7. <groupId>com.jjt</groupId>
  8. <version>3.8.9</version>
  9. </parent>
  10. <modelVersion>4.0.0</modelVersion>
  11. <packaging>jar</packaging>
  12. <artifactId>jjt-admin</artifactId>
  13. <description>
  14. web服务入口
  15. </description>
  16. <dependencies>
  17. <dependency>
  18. <groupId>org.springframework.boot</groupId>
  19. <artifactId>spring-boot-starter-test</artifactId>
  20. <scope>test</scope>
  21. </dependency>
  22. <!-- spring-boot-devtools -->
  23. <dependency>
  24. <groupId>org.springframework.boot</groupId>
  25. <artifactId>spring-boot-devtools</artifactId>
  26. <optional>true</optional> <!-- 表示依赖不会传递 -->
  27. </dependency>
  28. <!-- swagger3-->
  29. <dependency>
  30. <groupId>io.springfox</groupId>
  31. <artifactId>springfox-boot-starter</artifactId>
  32. </dependency>
  33. <!-- 防止进入swagger页面报类型转换错误,排除3.0.0中的引用,手动增加1.6.2版本 -->
  34. <dependency>
  35. <groupId>io.swagger</groupId>
  36. <artifactId>swagger-models</artifactId>
  37. <version>1.6.2</version>
  38. </dependency>
  39. <!--sqlserver数据库配置-->
  40. <dependency>
  41. <groupId>com.microsoft.sqlserver</groupId>
  42. <artifactId>mssql-jdbc</artifactId>
  43. </dependency>
  44. <!-- Mysql驱动包 -->
  45. <dependency>
  46. <groupId>mysql</groupId>
  47. <artifactId>mysql-connector-java</artifactId>
  48. </dependency>
  49. <!-- 核心模块-->
  50. <dependency>
  51. <groupId>com.jjt</groupId>
  52. <artifactId>jjt-framework</artifactId>
  53. </dependency>
  54. <!-- 定时任务-->
  55. <dependency>
  56. <groupId>com.jjt</groupId>
  57. <artifactId>jjt-quartz</artifactId>
  58. </dependency>
  59. <!-- 代码生成-->
  60. <dependency>
  61. <groupId>com.jjt</groupId>
  62. <artifactId>jjt-generator</artifactId>
  63. </dependency>
  64. <!-- 业务模块 -->
  65. <dependency>
  66. <groupId>com.jjt</groupId>
  67. <artifactId>jjt-biz</artifactId>
  68. </dependency>
  69. </dependencies>
  70. <build>
  71. <plugins>
  72. <!--分离打包 -->
  73. <plugin>
  74. <groupId>org.springframework.boot</groupId>
  75. <artifactId>spring-boot-maven-plugin</artifactId>
  76. <version>2.5.15</version>
  77. <configuration>
  78. <fork>true</fork> <!-- 如果没有该配置,devtools不会生效 -->
  79. <executable>true</executable>
  80. <layout>ZIP</layout>
  81. <!--这里是填写需要包含进去的jar,
  82. 必须项目中的某些模块,会经常变动,那么就应该将其坐标写进来
  83. 如果没有则nothing ,表示不打包依赖 -->
  84. <includes>
  85. <!-- 定时任务-->
  86. <include>
  87. <groupId>com.jjt</groupId>
  88. <artifactId>jjt-quartz</artifactId>
  89. </include>
  90. <!-- 代码生成-->
  91. <include>
  92. <groupId>com.jjt</groupId>
  93. <artifactId>jjt-generator</artifactId>
  94. </include>
  95. <!-- 核心模块-->
  96. <include>
  97. <groupId>com.jjt</groupId>
  98. <artifactId>jjt-framework</artifactId>
  99. </include>
  100. <!-- 系统模块-->
  101. <include>
  102. <groupId>com.jjt</groupId>
  103. <artifactId>jjt-system</artifactId>
  104. </include>
  105. <!-- 通用工具-->
  106. <include>
  107. <groupId>com.jjt</groupId>
  108. <artifactId>jjt-common</artifactId>
  109. </include>
  110. <!-- 业务模块-->
  111. <include>
  112. <groupId>com.jjt</groupId>
  113. <artifactId>jjt-biz</artifactId>
  114. </include>
  115. </includes>
  116. </configuration>
  117. <executions>
  118. <execution>
  119. <goals>
  120. <goal>repackage</goal>
  121. </goals>
  122. </execution>
  123. </executions>
  124. </plugin>
  125. <!--拷贝依赖到jar外面的lib目录-->
  126. <plugin>
  127. <groupId>org.apache.maven.plugins</groupId>
  128. <artifactId>maven-dependency-plugin</artifactId>
  129. <executions>
  130. <execution>
  131. <id>copy</id>
  132. <phase>package</phase>
  133. <goals>
  134. <goal>copy-dependencies</goal>
  135. </goals>
  136. <configuration>
  137. <!--指定的依赖路径-->
  138. <outputDirectory>${project.build.directory}/lib</outputDirectory>
  139. <!--排除的ArtifactId-->
  140. <excludeArtifactIds>jjt-framework,jjt-system,jjt-quartz,jjt-generator,jjt-common,jjt-biz
  141. </excludeArtifactIds>
  142. </configuration>
  143. </execution>
  144. </executions>
  145. </plugin>
  146. </plugins>
  147. <finalName>twin2025</finalName>
  148. </build>
  149. </project>