On Fri, Nov 14, 2014 at 12:41 PM, Marc Jansen <jansen@anonymised.com> wrote:
Hi everybody,
while I was trying to generate a maven archetype for implementing a
WPS-Process, the documentation at
http://docs.geoserver.org/stable/en/developer/programming-guide/wps-services/implementing.html
and especially the example seemed to me to be outdated. If I remember
correctly, following the step-by-step example exactly word-by-word lead
to a maven project that would not compile.
I have this working now, but wanted to double check whether it was me
that did something wrong or whether the documentation needs to be updated.
Definitely the docs, they were never touched after the first draft.
In general the dev doc are not receiving much (if any) updates at all,
I believe we're too short staffed to maintain them.
I'd volunteer to correct the docs, if this OK for you.
For a reference, here is an example WPS-Process maven project:
https://github.com/marcjansen/geoserver-wps-archetype/tree/master/example-hello-wps
and then there is the beforementioned maven archetype (generated from
the sample)
https://github.com/marcjansen/geoserver-wps-archetype/tree/master/archetype
I'd update them to add a test to the wps test jar (which I made GeoServer
generate,
off the trunk code, just recently) in case people want to run integration
tests
like
https://github.com/geoserver/geoserver/blob/master/src/extension/wps/wps-core/src/test/java/org/geoserver/wps/ExecuteTest.java
using the same base class.
Another thing that could be handy, for people that cannot modify
the GeoServer own web-app pom, would be to add a test/provided
dependency on the web-app module, dependencies on jetty,
and copy the Start.java class from web-app, in order to run GeoServer
with that extra process without having to manually deploy the jar
to a instance already unpacked in Tomcat.
Just an idea
Cheers
Andrea
--
GeoServer Professional Services from the experts! Visit
http://goo.gl/NWWaa2 for more information.
Ing. Andrea Aime
@geowolf
Technical Lead
GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549
http://www.geo-solutions.it
http://twitter.com/geosolutions_it
*AVVERTENZE AI SENSI DEL D.Lgs. 196/2003*
Le informazioni contenute in questo messaggio di posta elettronica e/o
nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il
loro utilizzo è consentito esclusivamente al destinatario del messaggio,
per le finalità indicate nel messaggio stesso. Qualora riceviate questo
messaggio senza esserne il destinatario, Vi preghiamo cortesemente di
darcene notizia via e-mail e di procedere alla distruzione del messaggio
stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso,
divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od
utilizzarlo per finalità diverse, costituisce comportamento contrario ai
principi dettati dal D.Lgs. 196/2003.
The information in this message and/or attachments, is intended solely for
the attention and use of the named addressee(s) and may be confidential or
proprietary in nature or covered by the provisions of privacy act
(Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection
Code).Any use not in accord with its purpose, any disclosure, reproduction,
copying, distribution, or either dissemination, either whole or partial, is
strictly forbidden except previous formal approval of the named
addressee(s). If you are not the intended recipient, please contact
immediately the sender by telephone, fax or e-mail and delete the
information in this message that has been received in error. The sender
does not give any warranty or accept liability as the content, accuracy or
completeness of sent messages and accepts no responsibility for changes
made after they were sent or for other risks which arise as a result of
e-mail transmission, viruses, etc.
-------------------------------------------------------