|
QuickStart
How to use maven-groovy-webapp-archetype
Quickstart QuickstartThis is based on Schalk Neethlin's "Rapid Web Application Prototyping with Maven and Groovy To create a simple groovy webapp execute the following commands: mvn archetype:create \ -DarchetypeGroupId=com.orangeandbronze.archetypes \ -DarchetypeArtifactId=maven-groovy-webapp-archetype \ -DarchetypeVersion=0.1 \ -DremoteRepositories=http://maven-groovy-webapp-archetype.googlecode.com/svn/repo/releases \ -DgroupId=com.mycompany \ -DartifactId=my-project \ -Dversion=1.0-SNAPSHOT ---- It will then create a my-project directory. From there, you can execute mvn jetty:run-war to run launch it in http://localhost:8080/my-project. You can then access http://localhost:8080/my-project/Sample.groovy and you will get a Hello null Or alternatively, access http://localhost:8080/my-project/Sample.groovy?username=Franz to get Hello Franz |