[GeoNetwork-devel] How to compile GeoNetwork trunk (Maven) in Eclipse?

  Is there a tutorial on how to compile a GeoNetwork (GN) trunk build in Eclipse?
Our old Eclipse development set-up and tutorial has deprecated since GN moved to Maven.

I believe my Eclipse Javav EE IDE is setup correctly for Maven 2 and SVN but I don't know how to configure things such as the Maven Archetype (over 40 choices plus custom archetype). I have looked at http://trac.osgeo.org/geonetwork/wiki/Maven which was not clear enough for me.

Ciao, Wolfgang

--
_______________________________
Wolfgang Grunberg
Arizona Geological Survey
wgrunberg@anonymised.com
520-770-3500

Hi Wolfgang,

I`m having the same problem, an earlier email of mine to the list has
not yet yielded many answers, but here is what I found out.

You can check out the GN trunk as maven svn (import). You might have to
add the maven_repo in the sourcetree as additional maven repo
(settings.xml?) in order to compile everything.

One project is then recognized by Eclipse as webproject, you would be
able to launch it e.G in Tomcat or Jetty.

What is not clear to me is: Does one have to run gast? (I did not have
to, but was wondering why it worked).
How can I start jetty from eclipse (for debugging)? What has to be done
to avoid the jetty startup cluttering up the sourcetree with custom
repositories.

Any hints would be very welcome.

I'd be ready to make a new tutorial, but I feel that I'm not 100% up to
speed yet.

best
Timo

Le 21.07.2010 20:42, Wolfgang Grunberg a écrit :

  Is there a tutorial on how to compile a GeoNetwork (GN) trunk build in
Eclipse?
Our old Eclipse development set-up and tutorial has deprecated since GN
moved to Maven.

I believe my Eclipse Javav EE IDE is setup correctly for Maven 2 and SVN
but I don't know how to configure things such as the Maven Archetype
(over 40 choices plus custom archetype). I have looked at
http://trac.osgeo.org/geonetwork/wiki/Maven which was not clear enough
for me.

Ciao, Wolfgang

  Hi Timo,

I read your post but didn't see any replies in the list. I would love to see your Eclipse notes ! I figured out how to get Eclipse and Subclipse to work on Windows 7 Pro 64-bit. Maybe we can a throw a tutorial together?

Do you actually check out https://geonetwork.svn.sourceforge.net/svnroot/geonetwork/trunk or https://geonetwork.svn.sourceforge.net/svnroot/geonetwork/sandbox/maven ?
The trunk looks messy with inconsistent use of Ant and/or Maven.
I check out GeoNetwork through Eclipse/Subclipse but am stuck afterward. Originally, we ran our GeoNetwork development environment through Tomcat and MySQL (see tutorial at http://lab.usgin.org/node/293).

Ciao, Wolfgang

_______________________________
Wolfgang Grunberg
Arizona Geological Survey
wgrunberg@anonymised.com
520-770-3500

On 7/21/2010 12:12 PM, Timo Proescholdt wrote:

Hi Wolfgang,

I`m having the same problem, an earlier email of mine to the list has
not yet yielded many answers, but here is what I found out.

You can check out the GN trunk as maven svn (import). You might have to
add the maven_repo in the sourcetree as additional maven repo
(settings.xml?) in order to compile everything.

One project is then recognized by Eclipse as webproject, you would be
able to launch it e.G in Tomcat or Jetty.

What is not clear to me is: Does one have to run gast? (I did not have
to, but was wondering why it worked).
How can I start jetty from eclipse (for debugging)? What has to be done
to avoid the jetty startup cluttering up the sourcetree with custom
repositories.

Any hints would be very welcome.

I'd be ready to make a new tutorial, but I feel that I'm not 100% up to
speed yet.

best
Timo

Le 21.07.2010 20:42, Wolfgang Grunberg a écrit :

   Is there a tutorial on how to compile a GeoNetwork (GN) trunk build in
Eclipse?
Our old Eclipse development set-up and tutorial has deprecated since GN
moved to Maven.

I believe my Eclipse Javav EE IDE is setup correctly for Maven 2 and SVN
but I don't know how to configure things such as the Maven Archetype
(over 40 choices plus custom archetype). I have looked at
http://trac.osgeo.org/geonetwork/wiki/Maven which was not clear enough
for me.

Ciao, Wolfgang

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
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

Hi Timo and Wolfgang,

2010/7/21 Wolfgang Grunberg <wgrunberg@anonymised.com>:

Hi Timo,

I read your post but didn't see any replies in the list. I would love to
see your Eclipse notes ! I figured out how to get Eclipse and Subclipse
to work on Windows 7 Pro 64-bit. Maybe we can a throw a tutorial together?

Do you actually check out
https://geonetwork.svn.sourceforge.net/svnroot/geonetwork/trunk or
https://geonetwork.svn.sourceforge.net/svnroot/geonetwork/sandbox/maven ?

Trunk is the one to use.

For debug mode, I set up a tomcat servers from eclipse then adding
module trunk/web/target/geonetwork, I could use debug mode. Running
mvn install, update the target dir and tomcat reload the app. Maybe
there are better configuration.

Cheers.
Francois

The trunk looks messy with inconsistent use of Ant and/or Maven.
I check out GeoNetwork through Eclipse/Subclipse but am stuck afterward.
Originally, we ran our GeoNetwork development environment through Tomcat
and MySQL (see tutorial at http://lab.usgin.org/node/293).

Ciao, Wolfgang

_______________________________
Wolfgang Grunberg
Arizona Geological Survey
wgrunberg@anonymised.com
520-770-3500

On 7/21/2010 12:12 PM, Timo Proescholdt wrote:

Hi Wolfgang,

I`m having the same problem, an earlier email of mine to the list has
not yet yielded many answers, but here is what I found out.

You can check out the GN trunk as maven svn (import). You might have to
add the maven_repo in the sourcetree as additional maven repo
(settings.xml?) in order to compile everything.

One project is then recognized by Eclipse as webproject, you would be
able to launch it e.G in Tomcat or Jetty.

What is not clear to me is: Does one have to run gast? (I did not have
to, but was wondering why it worked).
How can I start jetty from eclipse (for debugging)? What has to be done
to avoid the jetty startup cluttering up the sourcetree with custom
repositories.

Any hints would be very welcome.

I'd be ready to make a new tutorial, but I feel that I'm not 100% up to
speed yet.

best
Timo

Le 21.07.2010 20:42, Wolfgang Grunberg a écrit :

Is there a tutorial on how to compile a GeoNetwork (GN) trunk build in
Eclipse?
Our old Eclipse development set-up and tutorial has deprecated since GN
moved to Maven.

I believe my Eclipse Javav EE IDE is setup correctly for Maven 2 and SVN
but I don't know how to configure things such as the Maven Archetype
(over 40 choices plus custom archetype). I have looked at
http://trac.osgeo.org/geonetwork/wiki/Maven which was not clear enough
for me.

Ciao, Wolfgang

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
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

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
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

Hello,

2010/7/21 Timo Proescholdt <timo@anonymised.com>:

Hi Wolfgang,

I`m having the same problem, an earlier email of mine to the list has
not yet yielded many answers, but here is what I found out.

You can check out the GN trunk as maven svn (import). You might have to
add the maven_repo in the sourcetree as additional maven repo
(settings.xml?) in order to compile everything.

One project is then recognized by Eclipse as webproject, you would be
able to launch it e.G in Tomcat or Jetty.

What is not clear to me is: Does one have to run gast? (I did not have
to, but was wondering why it worked).

No, we added the initialization of the database if does not exist on
startup (it will create the structure not the db).
Check the resource section of the config.xml for more details.

From the admin page, you could load templates or sample data.

Cheers.

Francois

How can I start jetty from eclipse (for debugging)? What has to be done
to avoid the jetty startup cluttering up the sourcetree with custom
repositories.

Any hints would be very welcome.

I'd be ready to make a new tutorial, but I feel that I'm not 100% up to
speed yet.

best
Timo

Le 21.07.2010 20:42, Wolfgang Grunberg a écrit :

Is there a tutorial on how to compile a GeoNetwork (GN) trunk build in
Eclipse?
Our old Eclipse development set-up and tutorial has deprecated since GN
moved to Maven.

I believe my Eclipse Javav EE IDE is setup correctly for Maven 2 and SVN
but I don't know how to configure things such as the Maven Archetype
(over 40 choices plus custom archetype). I have looked at
http://trac.osgeo.org/geonetwork/wiki/Maven which was not clear enough
for me.

Ciao, Wolfgang

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
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

Hi!

Can i get some help here:
http://osgeo-org.1803224.n2.nabble.com/Run-Geonetwork-inside-eclipse-td5376709.html#a5376709

If someone could give me some hints, i will be glad.
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/How-to-compile-GeoNetwork-trunk-Maven-in-Eclipse-tp5322334p5380590.html
Sent from the GeoNetwork developer mailing list archive at Nabble.com.

  Hi vmag,

I am working on an updated Tutorial for Eclipse, Maven and Windows 7 but ran into weird problems that might be due to my 64-bit environment or other Java arcana. You can see the incomplete tutorial at: http://lab.usgin.org/node/378
Be warned that I was able to compile but not to fully test the compiled code! Also, I still can't compile with the "Maven all the way method" or debug GeoNetwork within Eclipse via Tomcat.
Currently, I am trying it out with a 32-bit setup. The revised tutorial will eventually move into the GeoNetwork Developer Document.
Please, email me any insights you acquire!

Ciao, Wolfgang

_______________________________
Wolfgang Grunberg
Arizona Geological Survey
wgrunberg@anonymised.com
520-770-3500

On 8/6/2010 6:40 AM, vmag wrote:

Hi!

Can i get some help here:
http://osgeo-org.1803224.n2.nabble.com/Run-Geonetwork-inside-eclipse-td5376709.html#a5376709

If someone could give me some hints, i will be glad.

Hi Wolfgang, thanks for your answer.

I'm using Win7 32-bit, and i followed your tutorial.

But when i try "Run As | Maven package", i get the error

[ERROR] Error executing Maven.
[ERROR] The specified user settings file does not exist:
C:\Users\vmag\.m2\settings.xml

and does nothing.

But if i try running maven as external tool, it does more stuff, but it ends
with an error

[INFO] Compiling 386 source files to
E:\geonetwork_workspace\geonetwork\web\target\classes
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Compilation failure
Failure executing javac, but could not parse the error:

The system is out of resources.
Consult the following stack trace for details.
java.lang.OutOfMemoryError: Java heap space
  at com.sun.tools.javac.util.Name.fromChars(Name.java:115)
  at com.sun.tools.javac.util.Name.fromString(Name.java:144)
  at com.sun.tools.javac.util.Name$Table.fromString(Name.java:513)
  at
com.sun.tools.javac.jvm.ClassReader.includeClassFile(ClassReader.java:1694)
  at com.sun.tools.javac.jvm.ClassReader.list(ClassReader.java:1758)
  at com.sun.tools.javac.jvm.ClassReader.listAll(ClassReader.java:1882)
  at com.sun.tools.javac.jvm.ClassReader.fillIn(ClassReader.java:1903)
  at com.sun.tools.javac.jvm.ClassReader.complete(ClassReader.java:1538)
  at com.sun.tools.javac.code.Symbol.complete(Symbol.java:355)
  at
com.sun.tools.javac.jvm.ClassReader.completeOwners(ClassReader.java:1547)
  at com.sun.tools.javac.jvm.ClassReader.complete(ClassReader.java:1534)
  at com.sun.tools.javac.code.Symbol.complete(Symbol.java:355)
  at com.sun.tools.javac.code.Symbol$ClassSymbol.complete(Symbol.java:612)
  at com.sun.tools.javac.code.Symbol$ClassSymbol.members(Symbol.java:555)
  at
com.sun.tools.javac.jvm.ClassReader$AnnotationDeproxy.findAccessMethod(ClassReader.java:1065)
  at
com.sun.tools.javac.jvm.ClassReader$AnnotationDeproxy.deproxyCompound(ClassReader.java:1057)
  at
com.sun.tools.javac.jvm.ClassReader$AnnotationDeproxy.deproxyCompoundList(ClassReader.java:1046)
  at
com.sun.tools.javac.jvm.ClassReader$AnnotationCompleter.enterAnnotation(ClassReader.java:1195)
  at com.sun.tools.javac.comp.Annotate.flush(Annotate.java:94)
  at com.sun.tools.javac.comp.Annotate.enterDone(Annotate.java:86)
  at com.sun.tools.javac.comp.Enter.complete(Enter.java:473)
  at com.sun.tools.javac.comp.Enter.main(Enter.java:429)
  at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:404)
  at com.sun.tools.javac.main.Main.compile(Main.java:592)
  at com.sun.tools.javac.main.Main.compile(Main.java:544)
  at com.sun.tools.javac.Main.compile(Main.java:92)
  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:592)
  at
org.codehaus.plexus.compiler.javac.JavacCompiler.compileInProcess(JavacCompiler.java:420)
  at
org.codehaus.plexus.compiler.javac.JavacCompiler.compile(JavacCompiler.java:141)

[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 1 minute 29 seconds
[INFO] Finished at: Fri Aug 06 19:27:43 BST 2010
[INFO] Final Memory: 43M/63M
[INFO]
------------------------------------------------------------------------

Any clue?

Kind regards,
Vitor Gonçalves
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/How-to-compile-GeoNetwork-trunk-Maven-in-Eclipse-tp5322334p5381672.html
Sent from the GeoNetwork developer mailing list archive at Nabble.com.

Le 06.08.2010 20:28, vmag a écrit :

Hi Wolfgang, thanks for your answer.

Hi,

I'm using Win7 32-bit, and i followed your tutorial.

[..]

The system is out of resources.
Consult the following stack trace for details.
java.lang.OutOfMemoryError: Java heap space

you most probably have to increase the amount of memory given to javac. (-D xxx )

I got geonetwork, tomcat and eclipse together without much hassle with the attached instructions, which are based on prior work of Wolfgang and Mathieu.

hope it helps

Timo

(attachments)

geonetwork_eclipse.doc (25.5 KB)

Timo Proescholdt wrote:

The system is out of resources.
Consult the following stack trace for details.
java.lang.OutOfMemoryError: Java heap space

you most probably have to increase the amount of memory given to javac.
(-D xxx )

Hi!

I tried to increase the amount of memory, by going to Control Panel > Java >
Java > view and added the runtime parameters -Xms512m -Xmx1024m.
But i got the same error. Is there any other way to increase the amount of
memory?

Kind regards,
Vitor Gonçalves
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/How-to-compile-GeoNetwork-trunk-Maven-in-Eclipse-tp5322334p5428686.html
Sent from the GeoNetwork developer mailing list archive at Nabble.com.

Le 16.08.2010 19:17, vmag a écrit :

Timo Proescholdt wrote:

The system is out of resources.
Consult the following stack trace for details.
java.lang.OutOfMemoryError: Java heap space

you most probably have to increase the amount of memory given to javac.
(-D xxx )

Hi!

I tried to increase the amount of memory, by going to Control Panel> Java>
Java> view and added the runtime parameters -Xms512m -Xmx1024m.
But i got the same error. Is there any other way to increase the amount of
memory?

AFAIK it is not the runtime but the java compiler options that need more memory.

Search the internet for "javac memory increase" and you will will find more than enough answers.

good luck!
Timo

Kind regards,
Vitor Gonçalves

Hi!

Thank you all for your help.
It's working now. I followed this guide
(http://lab.usgin.org/groups/geonetwork-configuration-and-development/windows-7-64-bit-guide-geonetwork-development-within)
and i was using JDK 5.0 Update 22.
Installed JDK 6 Update 21 and everything is fine now.

Kind regards,
Vitor Gonçalves
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/How-to-compile-GeoNetwork-trunk-Maven-in-Eclipse-tp5322334p5432112.html
Sent from the GeoNetwork developer mailing list archive at Nabble.com.

Hi!

Got another problem...

When i click start on the server, it starts, but when i went to geonetwork
page i got the following error:

type Exception report

message

description The server encountered an internal error () that prevented it
from fulfilling this request.

exception

javax.servlet.ServletException: Exception raised
  jeeves.server.JeevesEngine.init(JeevesEngine.java:178)
  jeeves.server.sources.http.JeevesServlet.init(JeevesServlet.java:74)
  javax.servlet.GenericServlet.init(GenericServlet.java:212)

org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
  org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
  org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)

org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
  org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
  java.lang.Thread.run(Unknown Source)
root cause

java.lang.ClassNotFoundException: org.fao.geonet.guiservices.util.Env

org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1516)

org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1361)
  java.lang.Class.forName0(Native Method)
  java.lang.Class.forName(Unknown Source)
  jeeves.server.dispatchers.guiservices.Call.<init>(Call.java:59)

jeeves.server.dispatchers.ServiceManager.getGuiService(ServiceManager.java:244)

jeeves.server.dispatchers.ServiceManager.addDefaultGui(ServiceManager.java:128)
  jeeves.server.JeevesEngine.initDefault(JeevesEngine.java:331)
  jeeves.server.JeevesEngine.loadConfigFile(JeevesEngine.java:206)
  jeeves.server.JeevesEngine.init(JeevesEngine.java:139)
  jeeves.server.sources.http.JeevesServlet.init(JeevesServlet.java:74)
  javax.servlet.GenericServlet.init(GenericServlet.java:212)

org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
  org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
  org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)

org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
  org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
  java.lang.Thread.run(Unknown Source)
note The full stack trace of the root cause is available in the Apache
Tomcat/6.0.26 logs.

Any clue?
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/How-to-compile-GeoNetwork-trunk-Maven-in-Eclipse-tp5322334p5436387.html
Sent from the GeoNetwork developer mailing list archive at Nabble.com.

Dear all,

I'm reviving this thread, since it is still not 100% clear to me how to develop geonetwork in eclipse.

There are so many developers here, I was wondering if somebody could share some knowledge on how to develop effectively.

It seems that it takes me a significant amount of time to get setup each time I touch geonetwork, which is frustrating. I'm afraid that this also happens to other developers, so the overall project misses out on contributions.
We develop an open source software, so getting started should be easy and there should be documentation on how to get setup.

I remember we have developed a step by step instruction some time ago, which can be used to get geonetwork running inside eclipse. I'm wondering if the latest version is available somewhere. I cannot find it on track.
The version I have has a number of issues. (too big to be attached)

-It seems I have to go through the process again each time I synchronize with svn, sine geonetwork does not come up correctly any more (tomcat starts but geonetwork hangs forever in the browser showing only the
"GeoNetwork opensource catalogue
Loading ..." .

-the tutorial is very lengthy and many attributes have to be set manually. I'm sure this can be done better.

Maybe eclipse is not the way to go.. but how to go about it then?

best regards and looking forward to your comments
Timo

On 7/22/2010 8:26 AM, Francois Prunayre wrote:

Hello,

2010/7/21 Timo Proescholdt<timo@anonymised.com>:

Hi Wolfgang,

I`m having the same problem, an earlier email of mine to the list has
not yet yielded many answers, but here is what I found out.

You can check out the GN trunk as maven svn (import). You might have to
add the maven_repo in the sourcetree as additional maven repo
(settings.xml?) in order to compile everything.

One project is then recognized by Eclipse as webproject, you would be
able to launch it e.G in Tomcat or Jetty.

What is not clear to me is: Does one have to run gast? (I did not have
to, but was wondering why it worked).

No, we added the initialization of the database if does not exist on
startup (it will create the structure not the db).
Check the resource section of the config.xml for more details.
From the admin page, you could load templates or sample data.

Cheers.

Francois

How can I start jetty from eclipse (for debugging)? What has to be done
to avoid the jetty startup cluttering up the sourcetree with custom
repositories.

Any hints would be very welcome.

I'd be ready to make a new tutorial, but I feel that I'm not 100% up to
speed yet.

best
Timo

Le 21.07.2010 20:42, Wolfgang Grunberg a écrit :

   Is there a tutorial on how to compile a GeoNetwork (GN) trunk build in
Eclipse?
Our old Eclipse development set-up and tutorial has deprecated since GN
moved to Maven.

I believe my Eclipse Javav EE IDE is setup correctly for Maven 2 and SVN
but I don't know how to configure things such as the Maven Archetype
(over 40 choices plus custom archetype). I have looked at
http://trac.osgeo.org/geonetwork/wiki/Maven which was not clear enough
for me.

Ciao, Wolfgang

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
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

Hi Timo,

On Wed, Nov 3, 2010 at 11:21 AM, Timo Pröscholdt <timo@anonymised.com> wrote:

Dear all,

I’m reviving this thread, since it is still not 100% clear to me how to
develop geonetwork in eclipse.

There are so many developers here, I was wondering if somebody could
share some knowledge on how to develop effectively.

It seems that it takes me a significant amount of time to get setup each
time I touch geonetwork, which is frustrating. I’m afraid that this also
happens to other developers, so the overall project misses out on
contributions.
We develop an open source software, so getting started should be easy
and there should be documentation on how to get setup.

You will find some hints there :
http://geonetwork-opensource.org/latest/developers/development/index.html#eclipse-setup

Once the project is setup in eclipse, with the correct class-path handled by Maven (“mvn eclipse:eclipse” or the m2 plugin for eclipse) you will be able to easily deploy the war into an external tomcat.

If you would like to perform debug into eclipse you have several ways to do it.
The first one is to use an embedded Tomcat into Eclipse or the second one is to use remote debug (jpda).
You will find more information about the second one into the geonetwork documentation, at the end of the eclipse setup part.

Any contribution to this documentation would be greatly appreciated. :wink:

I remember we have developed a step by step instruction some time ago,
which can be used to get geonetwork running inside eclipse. I’m
wondering if the latest version is available somewhere. I cannot find it
on track.
The version I have has a number of issues. (too big to be attached)

-It seems I have to go through the process again each time I synchronize
with svn, sine geonetwork does not come up correctly any more (tomcat
starts but geonetwork hangs forever in the browser showing only the
“GeoNetwork opensource catalogue
Loading …” .

-the tutorial is very lengthy and many attributes have to be set
manually. I’m sure this can be done better.

Maybe eclipse is not the way to go… but how to go about it then?

Personally I’m working with GeoNetwork in eclipse, using several ways to debug it into eclipse and I never faced any troubles setting up the development environment (I mean not any troubles but not more than before we move to maven). The process to set up Geonetwork in a development environment is the same as any other java web application based on maven.

Cheers,

Mathieu