NB PoWeR: a repository of ready-to-use NetBeans Platform Wrapper libraries
This is a very short post and it's mainly aimed in getting feedbacks from the NetBeans Platform Community. As part of a bigger move in refactoring my projects and having my code more easily reusable by others, I've created an *experimental* project, named the NetBeans Platform Wrapper Repository. As the name says, it's a (Maven) repository of pre-made wrappers for some common open source libraries around. It's experimental because it's primarily serving my own needs, but we could even create an officialy resource backed by the community. On that purpose, feedback is required since there is a lot of details to fix, and they depend on how people work with the Platform.
The project is hosted here: http://kenai.com/projects/nbpwr/ - I'm preparing a screencast to demonstrate how I'm using it, but it won't be ready before next week since I'm now focused on a talk at next saturday's JavaDay in Verona.
But let's talk of it? Do you think it would be useful? Would you use it in your projects, once it is completed? How do you use wrapper libraries in your project?
PS The thing is now focused on Maven, because it's one of the easiest ways to share artifacts, but can be used as well from Ant, by manually downloading .nbm files or even using Ivy.
- Login or register to post comments
- 959 reads
- Printer-friendly version
(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)










Comments
Fabrizio Giudici replied on Mon, 2009/10/19 - 9:33am
Just to add some discussion points, these are the issues to be solved:
mkleint replied on Tue, 2009/10/20 - 4:14am
1. the general rule on groupid is that it should be based on the package name or domain name of the project. So I would suggest something else than nbm which is way to generic. maybe com.kenai.nbpwr?
2. hard to tell in general, but I would go with the officially public packages. However most libraries (if not OSGI compliant) don't define any public packages, soit should be safer to go witheverything..
3. I would suggest mirroring the versions of of the original library. When we get errors in the wrapper, we can always get into problems with the original library versioning though. I don't see a way around that..
4. not sure I understand this point, but in general you will need either completely separate sources for each version of the wrapper, you you could reuse the same sources and just perform releases on top of them, if you ever get a problem with released bits, you just checkout the branch/tag of that project and do another release on top of that. Should work fine with svn, not so sure about hg though.
5. as far as I can tell, both can be released but the version of artifactid of the patched one shall indicate it somehow..
Fabrizio Giudici replied on Wed, 2009/10/21 - 3:00am