[Building Sakai] Build problems with 2.9 on Centos

Gregory Guthrie guthrie at mum.edu
Mon Mar 25 10:02:21 PDT 2013


I tried a build on Centos(6) of Sakai 2.9, and get this error (below).

I wonder if it is because of some local confusion on the version of Java installed?
I do have JAVA_HOME et. all set, and followed all the instructions on Confluence (I hope!).

Java reports 1.6, Linux reports 1.5.

     [root at theta sakai]# yum install java
     Loaded plugins: fastestmirror, refresh-packagekit, security
     Loading mirror speeds from cached hostfile
      * base: centos.netnitco.net
      * extras: mirror.linux.duke.edu
      * rpmforge: mirror.us.leaseweb.net
      * updates: centos.corenetworks.net
     Setting up Install Process
     Package java-1.5.0-gcj-1.5.0.0-29.1.el6.i686 already installed and latest version
     Nothing to do

      [root at theta sakai]# java -version
     java version "1.6.0_24"
     OpenJDK Runtime Environment (IcedTea6 1.11.9) (rhel-1.57.1.11.9.el6_4-i386)
     OpenJDK Client VM (build 20.0-b12, mixed mode)

Ah, for the glorious future of having "yum install sakai"!  :-)

    https://confluence.sakaiproject.org/display/BOOT/Development+Environment+Setup+Walkthrough 
≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

Missing:
----------
1) com.sun:tools:jar:1.5.0

  Try downloading the file manually from the project website.

  Then, install it using the command: 
      mvn install:install-file -DgroupId=com.sun -DartifactId=tools -Dversion=1.5.0 -Dpackaging=jar -Dfile=/
path/to/file

  Alternatively, if you host your own repository you can deploy the file there: 
      mvn deploy:deploy-file -DgroupId=com.sun -DartifactId=tools -Dversion=1.5.0 -Dpackaging=jar -Dfile=/pa
th/to/file -Durl=[url] -DrepositoryId=[id]

  Path to dependency: 
        1) org.sakaiproject.kernel:sakai-component-manager:jar:1.3.0
        2) com.sun:tools:jar:1.5.0

----------
1 required artifact is missing.

for artifact: 
  org.sakaiproject.kernel:sakai-component-manager:jar:1.3.0

from the specified remote repositories:
  default (http://repo1.maven.org/maven2),
  central (http://repo1.maven.org/maven2),
  sakai-maven (http://source.sakaiproject.org/maven2),
  sonatype-nexus-snapshots (https://oss.sonatype.org/content/repositories/snapshots)
-------------------------------------------


More information about the sakai-dev mailing list