Archy is a simple, command-line frontend to Maven 2's Archetypes. It walks you through the process of creating a new project using these project templates. This tool was inspired by megg.
The list of archetypes comes from two sources:
- An internal XML file that describes the archetype information
- An external Maven wiki page that lists available archetypes
Example
mrdon@friend:~/dev$ java -jar archy.jar
Archy
-------
Enter the archetype id [struts2-archetype-starter], or type 'list': list
struts2-archetype-starter - A starter Struts 2 application with Sitemesh, DWR, and Spring
maven-archetype-quickstart -
appfuse-basic-jsf - AppFuse archetype for creating a web application with Hibernate, Spring and JSF
appfuse-basic-spring - AppFuse archetype for creating a web application with Hibernate, Spring and Spring MVC
appfuse-basic-struts - AppFuse archetype for creating a web application with Hibernate, Spring and Struts 2
appfuse-basic-tapestry - AppFuse archetype for creating a web application with Hibernate, Spring and Tapestry 4
appfuse-modular-jsf - AppFuse archetype for creating a modular application with Hibernate, Spring and JSF
appfuse-modular-spring - AppFuse archetype for creating a modular application with Hibernate, Spring and Spring MVC
appfuse-modular-struts - AppFuse archetype for creating a modular application with Hibernate, Spring and Struts 2
appfuse-modular-tapestry - AppFuse archetype for creating a modular application with Hibernate, Spring and Tapestry 4
maven-archetype-j2ee-simple - A simple J2EE Java application
maven-archetype-marmalade-mojo - A Maven plugin development project using marmalade
maven-archetype-mojo - A Maven Java plugin development project
maven-archetype-portlet - A simple portlet application
maven-archetype-profiles -
maven-archetype-simple -
maven-archetype-site-simple - A simple site generation project
maven-archetype-site - A more complex site project
maven-archetype-webapp - A simple Java web application
shale-archetype-blank - A blank Shale web application with JSF
maven-adf-archetype - Archetype to ease the burden of creating a new application based with ADF
data-app - A new Databinder application with sources and resources.
jini-service-archetype - Archetype for Jini service project creation
softeu-archetype-seam - JSF+Facelets+Seam Archetype
softeu-archetype-seam-simple - JSF+Facelets+Seam (no persistence) Archetype
softeu-archetype-jsf - JSF+Facelets Archetype
Enter the archetype id [struts2-archetype-starter], or type 'list': struts2-archetype-starter
Enter your group id [com.mycompany.myapp]: com.mycompany.myapp
Enter your artifact id [myapp]: myapp
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO] ----------------------------------------------------------------------------
[INFO] Building Maven Default Project
[INFO] task-segment: [archetype:create] (aggregator-style)
[INFO] ----------------------------------------------------------------------------
... bunch of Maven output ...
[INFO] [archetype:create]
[INFO] Defaulting package to group ID: com.mycompany.myapp
[INFO] We are using command line specified remote repositories: http://people.apache.org/repo/m2-snapshot-repository
[INFO] snapshot org.apache.struts:struts2-archetype-starter:2.0.6-SNAPSHOT: checking for updates from id0
[INFO] ----------------------------------------------------------------------------
[INFO] Using following parameters for creating Archetype: struts2-archetype-starter:2.0.6-SNAPSHOT
[INFO] ----------------------------------------------------------------------------
[INFO] Parameter: groupId, Value: com.mycompany.myapp
[INFO] Parameter: packageName, Value: com.mycompany.myapp
[INFO] Parameter: basedir, Value: /home/mrdon/dev
[INFO] Parameter: package, Value: com.mycompany.myapp
[INFO] Parameter: version, Value: 1.0-SNAPSHOT
[INFO] Parameter: artifactId, Value: myapp
... even more Maven output ...
[INFO] Archetype created in dir: /home/mrdon/dev/myapp
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5 seconds
[INFO] Finished at: Sat Mar 17 15:22:53 PDT 2007
[INFO] Final Memory: 4M/9M
[INFO] ------------------------------------------------------------------------
mrdon@friend:~/dev$Comments or suggestions? Any feedback is appreciated.