Sakai Spring Maven Archetype v1.0
I am happy to release version 1.0 of the Sakai Spring Maven Archetype. This maven archetype is modeled after and inspired by the Sakai Wicket Maven Archetype created by Steve Swinsburg. This archetype will generate a very basic Sakai tool for a user to get started with. The tool is currently setup for Sakai 2.7.0. The goal of this tool is to provide a easy way for users to get a basic project setup and running quickly that uses Spring MVC and has a example of the Sakai API and components structure in it.
To use this tool we will first need to install the new maven archetype into your local maven repository. This can be done by doing the following:
- To use this tool download the sakai-spring-maven-archetype.zip.
- Unzip the sakai-spring-maven-archetype.zip into a temporary directory.
# cd <temporary directory>/sakai-spring-maven-archetype# mvn clean install
Now that you have the the archetype installed in your local repository you can use it by doing:
# mvn archetype:generate -DarchetypeCatalog=local
This command will allow you to pick the archetype you just installed from your local repository and use it. You will need to provide a groupID, artifactID, and default package. You could provide something like:
groupID : org.sakaiproject artifactID : spring-tool package: org.sakaiproject
Please leave any comments or suggestions on improvements that can be done.
Thanks and enjoy.
| Attachment | Size |
|---|---|
| sakai-spring-maven-archetype.zip | 24.1 KB |

Comments
Excelent work
Hi Mike,
I am totally new on Sakai and after a couple of days trying to figure out how to start a new tool from the scratch I finally found your post. It is so far the easier way I have found.
I just wanted to say thanks.
Jesus Federico