pom.xml 16 KB

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