Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java-client maven dependency cglib issue #418

Closed
truebit opened this issue Jun 17, 2016 · 1 comment
Closed

java-client maven dependency cglib issue #418

truebit opened this issue Jun 17, 2016 · 1 comment
Labels

Comments

@truebit
Copy link
Contributor

truebit commented Jun 17, 2016

Description

java-client maven dependency cglib misusage

Environment

java-client 4.0.0

Details

  • run dependency check with command mvn dependency:tree -Dverbose -Dincludes=cglib with output:

[INFO] --- maven-dependency-plugin:2.8:tree (default-cli) @ java-client ---
[INFO] io.appium:java-client:jar:5.0.0-SNAPSHOT
[INFO] +- org.seleniumhq.selenium:selenium-java:jar:2.53.0:compile
[INFO] | \- org.seleniumhq.selenium:selenium-chrome-driver:jar:2.53.0:compile
[INFO] | \- org.seleniumhq.selenium:selenium-remote-driver:jar:2.53.0:compile
[INFO] | \- cglib:cglib-nodep:jar:2.1_3:compile
[INFO] - cglib:cglib:jar:3.2.1:compile

cglib-#.##.jar - binary distribution, CGLIB classes only, it must be used to extend cglib classes dependant on ASM API
cglib-nodep-#.#
#.jar - binary distribution, CGLIB and renamed ASM classes, not extendable

IMO, the explicit dependency in java-client should use cglib-nodep instead of cglib. or just remove cglib dependency in java-client pom to use the one already included by selenium-remote-driver

@truebit
Copy link
Contributor Author

truebit commented Jun 17, 2016

example pom.xml file to use cglib-nodep instead of cglib

@@ -31,6 +31,12 @@
             <groupId>org.seleniumhq.selenium</groupId>
             <artifactId>selenium-java</artifactId>
             <version>2.53.0</version>
+            <exclusions>
+                <exclusion>
+                    <groupId>cglib</groupId>
+                    <artifactId>cglib-nodep</artifactId>
+                </exclusion>
+            </exclusions>
         </dependency>
         <dependency>
             <groupId>junit</groupId>
@@ -50,8 +56,8 @@
         </dependency>
         <dependency>
             <groupId>cglib</groupId>
-            <artifactId>cglib</artifactId>
-            <version>3.2.1</version>
+            <artifactId>cglib-nodep</artifactId>
+            <version>3.2.2</version>
         </dependency>
         <dependency>
             <groupId>commons-validator</groupId>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants