Hi,
In my workspace I need to wrap an ugly JAR from Maven. It is pretty old, uses old dependencies and doesn't play nice with OSGi.
So I wanted to wrap it up in a separate project and hide behind some simple facade, which I export instead.
I created a new MavenBndRepository just for the dependencies of this JAR, filled with the JAR itself and a few rounds of "Add Compile Dependencies" on the dependencies (BTW — Is there a way to add transitive dependencies somehow to MavenBndPlugin?). So far so good.
The problem is that this wrapper's repo is now exposed to all other bundles. What I'm afraid of is that at some point the resolution process will take an old dependency out of this repo.
Is there a way to restrict the repository (or plugin) to a single project? I know that I can restrict repositories in bndrun files, but how to do that for the build process? Also, I'd like to avoid going into every separate bnd file and specify the repositories — the best would be to disable the wrapper's repo for the workspace and enable only in the single wrapper project.
I also don't want to make a separate workspace just for the wrapper and publishing locally. Having the project open in the workspace I have the luxury of debugging my facade, correcting the code online, etc.
Regards,
Przemek