pom.xml 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. ~
  4. ~ Copyright (c) 2018-2025, hnqz 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: hnqz
  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>net.yyc.common</groupId>
  25. <artifactId>yyc-common-parent</artifactId>
  26. <version>1.0.0-SNAPSHOT</version>
  27. </parent>
  28. <artifactId>yyc-common-log</artifactId>
  29. <packaging>jar</packaging>
  30. <description>日志服务</description>
  31. <dependencies>
  32. <!--工具类核心包(版本由 yyc-common-bom 统一管理)-->
  33. <dependency>
  34. <groupId>net.yyc.common</groupId>
  35. <artifactId>yyc-common-core</artifactId>
  36. </dependency>
  37. <dependency>
  38. <groupId>net.yyc.common</groupId>
  39. <artifactId>yyc-common-feign</artifactId>
  40. </dependency>
  41. <!--Feign 负载均衡:日志客户端需包装为 LoadBalancerFeignClient,避免注册裸 Client 顶掉负载均衡导致服务名调用失败-->
  42. <dependency>
  43. <groupId>org.springframework.cloud</groupId>
  44. <artifactId>spring-cloud-starter-netflix-ribbon</artifactId>
  45. </dependency>
  46. <!--安全依赖获取上下文信息-->
  47. <dependency>
  48. <groupId>org.springframework.security</groupId>
  49. <artifactId>spring-security-core</artifactId>
  50. </dependency>
  51. <dependency>
  52. <groupId>org.springframework.security.oauth</groupId>
  53. <artifactId>spring-security-oauth2</artifactId>
  54. </dependency>
  55. <dependency>
  56. <groupId>org.springframework.cloud</groupId>
  57. <artifactId>spring-cloud-starter-sleuth</artifactId>
  58. </dependency>
  59. <!--JSON 日志输出:阿里云 SLS 采集(LogstashEncoder,sys-log-file-appender.xml 使用),版本由 yyc-common-bom 管理-->
  60. <dependency>
  61. <groupId>net.logstash.logback</groupId>
  62. <artifactId>logstash-logback-encoder</artifactId>
  63. </dependency>
  64. </dependencies>
  65. </project>