This is an automated email from the ASF dual-hosted git repository.

zhonghongsheng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git


The following commit(s) were added to refs/heads/master by this push:
     new b9e7d45e116 Plugin excludes slf4j dependency (#23306)
b9e7d45e116 is described below

commit b9e7d45e116bf22774113d9bf5717d4f6ff6c819
Author: jiangML <[email protected]>
AuthorDate: Tue Jan 3 21:51:16 2023 +0800

    Plugin excludes slf4j dependency (#23306)
---
 agent/plugins/logging/type/file/pom.xml                   |  8 --------
 .../src/main/resources/META-INF/conf/file-advisors.yaml   |  2 +-
 agent/plugins/pom.xml                                     | 15 +++++++++++++++
 3 files changed, 16 insertions(+), 9 deletions(-)

diff --git a/agent/plugins/logging/type/file/pom.xml 
b/agent/plugins/logging/type/file/pom.xml
index 9de18a64007..1c27414e1fc 100644
--- a/agent/plugins/logging/type/file/pom.xml
+++ b/agent/plugins/logging/type/file/pom.xml
@@ -40,14 +40,6 @@
                             <goal>shade</goal>
                         </goals>
                         <phase>package</phase>
-                        <configuration>
-                            <relocations>
-                                <relocation>
-                                    <pattern>org.slf4j</pattern>
-                                    
<shadedPattern>${shade.package}.org.slf4j</shadedPattern>
-                                </relocation>
-                            </relocations>
-                        </configuration>
                     </execution>
                 </executions>
             </plugin>
diff --git 
a/agent/plugins/logging/type/file/src/main/resources/META-INF/conf/file-advisors.yaml
 
b/agent/plugins/logging/type/file/src/main/resources/META-INF/conf/file-advisors.yaml
index 99dd88ae884..74b2d2496bf 100644
--- 
a/agent/plugins/logging/type/file/src/main/resources/META-INF/conf/file-advisors.yaml
+++ 
b/agent/plugins/logging/type/file/src/main/resources/META-INF/conf/file-advisors.yaml
@@ -17,7 +17,7 @@
 
 advisors:
   - target: org.apache.shardingsphere.mode.metadata.MetaDataContextsFactory
-    advice: 
org.apache.shardingsphere.agent.plugin.logging.base.advice.MetaDataContextsFactoryAdvice
+    advice: 
org.apache.shardingsphere.agent.plugin.logging.file.advice.MetaDataContextsFactoryAdvice
     pointcuts:
       - name: create
         type: method
diff --git a/agent/plugins/pom.xml b/agent/plugins/pom.xml
index a7ab983141a..9b2a46b8dfd 100644
--- a/agent/plugins/pom.xml
+++ b/agent/plugins/pom.xml
@@ -55,4 +55,19 @@
             <scope>provided</scope>
         </dependency>
     </dependencies>
+    
+    <build>
+        <plugins>
+            <plugin>
+                <artifactId>maven-shade-plugin</artifactId>
+                <configuration>
+                    <artifactSet>
+                        <excludes>
+                            <exclude>org.slf4j:*</exclude>
+                        </excludes>
+                    </artifactSet>
+                </configuration>
+            </plugin>
+        </plugins>
+    </build>
 </project>

Reply via email to