[Building Sakai] moved/removed javacode 2.5 - 2.6

Peter Krooks Peter.Krooks at umdac.umu.se
Thu Nov 12 04:36:17 PST 2009


Hi,
thank you for your help! 
But I get an error in tests when downloading the kernel, adding it to my master-pom and building everything.
(When building the kernel first and the rest after without adding kernel to master pom, everything builds ok)

I put it first in the build order: 

  </activation>
      <modules>
        <module>kernel-1.0.11</module>
        <module>blogwow</module>
        <module>sitestats</module>
        <module>melete</module>


The error I get is:

    -------------------------------------------------------
      T E S T S
    -------------------------------------------------------
    Running org.sakaiproject.test.ChildContextDependencyInjectionTest
    Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.028 sec <<< FAILURE!
    Running org.sakaiproject.test.SimpleDependencyInjectionTest
    Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.031 sec <<< FAILURE!
    Running org.sakaiproject.test.SampleSakaiTest
    Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.021 sec <<< FAILURE!

    Results :

   Tests in error:
     org.sakaiproject.test.SampleSakaiTest

   Tests run: 4, Failures: 0, Errors: 4, Skipped: 0

    [INFO] ------------------------------------------------------------------------
    [ERROR] BUILD FAILURE
    [INFO] ------------------------------------------------------------------------
    [INFO] There are test failures.
    [INFO] ------------------------------------------------------------------------
    [INFO] For more information, run Maven with the -e switch
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 7 minutes 49 seconds


Any ideas?
regards,
Peter
________________________________________
Från: Anthony Whyte [arwhyte at umich.edu]
Skickat: den 9 november 2009 16:04
Till: Peter Krooks
Kopia: Developers List; Zeckoski Aaron
Ämne: Re: [Building Sakai] moved/removed javacode 2.5 - 2.6

Sakai 2.6.0 binds to kernel 1.0.11.

https://source.sakaiproject.org/svn/kernel/tags/kernel-1.0.11/

Sakai 2.6.1 binds to kernel 1.0.12

https://source.sakaiproject.org/svn/kernel/tags/kernel-1.0.12/

The 2.6.x branch (HEAD) binds currently to kernel 1.0.13-SNAPSHOT

https://source.sakaiproject.org/svn/kernel/branches/kernel-1.0.x/

You can confirm which version a Sakai tag/branch is using by checking the Sakai master pom <sakai.version.kernel> property:

Example

https://source.sakaiproject.org/svn/master/tags/sakai-2.6.0/pom.xml

<sakai.kernel.version>1.0.11</sakai.kernel.version>

Cheers,

Anthony

On Nov 9, 2009, at 4:53 AM, Aaron Zeckoski wrote:

The kernel is distributed as a binary now. If you want the source you
have to check it out from here:
https://source.sakaiproject.org/svn/kernel/trunk (this is trunk)
or one of the tags here:
https://source.sakaiproject.org/svn/kernel/tags/
You probably want to grab the version of the kernel built for your
version of Sakai (just check your base POM).
-AZ


On Mon, Nov 9, 2009 at 9:49 AM, Peter Krooks <Peter.Krooks at umdac.umu.se> wrote:
Hi,
when looking in svn I see the file I want to modify: https://source.sakaiproject.org/svn/kernel/branches/kernel-1.0.x/api/src/main/java/org/sakaiproject/user/api/UserDirectoryService.java

But the file is absent in our checkout,  wich was done like this (from documentation on http://confluence.sakaiproject.org/display/DOC/Overview+%282.6%29):

   To checkout a stable release tag issue the following svn command from the terminal:
   svn co https://source.sakaiproject.org/svn/sakai/tags/sakai-2.6.0/
   ...
   Starting with Sakai 2.6, Sakai common services (e.g., authz, content, event, site, tool, user, etc.) have been repackaged and refactored as the Sakai Kernel (K1). In most cases, you will never have to check out the kernel manually as Sakai 2.6 kernel dependencies   are managed by Maven.

Do I need to check out the kernel separately?

regards,
Peter
Umdac, Umea University


________________________________________
Från: Noah Botimer [botimer at umich.edu]
Skickat: den 6 november 2009 15:31
Till: Peter Krooks
Kopia: sakai-dev at collab.sakaiproject.org
Ämne: Re: [Building Sakai] moved/removed javacode 2.5 - 2.6

Peter,

This is part of the transition to the "K1" kernel. That is, a bunch
of modules were pulled together as the fundamental base of Sakai. It
is just a repackaging for convenience and coherence. The only changes
required to a project should be in the poms.

Sakai 2.6 depends on the 1.0 branch of K1, which lives here:

https://source.sakaiproject.org/svn/kernel/branches/kernel-1.0.x/


There are various posts to this list archived on how to update
projects. If you are just looking to apply local modifications, you
may want to look at the layout here. Once you get into the user/api
directory, for example, it's all the same as the old user/user-api
contents. It's pretty straightforward:

https://source.sakaiproject.org/svn/kernel/branches/kernel-1.0.x/api/
src/main/java/org/sakaiproject/


Thanks,
-Noah

On Nov 6, 2009, at 9:19 AM, Peter Krooks wrote:

Hi all,
during our lift from 2.5-2.6, we noticed that these files has
dissapeared in Sakai 2.6:

/user/user-api/api/src/java/org/sakaiproject/user/api/
UserDirectoryService.java
/user/user-api/api/src/java/org/sakaiproject/user/cover/
UserDirectoryService.java

Does anyone know if this code is located in other files or totally
removed?

Thanks!
/Peter
_______________________________________________
sakai-dev mailing list
sakai-dev at collab.sakaiproject.org
http://collab.sakaiproject.org/mailman/listinfo/sakai-dev

TO UNSUBSCRIBE: send email to sakai-dev-
unsubscribe at collab.sakaiproject.org with a subject of "unsubscribe"



_______________________________________________
sakai-dev mailing list
sakai-dev at collab.sakaiproject.org
http://collab.sakaiproject.org/mailman/listinfo/sakai-dev

TO UNSUBSCRIBE: send email to sakai-dev-unsubscribe at collab.sakaiproject.org with a subject of "unsubscribe"




--
Aaron Zeckoski (azeckoski (at) vt.edu)
Senior Research Engineer - CARET - University of Cambridge
https://twitter.com/azeckoski - http://www.linkedin.com/in/azeckoski
http://aaronz-sakai.blogspot.com/ - http://tinyurl.com/azprofile
_______________________________________________
sakai-dev mailing list
sakai-dev at collab.sakaiproject.org
http://collab.sakaiproject.org/mailman/listinfo/sakai-dev

TO UNSUBSCRIBE: send email to sakai-dev-unsubscribe at collab.sakaiproject.org with a subject of "unsubscribe"





More information about the sakai-dev mailing list