[Building Sakai] FW: FW: Compilation error
Steve Swinsburg
steve.swinsburg at gmail.com
Thu Nov 26 15:13:29 PST 2009
Hi,
That is just going to remove a Java source file which may get around the
compilation failure, but then you don't have that class! The issue is in the
POM not declaring the necessary dependency. Add this to the
chat/chat-tool/tool/pom.xml
<dependency>
<groupId>commons-lang</groupId>
<artifactId>commons-lang</artifactId>
<version>2.4</version>
<scope>provided</scope>
</dependency>
The version can be inherited but adding that should sort you out. As an
aside, why doesn't chat declare it's dependencies?
What version Maven are you using?
mvn -v
Apache Maven 2.2.1 (r801777; 2009-08-07 05:16:01+1000)
Java version: 1.6.0_15
Java home: /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home
Default locale: en_US, platform encoding: MacRoman
OS name: "mac os x" version: "10.6.2" arch: "x86_64" Family: "mac"
cheers,
Steve
On Fri, Nov 27, 2009 at 9:56 AM, Yamel Yusef Dajlala Spingler <
yamel_30 at hotmail.com> wrote:
> ok, if i will be you, i'll do this.
>
> first go to:
>
> rootmaguillen# cd
> /opt/sakai-2.6.0/chat/chat-tool/tool/src/java/org/sakaiproject/chat2/tool/
> rootmaguillen#pwd
> /opt/sakai-2.6.0/chat/chat-tool/tool/src/java/org/sakaiproject/chat2/tool/
>
> then
>
> rootmaguillen#ls
>
> ChatDelivery.java
>
> rootmagullen#rm -rf ChatDelivery.java
>
> and then compile code
>
> Good luck man
>
>
>
>
> ------------------------------
> From: maguillen at pdi.ucam.edu
> Date: Thu, 26 Nov 2009 22:47:32 +0100
> Subject: Re: [Building Sakai] FW: Compilation error
> To: yamel_30 at hotmail.com
> CC: sakai-dev at collab.sakaiproject.org
>
>
> it isn't work :(
>
> The 'org.apache.commons.lang' package seems to be missing
>
> any idea?
>
> regards
>
> ----
> Miguel Ángel Guillén
>
>
>
> On Thu, Nov 26, 2009 at 6:33 PM, Yamel Yusef Dajlala Spingler <
> yamel_30 at hotmail.com> wrote:
>
> Hi there maguillen, i had an error like that, and the thing i did was to
> erase the file that was giving me problems, in this case i recommend you to
> erase ChatDelivery.java and compile with maven again.
>
> Good luck, i hope you don't get trouble anymore.
>
> ------------------------------
> From: maguillen at pdi.ucam.edu
> Date: Thu, 26 Nov 2009 18:07:28 +0100
> To: sakai-dev at collab.sakaiproject.org
> Subject: [Building Sakai] Compilation error
>
>
> Hi,
>
> The past weekend I tried to install Sakai (2.6.0) on my computer. What was
> my surprise to find this error:
>
> /opt/sakai-2.6.0/chat/chat-tool/tool/src/java/org/sakaiproject/chat2/tool/ChatDelivery.java:[26,31]
> package org.apache.commons.lang does not exist
>
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:580)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:500)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:479)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:331)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:292)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:301)
> 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)
>
>
> This had never happened to me. And sometimes I've tried ... 2.5.4, 2.6.0
> and 2.6.1 (few weeks ago). Has there been any change in the repository in
> recent days??.
>
> I get the same error with 2.6.0 and trunk versions.
>
> Thank you very much
>
> Regards,
>
> ----
> Miguel Ángel Guillén
>
> ----
> Miguel Ángel Guillén
>
>
> ------------------------------
> Pedí que fuera más fácil de usar. Ahora me siento un experto<http://www.windows.com.mx>
>
> _______________________________________________
> 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"
>
>
>
> ------------------------------
> Pedí que fuera más fácil de usar. Ahora me siento un experto<http://www.windows.com.mx>
>
> _______________________________________________
> 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/20091127/4de9a08f/attachment.html
More information about the sakai-dev
mailing list