[GeoNetwork-users] Installation from trunk

Hi all!
Im trying to install the latest version from trunk to get the profile plugin
support.
I checked out from
"https://geonetwork.svn.sourceforge.net/svnroot/geonetwork/trunk"\.
Then cant find out how to install.. Should I be looking for a jar-file, or
do I need to compile and run something from cmd?

Also, do you know when to expect a stable release with profile plugin
support?
Thank you for your patience with a beginner :slight_smile:
/ hbg

--
View this message in context: http://osgeo-org.1560.n6.nabble.com/Installation-from-trunk-tp4361402p4361402.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

hi,

yes, if you check out the sources you have to build it.

In the GN root directory type "mvn install". This will produce a WAR file
you could deploy into e.g. Tomcat. If you want an executable installer that
uses an embedded Jetty servlet container, *after* doing mvn install, go to
the directory 'installer' and type ant.

Hope this helps,
kind regards
Heikki Doeleman

On Fri, Feb 3, 2012 at 11:54 AM, hbg <anders.jurisoo@anonymised.com> wrote:

Hi all!
Im trying to install the latest version from trunk to get the profile
plugin
support.
I checked out from
"https://geonetwork.svn.sourceforge.net/svnroot/geonetwork/trunk&quot;\.
Then cant find out how to install.. Should I be looking for a jar-file, or
do I need to compile and run something from cmd?

Also, do you know when to expect a stable release with profile plugin
support?
Thank you for your patience with a beginner :slight_smile:
/ hbg

--
View this message in context:
http://osgeo-org.1560.n6.nabble.com/Installation-from-trunk-tp4361402p4361402.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at
http://sourceforge.net/projects/geonetwork

Hi Heikki,
and thanks alot for helping me out.

I still fail the build though, error at "GeoNetwork WebModule"- see below.
I have installed Maven, switched from Java JRE to JDK and did setup
enviroment variables (path)..
Running it on Microsoft Windows Server 2003 Standard x64 Edition.
Any ideas what im doing wrong?

best regards
/hbg

INFO]
------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] GeoNetwork opensource ............................. SUCCESS [0.547s]
[INFO] Caching xslt module ............................... SUCCESS [1.781s]
[INFO] Jeeves modules .................................... SUCCESS [2.313s]
[INFO] Oaipmh modules .................................... SUCCESS [0.922s]
[INFO] ArcSDE module (dummy-api) ......................... SUCCESS [0.891s]
[INFO] GeoNetwork web client module ...................... SUCCESS [56.695s]
[INFO] GeoNetwork Web module ............................. FAILURE [13.471s]
[INFO] GeoServer module .................................. SKIPPED
[INFO] Gast module ....................................... SKIPPED
[INFO] GeoNetwork Integration Tests ...................... SKIPPED
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 1:17.105s
[INFO] Finished at: Fri Feb 03 16:20:30 CET 2012
[INFO] Final Memory: 33M/96M
[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.1:exec
(ant-schematrons) on project geonetwork-main: Result of cmd.exe /X /C "ant"
execution is: '1'. -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
goal org.codehaus.mojo:exec-maven-plugin:1.1:exec (ant-schematrons) on
project geonetwork-main: Result of cmd.exe /X /C "ant" execution is: '1'.
  at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
  at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
  at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
  at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
  at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
  at
org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
  at
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
  at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
  at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
  at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
  at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
  at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
  at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  at java.lang.reflect.Method.invoke(Method.java:601)
  at
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
  at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
  at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
  at
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.apache.maven.plugin.MojoExecutionException: Result of cmd.exe
/X /C "ant" execution is: '1'.
  at org.codehaus.mojo.exec.ExecMojo.execute(ExecMojo.java:260)
  at
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
  at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
  ... 19 more

--
View this message in context: http://osgeo-org.1560.n6.nabble.com/Installation-from-trunk-tp4361402p4362155.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

hmm no I've no immediate idea what goes wrong. If you are using Maven 3,
maybe try it with Maven 2 ? (I use Maven 2.2.1)

On Fri, Feb 3, 2012 at 4:31 PM, hbg <anders.jurisoo@anonymised.com> wrote:

Hi Heikki,
and thanks alot for helping me out.

I still fail the build though, error at "GeoNetwork WebModule"- see below.
I have installed Maven, switched from Java JRE to JDK and did setup
enviroment variables (path)..
Running it on Microsoft Windows Server 2003 Standard x64 Edition.
Any ideas what im doing wrong?

best regards
/hbg

INFO]
------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] GeoNetwork opensource ............................. SUCCESS [0.547s]
[INFO] Caching xslt module ............................... SUCCESS [1.781s]
[INFO] Jeeves modules .................................... SUCCESS [2.313s]
[INFO] Oaipmh modules .................................... SUCCESS [0.922s]
[INFO] ArcSDE module (dummy-api) ......................... SUCCESS [0.891s]
[INFO] GeoNetwork web client module ...................... SUCCESS
[56.695s]
[INFO] GeoNetwork Web module ............................. FAILURE
[13.471s]
[INFO] GeoServer module .................................. SKIPPED
[INFO] Gast module ....................................... SKIPPED
[INFO] GeoNetwork Integration Tests ...................... SKIPPED
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 1:17.105s
[INFO] Finished at: Fri Feb 03 16:20:30 CET 2012
[INFO] Final Memory: 33M/96M
[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.1:exec
(ant-schematrons) on project geonetwork-main: Result of cmd.exe /X /C "ant"
execution is: '1'. -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
goal org.codehaus.mojo:exec-maven-plugin:1.1:exec (ant-schematrons) on
project geonetwork-main: Result of cmd.exe /X /C "ant" execution is: '1'.
       at

org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
       at

org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
       at

org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
       at

org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
       at

org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
       at

org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
       at

org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
       at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
       at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
       at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
       at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
       at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at

sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
       at

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
       at java.lang.reflect.Method.invoke(Method.java:601)
       at

org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
       at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
       at

org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
       at
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.apache.maven.plugin.MojoExecutionException: Result of
cmd.exe
/X /C "ant" execution is: '1'.
       at org.codehaus.mojo.exec.ExecMojo.execute(ExecMojo.java:260)
       at

org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
       at

org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
       ... 19 more

--
View this message in context:
http://osgeo-org.1560.n6.nabble.com/Installation-from-trunk-tp4361402p4362155.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at
http://sourceforge.net/projects/geonetwork

or, maybe it's because you do not have Ant ? You need it too ..

On Fri, Feb 3, 2012 at 5:17 PM, heikki <tropicano@anonymised.com> wrote:

hmm no I've no immediate idea what goes wrong. If you are using Maven 3,
maybe try it with Maven 2 ? (I use Maven 2.2.1)

On Fri, Feb 3, 2012 at 4:31 PM, hbg <anders.jurisoo@anonymised.com> wrote:

Hi Heikki,
and thanks alot for helping me out.

I still fail the build though, error at "GeoNetwork WebModule"- see below.
I have installed Maven, switched from Java JRE to JDK and did setup
enviroment variables (path)..
Running it on Microsoft Windows Server 2003 Standard x64 Edition.
Any ideas what im doing wrong?

best regards
/hbg

INFO]
------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] GeoNetwork opensource ............................. SUCCESS
[0.547s]
[INFO] Caching xslt module ............................... SUCCESS
[1.781s]
[INFO] Jeeves modules .................................... SUCCESS
[2.313s]
[INFO] Oaipmh modules .................................... SUCCESS
[0.922s]
[INFO] ArcSDE module (dummy-api) ......................... SUCCESS
[0.891s]
[INFO] GeoNetwork web client module ...................... SUCCESS
[56.695s]
[INFO] GeoNetwork Web module ............................. FAILURE
[13.471s]
[INFO] GeoServer module .................................. SKIPPED
[INFO] Gast module ....................................... SKIPPED
[INFO] GeoNetwork Integration Tests ...................... SKIPPED
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 1:17.105s
[INFO] Finished at: Fri Feb 03 16:20:30 CET 2012
[INFO] Final Memory: 33M/96M
[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.codehaus.mojo:exec-maven-plugin:1.1:exec
(ant-schematrons) on project geonetwork-main: Result of cmd.exe /X /C
"ant"
execution is: '1'. -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
goal org.codehaus.mojo:exec-maven-plugin:1.1:exec (ant-schematrons) on
project geonetwork-main: Result of cmd.exe /X /C "ant" execution is: '1'.
       at

org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
       at

org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
       at

org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
       at

org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
       at

org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
       at

org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
       at

org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
       at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
       at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
       at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
       at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
       at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at

sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
       at

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
       at java.lang.reflect.Method.invoke(Method.java:601)
       at

org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
       at

org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
       at

org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
       at
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.apache.maven.plugin.MojoExecutionException: Result of
cmd.exe
/X /C "ant" execution is: '1'.
       at org.codehaus.mojo.exec.ExecMojo.execute(ExecMojo.java:260)
       at

org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
       at

org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
       ... 19 more

--
View this message in context:
http://osgeo-org.1560.n6.nabble.com/Installation-from-trunk-tp4361402p4362155.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at
http://sourceforge.net/projects/geonetwork

Yes, fixed Ant and it built fine! And Ill go with the embedded Jetty. Failed
building with "ant" in installer dir now though but hopefully its no big
deal? Ill be back on monday to try and fix it. If you want to look on it its
attached below..

Again, thanks!
/hbg

C:\TEMP\geonetwork\installer>ant
Buildfile: C:\TEMP\geonetwork\installer\build.xml

setProperties:
    [mkdir] Created dir: C:\TEMP\geonetwork\.props

BUILD FAILED
C:\TEMP\geonetwork\installer\build.xml:91: Execute failed: java.io.IOExce
ption: Cannot run program "svn": CreateProcess error=2, The system cannot
find t
he file specified

--
View this message in context: http://osgeo-org.1560.n6.nabble.com/Installation-from-trunk-tp4361402p4362435.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

Hi

You need also Subversion command line tools installed. The installer
creates a file server.prop with the SVN information of the revision used
for the installer.

Check in
http://geonetwork-opensource.org/manuals/trunk/eng/developer/development/index.html#tools
all
the tools required to setup the development environment.

Sphinx is not required unless you build the documentation, this is disabled
by default.

Regards,
Jose García

On Fri, Feb 3, 2012 at 6:08 PM, hbg <anders.jurisoo@anonymised.com> wrote:

Yes, fixed Ant and it built fine! And Ill go with the embedded Jetty.
Failed
building with "ant" in installer dir now though but hopefully its no big
deal? Ill be back on monday to try and fix it. If you want to look on it
its
attached below..

Again, thanks!
/hbg

C:\TEMP\geonetwork\installer>ant
Buildfile: C:\TEMP\geonetwork\installer\build.xml

setProperties:
   [mkdir] Created dir: C:\TEMP\geonetwork\.props

BUILD FAILED
C:\TEMP\geonetwork\installer\build.xml:91: Execute failed: java.io.IOExce
ption: Cannot run program "svn": CreateProcess error=2, The system cannot
find t
he file specified

--
View this message in context:
http://osgeo-org.1560.n6.nabble.com/Installation-from-trunk-tp4361402p4362435.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at
http://sourceforge.net/projects/geonetwork

Thanks all you guys, now im up and running!
It was the SVN client I used, Tortoise the default version didtn support the
svn command in cmd. Changed to SlikSVN instead..

Jose, thats a great page! I missed it, that was basically what i was looking
for all the time.
http://geonetwork-opensource.org/manuals/trunk/eng/developer/development/index.html#tools

--
View this message in context: http://osgeo-org.1560.n6.nabble.com/Installation-from-trunk-tp4361402p4368679.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.