From: Wolfgang G. <wgr...@az...> - 2010-07-21 18:42:21
|
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 wgr...@az... 520-770-3500 |
From: Timo P. <ti...@pr...> - 2010-07-21 19:12:17
|
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 > |
From: Wolfgang G. <wgr...@az...> - 2010-07-21 20:10:37
|
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 wgr...@az... 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 > Geo...@li... > https://lists.sourceforge.net/lists/listinfo/geonetwork-devel > GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork > |
From: Francois P. <fx....@gm...> - 2010-07-22 06:23:22
|
Hi Timo and Wolfgang, 2010/7/21 Wolfgang Grunberg <wgr...@az...>: > 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 > wgr...@az... > 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 >> Geo...@li... >> 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 > Geo...@li... > https://lists.sourceforge.net/lists/listinfo/geonetwork-devel > GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork > |
From: Francois P. <fx....@gm...> - 2010-07-22 06:26:28
|
Hello, 2010/7/21 Timo Proescholdt <ti...@pr...>: > 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 > Geo...@li... > https://lists.sourceforge.net/lists/listinfo/geonetwork-devel > GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork > |
From: Wolfgang G. <wgr...@az...> - 2010-08-06 16:39:15
|
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 wgr...@az... 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. |
From: Timo P. <ti...@pr...> - 2010-08-06 19:23:25
Attachments:
geonetwork_eclipse.doc
|
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 |
From: Timo P. <ti...@pr...> - 2010-08-16 17:56:24
|
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 |
From: Timo P. <ti...@pr...> - 2010-11-03 10:20:35
|
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<ti...@pr...>: >> 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 >> Geo...@li... >> https://lists.sourceforge.net/lists/listinfo/geonetwork-devel >> GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork >> |
From: Mathieu C. <mat...@gm...> - 2010-11-03 10:53:43
|
Hi Timo, On Wed, Nov 3, 2010 at 11:21 AM, Timo Pröscholdt <ti...@pr...>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. ;) <http://geonetwork-opensource.org/latest/developers/development/index.html#eclipse-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? > 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 |