In all instructions that I've read online regarding the use of the HK2 Maven plugin, I found nothing about how to use hk2:run to run an application that does anything meaningful (besides loading its modules, I mean). Upon each "mvn hk2:run", the start() of my module that implements ModuleStartup gets called, and that's it -- the JVM just exits "successfully".
So... sorry if this is a dumb question, but where's the "main()", or the "run()"? I'm not supposed to do everything in start(), am I? And I don't expect "hk2:run" to have been created just to demo the module loading logic...
[Message sent by forum member 'andreijuan' (andreijuan)]
http://forums.java.net/jive/thread.jspa?messageID=326362