[Geoserver-devel] Hints on debugging Java source

Even though I’ve never done much Java development, I thought I’d give it a try to figure out why WCS isn’t working for me, so I have the latest svn for the 1.7x branch, set up Eclipse and Maven.

However when I run mvn install in the src directory, I get this:

D:\OGI\GeoServer17x\src>mvn install
[INFO] Scanning for projects…
[WARNING] Overriding profile: ‘geosearch’ (source: pom) with new instance from s
ource: pom
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] The projects in the reactor contain a cyclic reference: Edge between ‘Ver
tex{label=‘org.geoserver.maven:build-configs’}’ and ‘Vertex{label=‘org.geoserver
.maven:build-configs’}’ introduces to cycle in the graph org.geoserver.maven:bui
ld-configs → org.geoserver.maven:build-configs
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1 second
[INFO] Finished at: Sat Apr 04 17:48:55 CEST 2009
[INFO] Final Memory: 4M/8M
[INFO] ------------------------------------------------------------------------

I’m sure I’m doing something stupid, but what is it?

Thanks for your help,
Roger

Roger,

are you using Maven 2.1.0? Other GeoServer developers report that 2.1.0 does not like the dependency cycles present in GeoServer (similar to your report below). Please try Maven 2.0.10; this version is known to work for trunk, and I expect it to work for 1.7.x. I also recommend building with Java 5 (not 6), but this is not the cause of the error you have encountered.

Kind regards,
Ben.

Roger Bedell wrote:

Even though I've never done much Java development, I thought I'd give it a try to figure out why WCS isn't working for me, so I have the latest svn for the 1.7x branch, set up Eclipse and Maven.

However when I run mvn install in the src directory, I get this:

D:\OGI\GeoServer17x\src>mvn install
[INFO] Scanning for projects...
[WARNING] Overriding profile: 'geosearch' (source: pom) with new instance from s
ource: pom
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] The projects in the reactor contain a cyclic reference: Edge between 'Ver
tex{label='org.geoserver.maven:build-configs'}' and 'Vertex{label='org.geoserver
.maven:build-configs'}' introduces to cycle in the graph org.geoserver.maven:bui
ld-configs --> org.geoserver.maven:build-configs
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1 second
[INFO] Finished at: Sat Apr 04 17:48:55 CEST 2009
[INFO] Final Memory: 4M/8M
[INFO] ------------------------------------------------------------------------

I'm sure I'm doing something stupid, but what is it?

Thanks for your help,
Roger

--
Ben Caradoc-Davies <Ben.Caradoc-Davies@anonymised.com>
Software Engineer, CSIRO Exploration and Mining
Australian Resources Research Centre
26 Dick Perry Ave, Kensington WA 6151, Australia