pom.xml 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370
  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. <modelVersion>4.0.0</modelVersion>
  6. <groupId>com.dragoninfo</groupId>
  7. <artifactId>dcuc-auth-back</artifactId>
  8. <version>2.5.0-tjdsj-SNAPSHOT</version>
  9. <properties>
  10. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  11. <maven.compiler.source>1.8</maven.compiler.source>
  12. <maven.compiler.target>1.8</maven.compiler.target>
  13. <!--revisions需写死,用于标识打包的版本号,不可删除-->
  14. <revision>2.4.2-tjdsj-SNAPSHOT</revision>
  15. <duceap.version>2.1.0-SNAPSHOT</duceap.version>
  16. <lombok.version>1.18.2</lombok.version>
  17. <jwt.version>3.10.3</jwt.version>
  18. </properties>
  19. <dependencyManagement>
  20. <dependencies>
  21. <!-- 导入duceap-cloud 2.0 POM定义-->
  22. <dependency>
  23. <groupId>com.dragonsoft</groupId>
  24. <artifactId>duceap-cloud-parent</artifactId>
  25. <version>${duceap.version}</version>
  26. <type>pom</type>
  27. <scope>import</scope>
  28. </dependency>
  29. </dependencies>
  30. </dependencyManagement>
  31. <dependencies>
  32. <!--配置 spring boot 开始-->
  33. <!--配置处理-->
  34. <dependency>
  35. <groupId>org.springframework.boot</groupId>
  36. <artifactId>spring-boot-configuration-processor</artifactId>
  37. <optional>true</optional>
  38. </dependency>
  39. <!--监控配置-->
  40. <dependency>
  41. <groupId>org.springframework.boot</groupId>
  42. <artifactId>spring-boot-starter-actuator</artifactId>
  43. <exclusions>
  44. <exclusion>
  45. <artifactId>HdrHistogram</artifactId>
  46. <groupId>org.hdrhistogram</groupId>
  47. </exclusion>
  48. </exclusions>
  49. </dependency>
  50. <dependency>
  51. <groupId>org.springframework.boot</groupId>
  52. <artifactId>spring-boot-starter-websocket</artifactId>
  53. </dependency>
  54. <!--配置 spring boot 结束-->
  55. <!--配置 duceap 开始-->
  56. <dependency>
  57. <groupId>com.dragonsoft</groupId>
  58. <artifactId>duceap-boot-starter</artifactId>
  59. <exclusions>
  60. <exclusion>
  61. <artifactId>duceap-core-repository-jpa</artifactId>
  62. <groupId>com.dragonsoft</groupId>
  63. </exclusion>
  64. </exclusions>
  65. </dependency>
  66. <!-- 引入duceap-cloud核心包-->
  67. <dependency>
  68. <groupId>com.dragonsoft</groupId>
  69. <artifactId>duceap-cloud-starter</artifactId>
  70. </dependency>
  71. <!--配置中心-->
  72. <dependency>
  73. <groupId>com.dragonsoft</groupId>
  74. <artifactId>duceap-cloud-starter-config-apollo</artifactId>
  75. </dependency>
  76. <dependency>
  77. <groupId>com.dragonsoft</groupId>
  78. <artifactId>duceap-security-dcuc</artifactId>
  79. </dependency>
  80. <!--配置 duceap 结束-->
  81. <!--许可-->
  82. <dependency>
  83. <groupId>com.dragonsoft</groupId>
  84. <artifactId>duceap-support-license</artifactId>
  85. </dependency>
  86. <!--许可依赖包 结束-->
  87. <!--redis缓存-->
  88. <dependency>
  89. <groupId>com.dragonsoft</groupId>
  90. <artifactId>duceap-boot-starter-cache-redis</artifactId>
  91. <exclusions>
  92. <exclusion>
  93. <artifactId>spring-jdbc</artifactId>
  94. <groupId>org.springframework</groupId>
  95. </exclusion>
  96. </exclusions>
  97. </dependency>
  98. <!--配置 dcuc 开始-->
  99. <dependency>
  100. <groupId>com.dragoninfo</groupId>
  101. <artifactId>dcuc-common</artifactId>
  102. <version>2.1.0-tjdsj-SNAPSHOT</version>
  103. <scope>compile</scope>
  104. </dependency>
  105. <dependency>
  106. <groupId>com.dragoninfo</groupId>
  107. <artifactId>dcuc-auth-api</artifactId>
  108. <version>2.5.0-tjdsj-SNAPSHOT</version>
  109. </dependency>
  110. <dependency>
  111. <groupId>com.dragoninfo</groupId>
  112. <artifactId>dcuc-app-api</artifactId>
  113. <version>2.2.4-tjdsj-SNAPSHOT</version>
  114. </dependency>
  115. <dependency>
  116. <groupId>com.dragoninfo</groupId>
  117. <artifactId>dcuc-coder-api</artifactId>
  118. <version>2.0.1-SNAPSHOT</version>
  119. <exclusions>
  120. <exclusion>
  121. <artifactId>dcuc-duceap-model</artifactId>
  122. <groupId>com.dragoninfo</groupId>
  123. </exclusion>
  124. </exclusions>
  125. </dependency>
  126. <dependency>
  127. <groupId>com.dragoninfo</groupId>
  128. <artifactId>dcuc-duceap-api</artifactId>
  129. <version>2.1.2-SNAPSHOT</version>
  130. </dependency>
  131. <dependency>
  132. <groupId>org.springframework.boot</groupId>
  133. <artifactId>spring-boot-starter-validation</artifactId>
  134. <version>2.4.2</version>
  135. </dependency>
  136. <dependency>
  137. <groupId>com.auth0</groupId>
  138. <artifactId>java-jwt</artifactId>
  139. <version>${jwt.version}</version>
  140. </dependency>
  141. <!--配置 dcuc 结束-->
  142. <!-- <dependency>-->
  143. <!-- <groupId>net.unicon.cas</groupId>-->
  144. <!-- <artifactId>cas-client-autoconfig-support</artifactId>-->
  145. <!-- <version>2.1.0-GA</version>-->
  146. <!-- <exclusions>-->
  147. <!-- <exclusion>-->
  148. <!-- <artifactId>joda-time</artifactId>-->
  149. <!-- <groupId>joda-time</groupId>-->
  150. <!-- </exclusion>-->
  151. <!-- </exclusions>-->
  152. <!-- </dependency>-->
  153. <!-- https://mvnrepository.com/artifact/log4j/log4j -->
  154. <dependency>
  155. <groupId>com.squareup.okhttp</groupId>
  156. <artifactId>okhttp</artifactId>
  157. <version>2.7.5</version>
  158. </dependency>
  159. <dependency>
  160. <groupId>com.google.code.gson</groupId>
  161. <artifactId>gson</artifactId>
  162. <version>2.8.6</version>
  163. </dependency>
  164. <dependency>
  165. <groupId>org.projectlombok</groupId>
  166. <artifactId>lombok</artifactId>
  167. <version>${lombok.version}</version>
  168. <scope>provided</scope>
  169. </dependency>
  170. <dependency>
  171. <groupId>net.sf.ezmorph</groupId>
  172. <artifactId>ezmorph</artifactId>
  173. <version>1.0.6</version>
  174. <scope>compile</scope>
  175. </dependency>
  176. <!--dids-->
  177. <dependency>
  178. <groupId>com.dragonsoft</groupId>
  179. <artifactId>duceap-security-dids</artifactId>
  180. </dependency>
  181. <!--测试-->
  182. <dependency>
  183. <groupId>org.springframework.boot</groupId>
  184. <artifactId>spring-boot-starter-test</artifactId>
  185. <scope>test</scope>
  186. </dependency>
  187. <dependency>
  188. <groupId>com.dragonsoft</groupId>
  189. <artifactId>duceap-security-jwt</artifactId>
  190. </dependency>
  191. </dependencies>
  192. <!--指定仓库地址-->
  193. <repositories>
  194. <repository>
  195. <id>public-repository</id>
  196. <name>Team Nexus Release Repository</name>
  197. <url>http://192.168.6.13:8081/nexus/content/groups/public</url>
  198. </repository>
  199. <repository>
  200. <id>duceap-releases</id>
  201. <name>Team Nexus Release Repository</name>
  202. <url>http://192.168.6.13:8081/nexus/content/groups/Dragon</url>
  203. <releases>
  204. <enabled>true</enabled>
  205. <updatePolicy>always</updatePolicy>
  206. </releases>
  207. <snapshots>
  208. <enabled>true</enabled>
  209. <updatePolicy>always</updatePolicy>
  210. </snapshots>
  211. </repository>
  212. </repositories>
  213. <!-- 设定插件仓库 如有Nexus私服, 取消注释并指向正确的服务器地址.-->
  214. <pluginRepositories>
  215. <pluginRepository>
  216. <id>nexus</id>
  217. <name>Team Nexus Repository</name>
  218. <url>http://192.168.6.13:8081/nexus/content/groups/public</url>
  219. <releases>
  220. <enabled>true</enabled>
  221. <updatePolicy>always</updatePolicy>
  222. </releases>
  223. <snapshots>
  224. <enabled>true</enabled>
  225. <updatePolicy>always</updatePolicy>
  226. </snapshots>
  227. </pluginRepository>
  228. </pluginRepositories>
  229. <distributionManagement>
  230. <repository>
  231. <id>duceap-releases</id>
  232. <name>Team Nexus Release Repository</name>
  233. <url>http://192.168.6.13:8081/nexus/content/repositories/duceap-releases/</url>
  234. </repository>
  235. <snapshotRepository>
  236. <id>duceap-snapshots</id>
  237. <name>Team Nexus Snapshot Repository</name>
  238. <url>http://192.168.6.13:8081/nexus/content/repositories/duceap-snapshots</url>
  239. <uniqueVersion>false</uniqueVersion>
  240. </snapshotRepository>
  241. </distributionManagement>
  242. <packaging>${project.packaging}</packaging>
  243. <profiles>
  244. <profile>
  245. <id>jar</id>
  246. <activation>
  247. <activeByDefault>true</activeByDefault>
  248. </activation>
  249. <properties>
  250. <project.packaging>jar</project.packaging>
  251. </properties>
  252. <build>
  253. <plugins>
  254. <plugin>
  255. <artifactId>maven-dependency-plugin</artifactId>
  256. <version>2.6</version>
  257. <executions>
  258. <execution>
  259. <id>copy-libs</id>
  260. <phase>package</phase>
  261. <goals>
  262. <goal>copy-dependencies</goal>
  263. </goals>
  264. <configuration>
  265. <!--排除licenseignore包,用来禁用许可开关,防止生产环境通过关闭开关,绕过许可-->
  266. <!-- <excludeArtifactIds>duceap-support-licenseignore</excludeArtifactIds>-->
  267. <excludeScope>provided</excludeScope>
  268. <outputDirectory>${project.build.directory}/lib</outputDirectory>
  269. <!--取消依赖包的时间戳-->
  270. <useBaseVersion>true</useBaseVersion>
  271. </configuration>
  272. </execution>
  273. <execution>
  274. <id>unpack</id>
  275. <phase>package</phase>
  276. <goals>
  277. <goal>unpack</goal>
  278. </goals>
  279. <configuration>
  280. <artifactItems>
  281. <artifactItem>
  282. <groupId>com.dragonsoft</groupId>
  283. <artifactId>duceap-base</artifactId>
  284. <!--根据框架版本修改-->
  285. <version>2.1.0-SNAPSHOT</version>
  286. <!--<version>2.1.0-SNAPSHOT</version>-->
  287. <outputDirectory>${project.build.directory}/temp</outputDirectory>
  288. <!--加入平台的启动脚本-->
  289. <includes>META-INF/scripts/**</includes>
  290. </artifactItem>
  291. </artifactItems>
  292. </configuration>
  293. </execution>
  294. </executions>
  295. </plugin>
  296. <plugin>
  297. <artifactId>maven-assembly-plugin</artifactId>
  298. <version>2.5.5</version>
  299. <executions>
  300. <execution>
  301. <id>make-assembly</id>
  302. <phase>package</phase>
  303. <goals>
  304. <goal>single</goal>
  305. </goals>
  306. <configuration>
  307. <finalName>${project.name}-${project.version}</finalName>
  308. <appendAssemblyId>false</appendAssemblyId>
  309. <!--配置描述文件路径-->
  310. <descriptor>src/main/assembly/assembly.xml</descriptor>
  311. </configuration>
  312. </execution>
  313. </executions>
  314. </plugin>
  315. <plugin>
  316. <groupId>org.apache.maven.plugins</groupId>
  317. <artifactId>maven-jar-plugin</artifactId>
  318. <version>2.4</version>
  319. <configuration>
  320. <archive>
  321. <manifest>
  322. <!--运行jar包时运行的主类,要求类全名-->
  323. <mainClass>com.dragoninfo.dcuc.authweb.DcucAuthWebApplication</mainClass>
  324. <addClasspath>true</addClasspath>
  325. <!--取消MANIFEST.MF中classpath下的时间戳-->
  326. <useUniqueVersions>false</useUniqueVersions>
  327. </manifest>
  328. </archive>
  329. </configuration>
  330. </plugin>
  331. <plugin>
  332. <groupId>org.apache.maven.plugins</groupId>
  333. <artifactId>maven-compiler-plugin</artifactId>
  334. <version>3.6.0</version>
  335. <configuration>
  336. <source>8</source>
  337. <target>8</target>
  338. </configuration>
  339. </plugin>
  340. </plugins>
  341. </build>
  342. </profile>
  343. </profiles>
  344. </project>