[GeoNetwork-devel] Maven Build fails for GN 2.8.0-RC0

I downloaded the latest GN 2.8.0-RC0 using git onto my Windows 7 64 machine
and found that it failed to build in maven. The problem seemed to lie in two
submodules - JEEVES and GAST. For JEEVES, I found I needed to first build
the JEEVES module before I did a general build. (This error also occurred on
a clean GIT pull on Ubuntu and the same solution fixed the problem.)

For GAST I found that the wrong version of GeoNetwork was being identified
in the pom.xml file. It should reference "<version>2.8.0-RC0</version>"
instead of "<version>2.9.0-SNAPSHOT</version>". This fixed my repository and
the maven build completed successfully without error. (GeoServer also
identified the wrong version of GeoNetwork, but since it has no dependencies
in GeoNetwork,the build succeeded.)

Cheers,
Byron

--
View this message in context: http://osgeo-org.1560.n6.nabble.com/Maven-Build-fails-for-GN-2-8-0-RC0-tp4995264.html
Sent from the GeoNetwork developer mailing list archive at Nabble.com.

Byron,

I just checked the 2.8 branch for GAST and it has 2.8 in the POM file. See
for yourself
https://github.com/geonetwork/core-gast/blob/2.8.x/pom.xml

It looks like when you switched branches for core-geonetwork, you did not
switch the submodules as well?

To switch branches you need to do the following.
   git checkout 2.8.x
   git submodule foreach git checkout 2.8.x

See the following for more details.

http://trac.osgeo.org/geonetwork/wiki/HowToCompile

--
View this message in context: http://osgeo-org.1560.n6.nabble.com/Maven-Build-fails-for-GN-2-8-0-RC0-tp4995264p4995607.html
Sent from the GeoNetwork developer mailing list archive at Nabble.com.

Thanks Ian.

Still getting used to git. Old dogs and all that.

Cheers,
Byron

--
View this message in context: http://osgeo-org.1560.n6.nabble.com/Maven-Build-fails-for-GN-2-8-0-RC0-tp4995264p4995784.html
Sent from the GeoNetwork developer mailing list archive at Nabble.com.

I hadn't seen that you needed to branch each submodule as well as the
main project. I believe this has overcome the problems I had with
building as well.

As a side note that is related ... is the documentation on the main
geonetwork site going to be updated? I see that the references on how
to checkout code and build etc are still based on svn ...

Elgar Storm

On 17 August 2012 09:18, ByronCinNZ <cochranes4@anonymised.com> wrote:

Thanks Ian.

Still getting used to git. Old dogs and all that.

Cheers,
Byron

--
View this message in context: http://osgeo-org.1560.n6.nabble.com/Maven-Build-fails-for-GN-2-8-0-RC0-tp4995264p4995784.html
Sent from the GeoNetwork developer mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
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