[Building Sakai] Compile 2.6.0 against kernel 1.1.6

Manesiya,Rustamali R rmanesiy at mdanderson.org
Tue May 18 05:46:11 PDT 2010


Is it possible to compile kernel 1.1.6 with 2.6.0 source code of Sakai? I modified the master.pom to set the sakai.kernel.version to 1.1.6 and this is where it quits compiling. I checked the folder and I see this error. I have attached screenshot at the very bottom.


[INFO] Building sakai-velocity-tool
[INFO]    task-segment: [clean, install, sakai:deploy]
[INFO] ------------------------------------------------------------------------
[INFO] [clean:clean {execution: default-clean}]
[INFO] Deleting directory C:\Documents and Settings\rmanesiya\WS-Sakai\sakai\velocity\tool\target
[INFO] [resources:resources {execution: default-resources}]
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 15 resources
[INFO] Copying 9 resources
[INFO] [compiler:compile {execution: default-compile}]
[INFO] Compiling 27 source files to C:\Documents and Settings\rmanesiya\WS-Sakai\sakai\velocity\tool\target\classes
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Compilation failure
C:\Documents and Settings\rmanesiya\WS-Sakai\sakai\velocity\tool\src\java\org\sakaiproject\cheftool\PagedResourceAction.java:[27,-1] cannot access org.sakaiproject.cheftool.api.Menu
bad class file: C:\Documents and Settings\rmanesiya\WS-Sakai\sakai\velocity\tool-api\target\sakai-velocity-tool-api-2.6.0.jar(org/sakaiproject/cheftool/api/Menu.class)
class file contains wrong class: velocity.tool-api.src.java.org.sakaiproject.cheftool.api.Menu


[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.BuildFailureException: Compilation failure
C:\Documents and Settings\rmanesiya\WS-Sakai\sakai\velocity\tool\src\java\org\sakaiproject\cheftool\PagedResourceAction.java:[27,-1] cannot access org.sakaiproject.cheftool.api.Menu
bad class file: C:\Documents and Settings\rmanesiya\WS-Sakai\sakai\velocity\tool-api\target\sakai-velocity-tool-api-2.6.0.jar(org/sakaiproject/cheftool/api/Menu.class)
class file contains wrong class: velocity.tool-api.src.java.org.sakaiproject.cheftool.api.Menu


        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:715)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
        at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.CompilationFailureException: Compilation failure
C:\Documents and Settings\rmanesiya\WS-Sakai\sakai\velocity\tool\src\java\org\sakaiproject\cheftool\PagedResourceAction.java:[27,-1] cannot access org.sakaiproject.cheftool.api.Menu
bad class file: C:\Documents and Settings\rmanesiya\WS-Sakai\sakai\velocity\tool-api\target\sakai-velocity-tool-api-2.6.0.jar(org/sakaiproject/cheftool/api/Menu.class)
class file contains wrong class: velocity.tool-api.src.java.org.sakaiproject.cheftool.api.Menu


        at org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:516)
        at org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:114)
        at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
        ... 17 more
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2 minutes 59 seconds
[INFO] Finished at: Tue May 18 07:36:54 CDT 2010
[INFO] Final Memory: 109M/294M
[INFO] ------------------------------------------------------------------------




Rusty

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20100518/18b65977/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Picture (Device Independent Bitmap) 1.jpg
Type: image/jpeg
Size: 69187 bytes
Desc: Picture (Device Independent Bitmap) 1.jpg
Url : http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20100518/18b65977/attachment.jpg 


More information about the sakai-dev mailing list