pom.xml 17 KB

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