The use of the quickstart archetype for jar-packaging projects is not ideal:
- main class created even when none is often required, and we have a separate file template for that
- do-nothing test class created even when no tests are needed (forcing user to delete JUnit dep and src/test/); again we have a separate file template for adding tests (which also adds the right source root and dep)
- sources formatted using Maven conventions rather than IDE-default Sun standard (e.g. open brace on separate line)
- meaningless <url> in POM
It would be better to have the SE archetype create a minimal project with a near-empty POM (and 4-space indents), an empty src/main/java/, and nothing else. Not sure whether this should be a new archetype in mojo-archetypes, or created directly by the IDE wizard.
In Eclipse, empty Maven projects can be created using the m2eclipse plugin without using an archetype, but the m2eclipse plugin also supports creating projects through Maven archetypes. I really would like to have similar functionality added to NetBeans.
*** Bug 228920 has been marked as a duplicate of this bug. ***
Integrated into 'main-silver', will be available in build *201311080001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
User: Milos Kleint <email@example.com>
Log: #208462 first attempt at non-archetype based wizards
are the final batch of changesets to create infrastructure for creating maven projects without an archetype.
so as of now, the "no archetype" solution is used for simple jar, pom and nbm projects.