pom.xml 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. ~
  4. ~ Copyright (c) 2018-2025, lengleng All rights reserved.
  5. ~
  6. ~ Redistribution and use in source and binary forms, with or without
  7. ~ modification, are permitted provided that the following conditions are met:
  8. ~
  9. ~ Redistributions of source code must retain the above copyright notice,
  10. ~ this list of conditions and the following disclaimer.
  11. ~ Redistributions in binary form must reproduce the above copyright
  12. ~ notice, this list of conditions and the following disclaimer in the
  13. ~ documentation and/or other materials provided with the distribution.
  14. ~ Neither the name of the pig4cloud.com developer nor the names of its
  15. ~ contributors may be used to endorse or promote products derived from
  16. ~ this software without specific prior written permission.
  17. ~ Author: lengleng (wangiegie@gmail.com)
  18. ~
  19. -->
  20. <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
  21. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  22. <modelVersion>4.0.0</modelVersion>
  23. <parent>
  24. <groupId>com.pig4cloud</groupId>
  25. <artifactId>pigx</artifactId>
  26. <version>${pigx.version}</version>
  27. </parent>
  28. <artifactId>pigx-auth</artifactId>
  29. <version>${pigx.version}</version>
  30. <packaging>jar</packaging>
  31. <name>pigx-auth</name>
  32. <description>pigx 认证授权中心,基于 spring security oAuth2</description>
  33. <dependencies>
  34. <!--配置中心客户端-->
  35. <dependency>
  36. <groupId>org.springframework.cloud</groupId>
  37. <artifactId>spring-cloud-starter-config</artifactId>
  38. </dependency>
  39. <!--upms api、model 模块-->
  40. <dependency>
  41. <groupId>com.pig4cloud</groupId>
  42. <artifactId>pigx-upms-api</artifactId>
  43. <version>${pigx.version}</version>
  44. </dependency>
  45. <!--security-->
  46. <dependency>
  47. <groupId>com.pig4cloud</groupId>
  48. <artifactId>pigx-common-security</artifactId>
  49. <version>${pigx.version}</version>
  50. </dependency>
  51. <!--spring security 、oauth、jwt依赖-->
  52. <dependency>
  53. <groupId>org.springframework.cloud</groupId>
  54. <artifactId>spring-cloud-starter-security</artifactId>
  55. <exclusions>
  56. <!--旧版本 redis操作有问题-->
  57. <exclusion>
  58. <artifactId>spring-security-oauth2</artifactId>
  59. <groupId>org.springframework.security.oauth</groupId>
  60. </exclusion>
  61. </exclusions>
  62. </dependency>
  63. <dependency>
  64. <groupId>org.springframework.security.oauth</groupId>
  65. <artifactId>spring-security-oauth2</artifactId>
  66. <version>${security.oauth.version}</version>
  67. </dependency>
  68. <!--数据库-->
  69. <dependency>
  70. <groupId>mysql</groupId>
  71. <artifactId>mysql-connector-java</artifactId>
  72. </dependency>
  73. <dependency>
  74. <groupId>org.springframework.boot</groupId>
  75. <artifactId>spring-boot-starter-jdbc</artifactId>
  76. </dependency>
  77. <!--web 模块-->
  78. <dependency>
  79. <groupId>org.springframework.boot</groupId>
  80. <artifactId>spring-boot-starter-web</artifactId>
  81. <exclusions>
  82. <!--排除tomcat依赖-->
  83. <exclusion>
  84. <artifactId>spring-boot-starter-tomcat</artifactId>
  85. <groupId>org.springframework.boot</groupId>
  86. </exclusion>
  87. </exclusions>
  88. </dependency>
  89. <!--undertow容器-->
  90. <dependency>
  91. <groupId>org.springframework.boot</groupId>
  92. <artifactId>spring-boot-starter-undertow</artifactId>
  93. </dependency>
  94. </dependencies>
  95. <build>
  96. <plugins>
  97. <plugin>
  98. <groupId>org.springframework.boot</groupId>
  99. <artifactId>spring-boot-maven-plugin</artifactId>
  100. <configuration>
  101. <finalName>${project.name}</finalName>
  102. </configuration>
  103. </plugin>
  104. <plugin>
  105. <groupId>com.spotify</groupId>
  106. <artifactId>docker-maven-plugin</artifactId>
  107. <version>0.4.12</version>
  108. <configuration>
  109. <imageName>${registry.url}/${project.name}:0.0.1</imageName>
  110. <dockerHost>${docker.url}</dockerHost>
  111. <dockerDirectory>${project.basedir}</dockerDirectory>
  112. <resources>
  113. <resource>
  114. <targetPath>/</targetPath>
  115. <directory>${project.build.directory}</directory>
  116. <include>${project.build.finalName}.jar</include>
  117. </resource>
  118. </resources>
  119. <serverId>docker-hub</serverId>
  120. <registryUrl>https://index.docker.io/v1/</registryUrl>
  121. </configuration>
  122. </plugin>
  123. </plugins>
  124. </build>
  125. </project>