When I try to “mvn clean install” module “s2tbx-s2msi-reader” it says
[ERROR] Project uses classes from transitive module org.esa.snap:snap-engine-utilities:jar:6.0.0 which will not be accessible at runtime.
So I add snap-engine-utilities as dependent jar and “mvn clean install” works fine.
But in runtime, when I tried to open an Sentinel-2 product it gives an error as following
java.lang.ClassNotFoundException: Will not load class org.apache.commons.io.IOUtils arbitrarily from one of ModuleCL@72952b88[org.esa.snap.snap.engine.utilities] and ModuleCL@9bd4cb3[org.esa.snap.snap.core] starting from ModuleCL@7cdf6f33[org.esa.s2tbx.s2tbx.s2msi.reader];
It is clear that both newly added snap-engine-utilities and snap-core defined “org.apache.commons.*” as public package and in runetime it gives error. But when I do not add snap-engine-utilities as dependent module to s2msi-reader it does not install.
Can anybody help me about that?