I've finished work on the launch4j plugin. Besides the core plugin artifact, there are four attached artifacts, named with classifiers: one for each platform that l4j supports. The plugin uses the maven apis to download and unpack one if necessary.
Here is some more info on the plugin: I wrote it against maven 2.0.4 and l4j 3.0.0-pre1. One of my goals was to avoid forcing the user to download the l4j distro, so the plugin includes all the non-graphics l4j code. As I said, there are separate artifacts for the platform-specific bits like ld and windres. I wound up hacking l4j to support changing the work directory. It was a small change that shouldn't break the main code, so I think I'll submit it as a patch. Users provide the l4j configuration inside a <configuration> section of the pom; it doesn't support exterior files yet. Due to how maven unmarshals xml, I had to adjust the xml format a bit, like including <lib> inside <libs>, etc. I also added some sub-elements to <classPath> so that the plugin can build the classpath for you based on dependencies, if you like. Other than that, the configuration format is just like l4j's. I bound it to the package phase by default. Here is how I use the plugin in one of my personal projects: My project is a single module, packaged as a jar. So during the package phase, the jarrring runs first automatically. I've also configured the package phase to run l4j to make the executable, then assembly to tar it up along with docs and dependencies. Note that if you bind assembly to a phase, you must run the assembly:attached goal, not assembly:assembly. I hope to put this online, including source code, within the next few days. I want to write a bit of documentation first, so if it's not up tonight, probably it will be up tomorrow. I'll post when it's there. Although I can serve this from my own website, I'd rather distribute it from maven central. How do I go about that? Thanks Dan for all your help! Paul -- View this message in context: http://www.nabble.com/plugin-naming-advice-tf2439526.html#a6837279 Sent from the Maven - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
