Skip to content
Browse files

Archetype will read package information from command; updated README.md

  • Loading branch information...
1 parent c4c2dc1 commit f1ab7e66fcfa80ab90eb9c0338558f57fcb6fe64 @Srirangan committed Mar 14, 2011
View
2 README.md
@@ -10,7 +10,7 @@ An [Apache Maven](http://maven.apache.org/) archetype to generate a simple [Scal
mvn install
1. Generate your Scalatra project
- mvn archetype:generate -DarchetypeArtifactId=simple-scalatra-archetype -DarchetypeGroupId=org.scalatra -DarchetypeVersion=1.0-SNAPSHOT -DgroupId={TempGroupId} -DartifactId={TempArtifactId}
+ mvn archetype:generate -DarchetypeArtifactId=simple-scalatra-archetype -DarchetypeGroupId=org.scalatra -DarchetypeVersion=1.0-SNAPSHOT -DgroupId=just.some.group -DartifactId=just-some-artifact
2. Switch to the project directory
cd {TempArtifactId}
View
2 src/main/resources/archetype-resources/src/main/scala/MyScalatraFilter.scala
@@ -1,4 +1,4 @@
-package net.srirangan
+package ${package}
import org.scalatra._
import java.net.URL
View
2 src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml
@@ -7,7 +7,7 @@
<filter>
<filter-name>scalatra</filter-name>
<filter-class>
- net.srirangan.MyScalatraFilter
+ ${package}.MyScalatraFilter
</filter-class>
</filter>
View
2 src/main/resources/archetype-resources/src/test/scala/MyScalatraFilterSuite.scala
@@ -1,4 +1,4 @@
-package net.srirangan
+package ${package}
import org.scalatra._
import org.scalatra.test.scalatest._

0 comments on commit f1ab7e6

Please sign in to comment.
Something went wrong with that request. Please try again.