[Geoserver-devel] Adding more version info

Hi all,

Following up on Andreas comments last week about adding more version info to our builds. I would like to follow up on this. Three important bits to have would be:

  • the primary version (from the pom)
  • the svn revision (from the svn-revision maven plugin)
  • the build timestamp (generated via some ant scripting)

The idea would be to (a) make the info available in a file contained in all artifacts and (b) add the info to the ui.

For (b) I was thinking the “About” page would make sense. And would look something like:

https://skitch.com/jdeolive/ryqak/geoserver-about-geoserver

Any objections? Any other info we should also include?

-Justin


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

On Mon, Nov 15, 2010 at 8:43 PM, Justin Deoliveira <jdeolive@anonymised.com> wrote:

Hi all,
Following up on Andreas comments last week about adding more version info to
our builds. I would like to follow up on this. Three important bits to have
would be:
* the primary version (from the pom)
* the svn revision (from the svn-revision maven plugin)
* the build timestamp (generated via some ant scripting)
The idea would be to (a) make the info available in a file contained in all
artifacts and (b) add the info to the ui.
For (b) I was thinking the "About" page would make sense. And would look
something like:
https://skitch.com/jdeolive/ryqak/geoserver-about-geoserver

Yup, works for me.

We should do the same for Geotools. Arguably, start there.
Possibly we could put those information in META-INF, I believe maven
is already generating some file there

Cheers
Andrea

-----------------------------------------------------
Ing. Andrea Aime
Senior Software Engineer

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy

phone: +39 0584962313
fax: +39 0584962313

http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf

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

On Mon, Nov 15, 2010 at 1:33 PM, Andrea Aime <andrea.aime@anonymised.com> wrote:

On Mon, Nov 15, 2010 at 8:43 PM, Justin Deoliveira <jdeolive@anonymised.com> wrote:

Hi all,
Following up on Andreas comments last week about adding more version info to
our builds. I would like to follow up on this. Three important bits to have
would be:

  • the primary version (from the pom)
  • the svn revision (from the svn-revision maven plugin)
  • the build timestamp (generated via some ant scripting)
    The idea would be to (a) make the info available in a file contained in all
    artifacts and (b) add the info to the ui.
    For (b) I was thinking the “About” page would make sense. And would look
    something like:
    https://skitch.com/jdeolive/ryqak/geoserver-about-geoserver

Yup, works for me.

We should do the same for Geotools. Arguably, start there.
Possibly we could put those information in META-INF, I believe maven
is already generating some file there

Agreed. And ideally the geoserver revision output would include the geotools one. I tried a couple of things with minimal success though. I was able to add the svn revision info to the manifest but nothing else. Maybe breaking out a custom maven plugin…? Will try some more tomorrow but if anyone has any ideas i am all ears.

Cheers
Andrea


Ing. Andrea Aime
Senior Software Engineer

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy

phone: +39 0584962313
fax: +39 0584962313

http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf



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

On Tue, Nov 16, 2010 at 5:21 AM, Justin Deoliveira <jdeolive@anonymised.com> wrote:

On Mon, Nov 15, 2010 at 1:33 PM, Andrea Aime <andrea.aime@anonymised.com>
wrote:

On Mon, Nov 15, 2010 at 8:43 PM, Justin Deoliveira <jdeolive@anonymised.com>
wrote:
> Hi all,
> Following up on Andreas comments last week about adding more version
> info to
> our builds. I would like to follow up on this. Three important bits to
> have
> would be:
> * the primary version (from the pom)
> * the svn revision (from the svn-revision maven plugin)
> * the build timestamp (generated via some ant scripting)
> The idea would be to (a) make the info available in a file contained in
> all
> artifacts and (b) add the info to the ui.
> For (b) I was thinking the "About" page would make sense. And would look
> something like:
> https://skitch.com/jdeolive/ryqak/geoserver-about-geoserver

Yup, works for me.

We should do the same for Geotools. Arguably, start there.
Possibly we could put those information in META-INF, I believe maven
is already generating some file there

Agreed. And ideally the geoserver revision output would include the geotools
one. I tried a couple of things with minimal success though. I was able to
add the svn revision info to the manifest but nothing else. Maybe breaking
out a custom maven plugin..? Will try some more tomorrow but if anyone has
any ideas i am all ears.

Can't offer ideas, but maybe next time share your patches, someone
might have a look and provide some hints or find a boring hour and give
it a crack

Cheers
Andrea

-----------------------------------------------------
Ing. Andrea Aime
Senior Software Engineer

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy

phone: +39 0584962313
fax: +39 0584962313

http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf

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