rocketmq-logback-classic-1.0.1.pom 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  3. <parent>
  4. <artifactId>rocketmq-logging</artifactId>
  5. <groupId>io.github.aliyunmq</groupId>
  6. <version>1.0.1</version>
  7. </parent>
  8. <modelVersion>4.0.0</modelVersion>
  9. <artifactId>rocketmq-logback-classic</artifactId>
  10. <name>logback</name>
  11. <url>http://maven.apache.org</url>
  12. <build>
  13. <plugins>
  14. <plugin>
  15. <artifactId>maven-shade-plugin</artifactId>
  16. <version>${maven-shade-plugin.version}</version>
  17. <executions>
  18. <execution>
  19. <phase>package</phase>
  20. <goals>
  21. <goal>shade</goal>
  22. </goals>
  23. <configuration>
  24. <minimizeJar>false</minimizeJar>
  25. <createSourcesJar>true</createSourcesJar>
  26. <shadeSourcesContent>true</shadeSourcesContent>
  27. <filters>
  28. <filter>
  29. <artifact>ch.qos.logback:logback-classic</artifact>
  30. <excludes>
  31. <exclude>META-INF/services/ch.qos.logback.classic.spi.Configurator</exclude>
  32. </excludes>
  33. </filter>
  34. </filters>
  35. <transformers>
  36. <transformer />
  37. <transformer>
  38. <manifestEntries>
  39. <Implementation-Title>rocketmq-logging</Implementation-Title>
  40. <Implementation-Version>${logback-classic.version}-rocketmq</Implementation-Version>
  41. </manifestEntries>
  42. </transformer>
  43. </transformers>
  44. <relocations>
  45. <relocation>
  46. <pattern>org.slf4j</pattern>
  47. <shadedPattern>${shade-prefix}.org.slf4j</shadedPattern>
  48. </relocation>
  49. <relocation>
  50. <pattern>ch.qos.logback</pattern>
  51. <shadedPattern>${shade-prefix}.ch.qos.logback</shadedPattern>
  52. </relocation>
  53. <relocation>
  54. <rawString>true</rawString>
  55. <pattern>^logback.configurationFile$</pattern>
  56. <shadedPattern>${config-file-prefix}.logback.configurationFile</shadedPattern>
  57. </relocation>
  58. <relocation>
  59. <rawString>true</rawString>
  60. <pattern>^logback(-test)?.xml$</pattern>
  61. <shadedPattern>${config-file-prefix}.logback$1.xml</shadedPattern>
  62. </relocation>
  63. <relocation>
  64. <rawString>true</rawString>
  65. <pattern>^java:comp/env/logback/configuration-resource$</pattern>
  66. <shadedPattern>java:comp/env/${config-file-prefix}.logback/configuration-resource</shadedPattern>
  67. </relocation>
  68. <relocation>
  69. <rawString>true</rawString>
  70. <pattern>^java:comp/env/logback/context-name$</pattern>
  71. <shadedPattern>java:comp/env/${config-file-prefix}.logback/context-name</shadedPattern>
  72. </relocation>
  73. </relocations>
  74. </configuration>
  75. </execution>
  76. </executions>
  77. </plugin>
  78. <plugin>
  79. <artifactId>maven-jar-plugin</artifactId>
  80. <executions>
  81. <execution>
  82. <phase>package</phase>
  83. <goals>
  84. <goal>jar</goal>
  85. </goals>
  86. <configuration>
  87. <classifier>javadoc</classifier>
  88. <classesDirectory>${project.basedir}/src/main/javadoc</classesDirectory>
  89. </configuration>
  90. </execution>
  91. </executions>
  92. </plugin>
  93. </plugins>
  94. </build>
  95. <properties>
  96. <config-file-prefix>rmq</config-file-prefix>
  97. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  98. <maven.compiler.source>8</maven.compiler.source>
  99. <maven.compiler.target>8</maven.compiler.target>
  100. </properties>
  101. </project>