renjin icon indicating copy to clipboard operation
renjin copied to clipboard

Duplicate org.renjin.math packages across artifacts

Open ctrueden opened this issue 4 years ago • 2 comments

When depending on org.renjin:renjin-script-engine:0.9.2726, the maven-enforcer-plugin's "ban duplicate classes" rule flags the following overlap:

No Duplicate Classes Allowed!
  Found in:
    org.renjin:renjin-lapack:jar:0.9.2726:compile
    org.renjin:renjin-blas:jar:0.9.2726:compile
  Duplicate classes:
    org/renjin/math/dtpmv__.class
    org/renjin/math/dsyrk__.class
    org/renjin/math/idamax__.class
    org/renjin/math/dtpsv__.class
    org/renjin/math/lsame__.class
    org/renjin/math/dnrm2__.class
    org/renjin/math/dgemm__.class
    org/renjin/math/daxpy__.class
    org/renjin/math/dsyr2__.class
    org/renjin/math/dtrmm__.class
    org/renjin/math/drot__.class
    org/renjin/math/dger__.class
    org/renjin/math/dswap__.class
    org/renjin/math/dsymv__.class
    org/renjin/math/ddot__.class
    org/renjin/math/dsyr2k__.class
    org/renjin/math/dspmv__.class
    org/renjin/math/dasum__.class
    org/renjin/math/dtrsm__.class
    org/renjin/math/dtrmv__.class
    org/renjin/math/dgemv__.class
    org/renjin/math/dcopy__.class
    org/renjin/math/dscal__.class

Could these classes please be removed from either renjin-lapack or renjin-blas? Or, if both of those libraries need them, moved into a common dependency e.g. renjin-math-common?

Thanks!

ctrueden avatar Aug 02 '20 20:08 ctrueden

I've got the same problem, would appreciate any help! :) Thanks!

Habacef avatar Jan 18 '21 09:01 Habacef

It looks like we have the problem in 3.5-beta76 as well. Since that latest release we are in the process of switching to gradle so not sure if the issue still exist on the main branch. I'll try to find time to check it out this weekend.

perNyfelt avatar Jan 22 '21 17:01 perNyfelt