···
On Thu, Sep 5, 2013 at 3:59 PM, Jesse Eichar <jesse.eichar@anonymised.com> wrote:
If you need any other advice don’t be shy about asking for it.
Jesse
–
Systems Programmer
kCube Consultancy Services
On Thu, Sep 5, 2013 at 12:27 PM, Ameet Chaudhari <ameet.chaudhari@anonymised.com31…> wrote:
Sure, I can work around the scala.actors.threadpool.Arrays and also replace the other one. And the transitive dependency is not working probably since the maven_repo sub-module is empty in the source I’ve downloaded.
I downloaded the source bundle as a zip archive. I guess the right thing to do was to clone it using git as you’ve pointed.
Thanks a lot Jesse
Regards
Ameet
On Thu, Sep 5, 2013 at 3:29 PM, Jesse Eichar <jesse.eichar@anonymised.com> wrote:
–
Systems Programmer
kCube Consultancy Services
2 things.
- geonetwork-main should have the scala library available via a transitive dependency through geonetwork-main → Jeeves → config → scala-lib
- Are the imports actually used? If not then delete then.
I always have a similar process to you. I guess the question for me is how did you get the sources? Did you download a source bundle or did you use git to clone the tag from the repository.
I would recommend the second because you need the maven_repo sub-module.
Jesse
On Thu, Sep 5, 2013 at 11:53 AM, Ameet Chaudhari <ameet.chaudhari@anonymised.com> wrote:
Sorry to bother a bit more with this but I’m not sure I got the point regarding detached and pre-compiled module. What I have with me is a setup of v2.10.1 in eclipse. I tried two approaches:
-
Ran mvn eclipse:clean eclipse:eclipse and then imported using ‘Import → General → Existing projects into workspace’
-
Ran mvn clean install and then imported using Import → Maven → Existing Maven projects.
In both cases, the geonetwork-main source shows error at two points (Scala imports) even though the maven build is successfull and the deployment resources are created. I need to develop and build from inside eclipse.
So do you mean I can ignore these errors and still build and run on tomcat from eclipse? or do I have to always build outside eclipse?
On Wed, Sep 4, 2013 at 11:59 PM, Jesse Eichar <jesse.eichar@anonymised.com> wrote:
YOu do not need the scala compiler to build it. There is a module that is detached that has the scala code and the pre-compiled module is in the maven_repo module so there is no need for anything special. Just run maven and have fun.
Jesse
–
Systems Programmer
kCube Consultancy Services
On Wed, Sep 4, 2013 at 4:10 PM, Ameet Chaudhari <ameet.chaudhari@anonymised.com> wrote:
So for the version I have downloaded, 2.10.x, do I need scala compiler apart from its jars to build it?
I guess this is the latest one, or do I need to download the develop branch?
Ameet
On Wed, Sep 4, 2013 at 7:22 PM, Jesse Eichar <jesse.eichar@anonymised.com> wrote:
No it doesn’t.
There was a small experiment at one point for migrating some configuration file. And I think there may be 1 or 2 releases with it. But it is removed.
Jesse
–
Systems Programmer
kCube Consultancy Services
On Wed, Sep 4, 2013 at 3:48 PM, Ameet Chaudhari <ameet.chaudhari@anonymised.com> wrote:
Hi all,
I’ve been trying to setup GeoNetwork 2.10.1 on Eclipse since yesterday. Just resolved missing jars (so many … Artifacts not found errors!) from the mvn command. After getting it all loaded in eclipse, I (surprisingly for me atleast saw the geonetwork-main code importing Scala code at two places, details are given next:
scala.actors.threadpool.Arrays
GeomFormat.java
package org.fao.geonet.services.region
scala.collection.mutable.StringBuilder
Sitemap.java
package org.fao.geonet.guiservices.metadata
I don’t have scala setup in my eclipse nor it is there as a dependency in the pom file (AFAIK). If so, why? I thought I read somewhere that geonetwork is pure java… nyways do I need to have whole scala dev enviro (including compiler) to build geonetwork successfully?
Thanks and Regards
Ameet
Learn the latest–Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
GeoNetwork-devel mailing list
GeoNetwork-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork