[Building Sakai] Compile 2.6.0 against kernel 1.1.6

David Horwitz david.horwitz at uct.ac.za
Tue May 18 05:54:39 PDT 2010


Hi,

To build 2.6 code against the 1.1 kernel you will need to patch your 2.6
code as this is a major version upgrade with API  differences. That said
the error your seeing looks unrelated. I'm not familiar with maven on
windows but do recall that some have had problems using it on paths with
spaces in them - you could try running it from a path not in "Documents
and Settings"

David

On 05/18/2010 02:46 PM, Manesiya,Rustamali R wrote:
> 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
>
>
>   
>
>
> _______________________________________________
> 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"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20100518/14703d73/attachment.html 


More information about the sakai-dev mailing list