Skip to content
This repository has been archived by the owner on Oct 7, 2023. It is now read-only.

Commit

Permalink
Archetype will read package information from command; updated README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
sri-rang committed Mar 14, 2011
1 parent c4c2dc1 commit f1ab7e6
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package net.srirangan
package ${package}

import org.scalatra._
import java.net.URL
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<filter>
<filter-name>scalatra</filter-name>
<filter-class>
net.srirangan.MyScalatraFilter
${package}.MyScalatraFilter
</filter-class>
</filter>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package net.srirangan
package ${package}

import org.scalatra._
import org.scalatra.test.scalatest._
Expand Down

0 comments on commit f1ab7e6

Please sign in to comment.