From 3a155b6a5fd6bfae3d9ba8c722e5bbbbcd3709f6 Mon Sep 17 00:00:00 2001 From: Martin Grotzke <martin.grotzke@googlemail.com> Date: Tue, 22 Jul 2014 16:50:20 +0200 Subject: [PATCH] Add hint on shaded reflectasm and the appropriate deps snippet --- README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/README.md b/README.md index 2f0d26d..3abe23a 100644 --- a/README.md +++ b/README.md @@ -28,6 +28,23 @@ To use reflectasm with maven, please use the following snippet in your pom.xml </dependency> ``` +If you already have asm in a different version (than the one pulled in by reflectasm - see pom.xml) in your classpath, you should use the shaded reflectasm (contains relocated asm classes): + +```xml +<dependency> + <groupId>com.esotericsoftware</groupId> + <artifactId>reflectasm</artifactId> + <version>1.10.0</version> + <classifier>shaded</classifier> + <exclusions> + <exclusion> + <groupId>org.ow2.asm</groupId> + <artifactId>asm</artifactId> + </exclusion> + </exclusions> +</dependency> +``` + ## Usage Method reflection with ReflectASM: