Renjin on Eclipse via Maven

267 views
Skip to first unread message

Andre Bessi

unread,
Dec 12, 2012, 5:35:29 PM12/12/12
to renji...@googlegroups.com
Hello!
 Has anyone tried to embed Renjin in a wider project using Eclipse as SDK?
Today I downloaded the Maven integration plugin for Eclipse (m2eclipse). Then I tried to find out where to add the reference to bedatadriven's public repo (and, I have to admit, I am quite inexperienced, so I may have made a mistake here).
However, after many attempts, I wasn't able to include Renjin in my project. The only answer Eclipse could give is that the "Remote catalog is empty".
Could you please tell me how should I proceed?

Best
 
Andre Bessi

Bertram, Alexander

unread,
Dec 12, 2012, 6:33:37 PM12/12/12
to renji...@googlegroups.com
Hi Andre,
Checkout the downloads page:

If you're using m2eclipse, then you'll define your projects dependencies through the pom.xml file just as you would in the absence of Eclipse. 
You need to add renjin as a dependency and our public repo to your pom.xml file. 



<dependency>
 
<groupId>org.renjin</groupId>
 
<artifactId>renjin-core</artifactId>
 
<version>0.6.8-SNAPSHOT</version>
</dependency>

You will need to add a reference to bedatadriven's public repo:


<repository>
 
<id>bedatadriven</id>
 
<name>Bedatadriven Public REpo</name>
 
<url>http://nexus.bedatadriven.com/content/groups/public/</url>
</repository>
Hope this helps!

Alex


 
Andre Bessi

--
 
 

sep...@gmail.com

unread,
Dec 15, 2012, 1:41:02 PM12/15/12
to renji...@googlegroups.com
Hi Bertram!
I studied the download page before of my first post, of course, and a few short tutorial about Maven too, but unfortunately it didn't help.
In Eclipse, there are 2 POM files: "pom.xml" and "Effective POM". While Effective POM is the only one with the <repository> field, it isn't editable. On the other hand, pom.xml is editable, but even so adding the <repository> field with a reference to betadatadriven public repo doesn't allow to add Renjin as a dependency.
I presume that Eclipse manages the repositories "internally", i.e. in Eclipse you can add repositories only through its methods, in the "Eclipse way". I can't find the right method, though.

Andre

Bertram, Alexander

unread,
Dec 16, 2012, 3:34:19 AM12/16/12
to renji...@googlegroups.com
Dear Andre,
If you're just starting with maven, I would suggest ignoring the eclipse interface for a moment, and working through editing your pom.xml by hand. To add renjin as a dependency, you need to add the bedatadriven repository in the <repositories>, and then add renjin-core at least in your <dependencies> section. 

Eclipse does not manage these repositories at all, it is all handled by maven. It is separate from the Eclipse update system.

I'd suggest working through a maven getting started guide first, without eclipse:

And then once you can build from the command line, take another look at the m2eclipse plugin. M2eclipse tells Eclipse to let maven handle your project's dependencies (rather than having to manually add your dependencies to the build path) and gives you a UI for editing the Project Object Model (POM), but it doesn't change the way maven works. 

You don't have to use maven for developing with renjin -- you can simply download the zip file which contains a dependencies folder-- just add all of the jars to your Eclipse Project and you will be good to go.

Best,
Alex






Andre

--
 
 

sep...@gmail.com

unread,
Dec 18, 2012, 7:47:52 AM12/18/12
to renji...@googlegroups.com
Hi Alex,
 Ok, I'll proceed as you suggested, then.
Thanks again for your support and attention.

Best,
Andre
Reply all
Reply to author
Forward
0 new messages