Permalink
Browse files

adding doc how to create an archetype

  • Loading branch information...
1 parent 92dbe45 commit ef23645f24ff55a4b72e9a6f6d8f019b5b9f98dd Alexey Prohorenko committed May 4, 2012
Showing with 13 additions and 1 deletion.
  1. +13 −1 README.md
View
@@ -1,7 +1,7 @@
dropwizard-archetype
====================
-Maven2 Archetype for Coda Hale's Dropwizard
+# Maven2 Archetype for Coda Hale's Dropwizard
$ mvn package
@@ -13,4 +13,16 @@ $ open http://localhost:8080/hello-world/hi.html http://localhost:8080/hello-wor
$ open http://localhost:8081/ http://localhost:8081/metrics http://localhost:8081/threads http://localhost:8081/healthcheck
+# If you need to create an archetype from it just do:
+$ mvn archetype:create-from-project
+
+$ cd target/generated-sources/archetype/
+
+$ mvn install
+
+$ cd ~/code/
+
+$ mvn archetype:generate -DarchetypeGroupId=com.alexeypro.samples -DarchetypeArtifactId=dropwizard-example-archetype
+
+All done.

0 comments on commit ef23645

Please sign in to comment.