The JS Rich Internet Application (RIA) Archetype provides a skeleton project for JavaScript Rich Internet Application development using the JavaScript Maven Plugin and the rich set of Maven-based tools it provides.
A project created with this archetype gives you a working 'Hello World' application which is a starting point for your own JS RIA.
Run the following command to create a project using this archetype:
mvn archetype:generate -DarchetypeGroupId=org.codehaus.mojo -DarchetypeArtifactId=javascript-ria-archetype
Maven will then prompt you for details on the project it's about to create - for example:
Define value for property 'groupId': : my.group Define value for property 'artifactId': : my-jsria Define value for property 'version': 1.0-SNAPSHOT: : Define value for property 'package': my.group: :
Once maven is finished, a new folder will have been created in your working directory which contains a new project based on the settings you provided setup according to the archetype.
You may want to try the following commands:
mvn test
mvn jetty:run
mvn site
mvn package
Other Notes:
For more information on the features available in the archetype project, see the javascript maven plugin project - this plugin is what provides the JavaScript tooling for you.
You can learn more about the architecture of the sample project by reading the JSRIA Architecture page.