[Geoserver-devel] archetype for web plugins

Hi all,

I recently created an archetype for building a web based plugin module for GeoServer. It out of the box gives you something that shows up in the main menu, similar to how the wfs output format archetype works.

Any interest in this? If so I can add it to svn and hopefully eventually write a small tutorial on it.

-Justin

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

Justin Deoliveira ha scritto:

Hi all,

I recently created an archetype for building a web based plugin module for GeoServer. It out of the box gives you something that shows up in the main menu, similar to how the wfs output format archetype works.

Any interest in this? If so I can add it to svn and hopefully eventually write a small tutorial on it.

Sounds like a nice contribution and also something that will help
out people in adding GUI contributions

+1

Cheers
Andrea

--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.

Ciao Justin,
this certainly looks interesting. Can you please provide us a bit more
details on how you think this plugin could be used?

Simone.
-------------------------------------------------------
Ing. Simone Giannecchini
GeoSolutions S.A.S.
Founder - Software Engineer
Via Carignoni 51
55041 Camaiore (LU)
Italy

phone: +39 0584983027
fax: +39 0584983027
mob: +39 333 8128928

http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://simboss.blogspot.com/
http://www.linkedin.com/in/simonegiannecchini

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

On Tue, Oct 6, 2009 at 2:27 PM, Justin Deoliveira <jdeolive@anonymised.com> wrote:

Hi all,

I recently created an archetype for building a web based plugin module
for GeoServer. It out of the box gives you something that shows up in
the main menu, similar to how the wfs output format archetype works.

Any interest in this? If so I can add it to svn and hopefully eventually
write a small tutorial on it.

-Justin

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

------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

It is used like other maven archetypes, it creates all the boiler plate stuff. So basically someone looking to create a new plugin module would first run the archetype:

mvn archetype:create -DarchetypeGroupId=org.geoserver.maven -DarchetypeArtifactId=geoserver-webplugin-archetype -DarchetypeVersion=2.0-SNAPSHOT -DgroupId=com.company -DartifactId=myProject -Dversion=1.0

That creates a geoserver module with the following content:

1) A pom.xml with all the required dependencies for running and testing the module with the gs ui testing framework

2) An simple web page with shows a single i18nized label

3) An application context that contains the bean definitions in order to plug the module into the main GeoServer menu

After running the archetype the developer only has to ensure that the module is on the classpath and they have their first plugin. From which they will modify and customize to fit their own specific purposes.

-Justin

Simone Giannecchini wrote:

Ciao Justin,
this certainly looks interesting. Can you please provide us a bit more
details on how you think this plugin could be used?

Simone.
-------------------------------------------------------
Ing. Simone Giannecchini
GeoSolutions S.A.S.
Founder - Software Engineer
Via Carignoni 51
55041 Camaiore (LU)
Italy

phone: +39 0584983027
fax: +39 0584983027
mob: +39 333 8128928

http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://simboss.blogspot.com/
http://www.linkedin.com/in/simonegiannecchini

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

On Tue, Oct 6, 2009 at 2:27 PM, Justin Deoliveira <jdeolive@anonymised.com> wrote:

Hi all,

I recently created an archetype for building a web based plugin module
for GeoServer. It out of the box gives you something that shows up in
the main menu, similar to how the wfs output format archetype works.

Any interest in this? If so I can add it to svn and hopefully eventually
write a small tutorial on it.

-Justin

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

------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
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.

Justin Deoliveira ha scritto:

3) An application context that contains the bean definitions in order to plug the module into the main GeoServer menu

For this case it might be good to have, commented out, also the approach
of having the menu entry be part of a larger menu entry group, or
creating its own group (so that all options are showed).

Cheers
Andrea

--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.

Ok... this is something I don't have a ton of time to spend on now. Ideally it is something that we can incrementally improve on, adding options for different sorts of plugins, etc...

Since it won't affect anything in the build I am going to go ahead and add it as is unless there any strong objections.

Andrea Aime wrote:

Justin Deoliveira ha scritto:

3) An application context that contains the bean definitions in order to plug the module into the main GeoServer menu

For this case it might be good to have, commented out, also the approach
of having the menu entry be part of a larger menu entry group, or
creating its own group (so that all options are showed).

Cheers
Andrea

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

Justin Deoliveira ha scritto:

Ok... this is something I don't have a ton of time to spend on now. Ideally it is something that we can incrementally improve on, adding options for different sorts of plugins, etc...

Since it won't affect anything in the build I am going to go ahead and add it as is unless there any strong objections.

Nope, no objections, was just an idea :slight_smile:

Cheers
Andrea

Andrea Aime wrote:

Justin Deoliveira ha scritto:

3) An application context that contains the bean definitions in order to plug the module into the main GeoServer menu

For this case it might be good to have, commented out, also the approach
of having the menu entry be part of a larger menu entry group, or
creating its own group (so that all options are showed).

Cheers
Andrea

--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.