I have used archetypes a number of times in the past, but I never created any. Recently I kept thinking to myself that I needed a way to generate a project without needing to do it by hand. For some reason in my mind I never made the connection that I could just create my own. However, something clicked and suddenly I decided that I wanted to create my own. Using the Maven guide, I had one made up in a matter of 20 minutes. Most of that time was spent making my own customizations that I wanted for the specific type of project. The actual initialization of the archetype definition was extremely easy.
Oddly enough the people who came up with archetypes were kind enough to even come up with an archetype for the archetype.
Using the below code you can get your own archetype started:
mvn archetype:generate
-DgroupId=[your project's group id]
-DartifactId=[your project's artifact id]
-DarchetypeArtifactId=maven-archetype-archetype
Happy Archetyping!
1 comment:
Thanks for sharing
http://www.metaforumtechnologies.com/android-training-in-chennai
Post a Comment