[Geoserver-devel] Compiling REST example from source.

Hi all,

I am trying to build GeoServer and the REST plugin from the trunk so that I can run the implementing a RESTful service example. I was having problems initially trying to get GeoServer to compile to a WAR file but I found indirectly that if I call:

mvn clean install -P web2
mvn assembly:attached

I then get a zip file that contains a WAR file. If I just call mvn clean install -P release like in the documenation then my WAR zip file only contains the license text files. I don’t know if this is a bug or if I am just doing something wrong since I am not able to even build 1.7.5.

If I just copy and paste along with the directions at http://docs.geoserver.org/1.7.x/developer/programming-guide/rest-services/implementing.html, updating the versions to 2.0-SNAPSHOT, after installing GeoServer, I get an error that says “Failed to resolve artifact. Missing org.geoserver:rest:jar:2.0-SNAPSHOT”

I have also tried compiling GeoServer with “mvn clean install -P web2,rest,geosearch,wps” and that didn’t work either.

Any help would be greatly appreciated.

Thanks,

Chris

Hi Chris,

Chris McMillan wrote:

Hi all,
I am trying to build GeoServer and the REST plugin from the trunk so that I can run the implementing a RESTful service example. I was having problems initially trying to get GeoServer to compile to a WAR file but I found indirectly that if I call:
mvn clean install -P web2
mvn assembly:attached
I then get a zip file that contains a WAR file. If I just call mvn clean install -P release like in the documenation then my WAR zip file only contains the license text files. I don't know if this is a bug or if I am just doing something wrong since I am not able to even build 1.7.5.

Yeah, the documentation is written for 1.7.x. On trunk we have a new web module which is still not a core module (soon to be), so you need to enable it explicitly with a profile.

If I just copy and paste along with the directions at http://docs.geoserver.org/1.7.x/developer/programming-guide/rest-services/implementing.html, updating the versions to 2.0-SNAPSHOT, after installing GeoServer, I get an error that says "Failed to resolve artifact. Missing org.geoserver:rest:jar:2.0-SNAPSHOT"

Yeah, until a few hours ago the rest module was not available on trunk. I just forward ported it, so if you do an svn update, you will see it.

I have also tried compiling GeoServer with "mvn clean install -P web2,rest,geosearch,wps" and that didn't work either.

Hopefully an svn update will fix the problems.

Any help would be greatly appreciated.
Thanks,
Chris

------------------------------------------------------------------------

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing server and web deployment.
http://p.sf.net/sfu/businessobjects

------------------------------------------------------------------------

_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

--
Justin Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.

Thanks Justin that fixed part of my problem. The other part seems to be a problem with Netbeans and the POM. It “works” in eclipse. Once I get it all figured out I will write up how I got it all to work so that hopefully it can help others.

-Chris