Which maven2 archetype to use for a Swing desktop application?
I want to build a small Swing application today and use maven2 for the build/test lifecycl开发者_开发问答e.
But I don't know which archetype I should choose to create the project. Is there something available for a desktop application? Or do I start with the simple archetype (no #3 in the interactive setup)?
I would choose the simple or no archetype at all. Perhaps the Maven Quickstart Archetype.
Swing is part of Java (at least in more recent versions). I am not aware of any archetype that is targeted at Swing desktop applications.
Some previous posts:
Maven2 & Swing projects: Build & run swing application
How to create a swing application using maven?
The Quickstart Maven archetype works well. It produces a minimal structure useful for Swing and command line applications.
I was creating the same boilerplate on every little swing project I was creating, so they could have the same look and feel, so I created one that suffices my needs... As some assets are destined specifically to me, you would probably have to change them, but I find that a good starting point:
It is hosted on github
精彩评论