I've been wondering the same thing (is there a plugin already?). I couldn't find one but haven't been looking for it very hard at the same time. I did however been planing to write one as it seems easy enough to do. Unfortunately I can't find any spare time at work to do so (as we're only evaluating jBPM 4.4 at the moment).
But would very much like to get my hands on such plugin. So, anyone willing to contribute?
as far as I remember the .bar archive was nothing but a zip file, so any maven or ant zip tool should do the trick
Sounds easy, but it's not.
The problem here is to fully integrate with the Maven release process. Of course, I could generate an artifact like a .jar with the correct structure and rename it to .bar locally for internal or develop use, but this is not the solution when you want to share this artifact automatically in a Maven repository.
As far as I been searching the Michal (M) propousal for developing a Maven plugin for doing the trick is the best aproach. Sadly, I have no experience at all developing Maven plugins, could you guide me?
Leidolfr, start with this. See the item 5:
Write some simple plugin just to see if it's working. Then take a look at a jar plugin and make something similar (i.e. use maven-archiver):
However, I would ditch maven 2.1 in favor of newest 3.0. I've been using it for a pretty sophisticated enterprise project (spring, ejb, flex gui, tapestry 4, jpa, webservices, jms) for the last 6 months without any issues.
And when you share the code after that, somebody may contribute a deploy goal (shhh, Maciej Swiderski, maybe )
Has anybody come up with a Maven plugin to deploy a Bar file? It has been years. Somebody must have done it. Anybody? Anyone?
I ran into the same problem as Leidolfr. I can change the file name but when I go to do an install it blows up. "Bar" is not a normal archive type. I really don't want to rewrite the install plugin to handle a bar as it is time consuming. Anyone?....
Should additions be made to jboss-packaging-maven-plugin?
I made additions to the jboss-packaging-maven-pluging and am able to generate a bar and install it in my repository. No small task. I will try to submit it soon.
I never submitted the code. I did make it work though. Do you want it? It is not perfect but it does work.
I sure do!
Probably I'll have some time to look through the code and fix issues that are interesting to me. I guess I'll be able to give you back the fixes I make, if you're interested.