How to configure Eclipse for develpment of sakai in linux?

153 views
Skip to first unread message

mpldev

unread,
Aug 30, 2016, 11:40:51 AM8/30/16
to Sakai Development

Have a good day for all sakai developers,

I'm Configuring eclipse for starting, I'm reading the Development Environment Setup Walkthrough but is not clear for me and i have this:

Terminal instruction:

mvn clean install sakai:deploy -Dmaven.tomcat.home=${sakai}/tomcat -Dsakai.home=${sakai}/tomcat/sakai -Djava.net.preferIPv4Stack=true -Dmaven.test.skip=true





Folder, eclipse IDE and Run configurations:



What other settings must be set in this confurations? thanks,
Auto Generated Inline Image 1
Auto Generated Inline Image 2
Auto Generated Inline Image 3

Leonardo Canessa

unread,
Aug 30, 2016, 11:44:03 AM8/30/16
to mpldev, Sakai Development
I don't believe sakai:deploy is a profile, but rather a maven goal. It is my understanding that profiles are specified with the -p flag in mvn.

Also, personally I build / deploy in the CLI and just do development / debugging in my IDE.

Leonardo Canessa
Web Developer - E-Learning

--
You received this message because you are subscribed to the Google Groups "Sakai Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sakai-dev+unsubscribe@apereo.org.
To post to this group, send email to saka...@apereo.org.
Visit this group at https://groups.google.com/a/apereo.org/group/sakai-dev/.

Matthew Jones

unread,
Aug 30, 2016, 11:50:20 AM8/30/16
to mpldev, Sakai Development
I'm with Leonardo.  Build and Deploy on the command line and develop and use the remote debugger (or run JUnit tests) in Eclipse. That page probably needs some updates.

Eclipse in a new Workspace -> Import->Maven->Existing Maven projects

And I usually just select an individual tool so it doesn't add in every tool and take forever. After you've built everything on the command line you can.

Some good plugins are the Eclipse Git and Velocity UI (if you're working with a lot of velocity tools)

After the build is good in Eclipse, I'll redeploy on the command line and (sometimes) have to restart the server.

On Tue, Aug 30, 2016 at 8:44 AM Leonardo Canessa <lcan...@udayton.edu> wrote:
I don't believe sakai:deploy is a profile, but rather a maven goal. It is my understanding that profiles are specified with the -p flag in mvn.

Also, personally I build / deploy in the CLI and just do development / debugging in my IDE.

Leonardo Canessa
Web Developer - E-Learning
On Tue, Aug 30, 2016 at 11:40 AM, mpldev <mario....@mpl.com.co> wrote:

Have a good day for all sakai developers,

I'm Configuring eclipse for starting, I'm reading the Development Environment Setup Walkthrough but is not clear for me and i have this:

Terminal instruction:

mvn clean install sakai:deploy -Dmaven.tomcat.home=${sakai}/tomcat -Dsakai.home=${sakai}/tomcat/sakai -Djava.net.preferIPv4Stack=true -Dmaven.test.skip=true

Auto Generated Inline Image 1
Auto Generated Inline Image 2


Folder, eclipse IDE and Run configurations:

Auto Generated Inline Image 3

What other settings must be set in this confurations? thanks,

--
You received this message because you are subscribed to the Google Groups "Sakai Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sakai-dev+...@apereo.org.

To post to this group, send email to saka...@apereo.org.
Visit this group at https://groups.google.com/a/apereo.org/group/sakai-dev/.

--
You received this message because you are subscribed to the Google Groups "Sakai Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sakai-dev+...@apereo.org.

mpldev

unread,
Aug 30, 2016, 2:27:26 PM8/30/16
to Sakai Development
Yes, that's the way, but i have java errors in the build path.


How can I resolve that?
import sakai into eclipse.webm
Auto Generated Inline Image 1

Matthew Jones

unread,
Aug 30, 2016, 2:35:08 PM8/30/16
to mpldev, Sakai Development
What that page you linked says in 17->e

Add Maven Repository libraries to classpath
  • Select Window -> Preferences -> Java -> Build Path -> Classpath Variables
  1. Add M2_REPO classpath variable with the path to the local maven repository (Sakai 2.5 or higher)
    • The path should be: $USER_HOME/.m2/repository

--

mpldev

unread,
Aug 30, 2016, 4:21:10 PM8/30/16
to Sakai Development, mario....@mpl.com.co
Yes I have, but the errors still here

Auto Generated Inline Image 1

Steve Swinsburg

unread,
Aug 31, 2016, 2:51:52 AM8/31/16
to mpldev, Sakai Development
I use mvn eclipse:eclipse on my projects that I pull into eclipse and it fixes up all of the classpath issues.

cheers,
Steve

On Wed, Aug 31, 2016 at 6:21 AM, mpldev <mario....@mpl.com.co> wrote:
Yes I have, but the errors still here

--
You received this message because you are subscribed to the Google Groups "Sakai Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sakai-dev+unsubscribe@apereo.org.

mpldev

unread,
Sep 2, 2016, 10:58:20 AM9/2/16
to Sakai Development, mario....@mpl.com.co
I run mvn eclipse:eclipse, but the same errors persist. what am I doing wrong ?, 

mpldev

unread,
Sep 2, 2016, 11:11:11 AM9/2/16
to Sakai Development, mario....@mpl.com.co
This are errors:
I need help!
Auto Generated Inline Image 1
Auto Generated Inline Image 2

Matthew Jones

unread,
Sep 2, 2016, 11:19:21 AM9/2/16
to mpldev, Sakai Development
I've never seen this problem, I'd search stack overflow. Does this solution do anything for you? I don't even have the Java EE Integration setup so maybe this is part of what you're seeing. I just use the standard Eclipse package.


On Fri, Sep 2, 2016 at 8:11 AM mpldev <mario....@mpl.com.co> wrote:
This are errors:
I need help!

--
You received this message because you are subscribed to the Google Groups "Sakai Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sakai-dev+...@apereo.org.

mpldev

unread,
Sep 2, 2016, 11:48:11 AM9/2/16
to Sakai Development, mario....@mpl.com.co
Thank you Matthew, I'll try to do that
Reply all
Reply to author
Forward
0 new messages