pom.xml 16 KB

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