Sakai Wicket Maven Archetype updated and released to Maven Central

The Sakai Wicket Maven Archetype has been updated to the latest version of Wicket 6 and styling issues fixed for the latest Sakai portal. It’s also been released to Maven central.

The Sakai Wicket Maven Archetype allows you to generate a sample Sakai app via a single Maven command. The app demonstrates how to get a Sakai tool styled, internationalised and registered, setup your own APIs, wire them up with Spring and inject them via annotations. The app also also includes multi database support via Spring JDBC. It could easily be used as a base for a real tool.

Generate an app:

mvn archetype:generate -DarchetypeGroupId=org.sakaiproject.maven-archetype -DarchetypeArtifactId=sakai-wicket-maven-archetype -DarchetypeVersion=1.5.0 -DgroupId=org.sakaiproject.example -DartifactId=exampleApp

More info here:
https://confluence.sakaiproject.org/display/BOOT/Sakai+Wicket+Maven+Archetype

Advertisements

2 thoughts on “Sakai Wicket Maven Archetype updated and released to Maven Central

  1. Hi!

    I’ve use this command to generate an app on my Sakai folder, but, when I try to do an “mvn clean install” it give me this error.

    [INFO] ————————————————————————
    [INFO] BUILD FAILURE
    [INFO] ————————————————————————
    [INFO] Total time: 2.464 s
    [INFO] Finished at: 2015-03-22T12:39:50+01:00
    [INFO] Final Memory: 18M/495M
    [INFO] ————————————————————————
    [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project exampleApp-tool: Compilation failure: Compilation failure:
    [ERROR] /C:/opt/sakai-10.4/exampleApp/tool/src/java/org/sakaiproject/example/tool/pages/ThirdPage.java:[19,23] package com.steve.model does not exist
    [ERROR] /C:/opt/sakai-10.4/exampleApp/tool/src/java/org/sakaiproject/example/tool/pages/ThirdPage.java:[19,23] package com.steve.model does not exist

    Any idea about why?

    Thank you for your blog. It is a very helpfull for the new sakai developers.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s