May 13, 2006

Don't compile Sakai with maven 1.0 - use 1.02 at least

If you see a bunch of messages that look like this:

BUILD FAILED
File...... /Users/csev/.maven/cache/sakai-2.0.0/plugin.jelly
Element... maven:reactor
Line...... 34
Column.... 6
The build cannot continue because of the following unsatisfied dependencies:

sakai-gradebook-app-business-.jar
sakai-gradebook-service-api-.jar
sakai-gradebook-service-hibernate-.jar
sakai-gradebook-service-impl-.jar
sakai-sections-api-.jar
sakai

Then you need to upgrade your maven to at least 1.0.2.

The problem is that the file

~/dev/sakai/gradebook/app/proect.xml

Extends

~/dev/sakai/gradebook/project.xml

Which extends

~/dev/sakai/master/project.xml

Which reads

~/dev/sakai/master/project.properties

And finds this property:

sakai.version=dev

The problem is that in Maven 1.0 the inheritance path does not find the properties and so the jars are improperly named.

In Maven 1.0.2 this all works.

I was scratching my head for a few days on this one.

Posted by csev at May 13, 2006 06:39 PM