This sounds dangerous journey, you may want to repackage the original osgi
jar, remove java.io, give it a new maven coordinate, and upload to your
maven repo


On Thu, Jul 31, 2014 at 9:23 AM, Rabe, Jens <[email protected]>
wrote:

> Hello,
>
> I have a Maven project which needs a library which is dependent on
> org.osgi.foundation 1.0.0. This particular project re-implements some of
> the java.io, java.lang etc. functionality in a very outdated way, e.g.,
> raw Lists. I only need this project for the scope "test", but this
> dependency mushrooms into the main classes, making it unable for me to use
> List<T> or Auto-Closeable streams. Can I force individual dependencies to
> come from, e.g., rt.jar instead?
>
> Regards,
> Jens
>

Reply via email to