Discussion:
[Geoserver-users] Clone the Geoserver 2.9.0 in Github
peter james
2017-05-02 07:58:35 UTC
Permalink
Hi,

If I try to run the below command in github,it will clone the latest
geoserver version.

*git clone git://github.com/geoserver/geoserver.git
<http://github.com/geoserver/geoserver.git>*

If I tried to clone the particular version 2.9.0(we need this version only)
by running below command,whether it clone the zip file or extracted? If it
clone the zip file of source code can we build this source code with
Maven/can we modify the source code in eclipse?If it cannot run on zip file
of source code then kindly give your instruction to run the same.

*https://github.com/geoserver/geoserver/releases/tag/2.9.0
<https://github.com/geoserver/geoserver/releases/tag/2.9.0>.*
Brad Hards
2017-05-02 10:23:10 UTC
Permalink
If you aren't familiar with git, and really do need 2.9.0, perhaps you might
like to just download it from
https://sourceforge.net/projects/geoserver/files/GeoServer/2.9.0/


Brad
Ben Caradoc-Davies
2017-05-02 10:36:05 UTC
Permalink
Peter,

this question belongs on the geoserver-devel list.

While is is possible to download the source zip file for 2.9.0, a git
clone is much preferred if you are going to make changes.

To make a new branch from the 2.9.0 tag:

# clone the repository
git clone git://github.com/geoserver/geoserver.git

# change into the newly cloned repository
cd geoserver

# download all tags (as they are not cloned by default(?))
git fetch --tags

# switch to the tag you want
git checkout 2.9.0

# create a new branch (for example) "your-devel" from the tag
git checkout -b your-devel

Now you can make changes on this new branch and use git to manage them.

Note that the 2.9.x branch is no longer supported and this project
requires that pull request are first targeted at master, where new
development occurs. You will still be able to share your new branch in
your own GitHub/BitBucket/... repositories. You can build from source
and import into Eclipse using the procedure in the developer manual.

Kind regards,
Ben.
Post by peter james
Hi,
If I try to run the below command in github,it will clone the latest
geoserver version.
*git clone git://github.com/geoserver/geoserver.git
<http://github.com/geoserver/geoserver.git>*
If I tried to clone the particular version 2.9.0(we need this version only)
by running below command,whether it clone the zip file or extracted? If it
clone the zip file of source code can we build this source code with
Maven/can we modify the source code in eclipse?If it cannot run on zip file
of source code then kindly give your instruction to run the same.
*https://github.com/geoserver/geoserver/releases/tag/2.9.0
<https://github.com/geoserver/geoserver/releases/tag/2.9.0>.*
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Geoserver-users mailing list
https://lists.sourceforge.net/lists/listinfo/geoserver-users
--
Ben Caradoc-Davies <***@transient.nz>
Director
Transient Software Limited <http://transient.nz/>
New Zealand
peter james
2017-05-05 08:31:34 UTC
Permalink
If I download the source code manually and copy the extracted folder
manually into the github repository/folder on local system,can i build the
source code with maven? or Will I get any error.
Post by Ben Caradoc-Davies
Peter,
this question belongs on the geoserver-devel list.
While is is possible to download the source zip file for 2.9.0, a git
clone is much preferred if you are going to make changes.
# clone the repository
git clone git://github.com/geoserver/geoserver.git
# change into the newly cloned repository
cd geoserver
# download all tags (as they are not cloned by default(?))
git fetch --tags
# switch to the tag you want
git checkout 2.9.0
# create a new branch (for example) "your-devel" from the tag
git checkout -b your-devel
Now you can make changes on this new branch and use git to manage them.
Note that the 2.9.x branch is no longer supported and this project
requires that pull request are first targeted at master, where new
development occurs. You will still be able to share your new branch in your
own GitHub/BitBucket/... repositories. You can build from source and import
into Eclipse using the procedure in the developer manual.
Kind regards,
Ben.
Post by peter james
Hi,
If I try to run the below command in github,it will clone the latest
geoserver version.
*git clone git://github.com/geoserver/geoserver.git
<http://github.com/geoserver/geoserver.git>*
If I tried to clone the particular version 2.9.0(we need this version only)
by running below command,whether it clone the zip file or extracted? If it
clone the zip file of source code can we build this source code with
Maven/can we modify the source code in eclipse?If it cannot run on zip file
of source code then kindly give your instruction to run the same.
*https://github.com/geoserver/geoserver/releases/tag/2.9.0
<https://github.com/geoserver/geoserver/releases/tag/2.9.0>.*
------------------------------------------------------------
------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Geoserver-users mailing list
https://lists.sourceforge.net/lists/listinfo/geoserver-users
--
Director
Transient Software Limited <http://transient.nz/>
New Zealand
Ben Caradoc-Davies
2017-05-05 11:08:28 UTC
Permalink
Peter,

why would you want to do this? You can get the same source with "git
checkout 2.9.0" (after fetching tags). What is the point of extracting
the source into a local git repository? All that will happen is that git
will complain that you now have a huge number of changes.

Either download the source and build from source, or clone the
repository, checkout the tag, and build from source. Either will work. A
mix of the two makes no sense at all.

What are you trying to do?

Kind regards,
Ben.
Post by peter james
If I download the source code manually and copy the extracted folder
manually into the github repository/folder on local system,can i build the
source code with maven? or Will I get any error.
Post by Ben Caradoc-Davies
Peter,
this question belongs on the geoserver-devel list.
While is is possible to download the source zip file for 2.9.0, a git
clone is much preferred if you are going to make changes.
# clone the repository
git clone git://github.com/geoserver/geoserver.git
# change into the newly cloned repository
cd geoserver
# download all tags (as they are not cloned by default(?))
git fetch --tags
# switch to the tag you want
git checkout 2.9.0
# create a new branch (for example) "your-devel" from the tag
git checkout -b your-devel
Now you can make changes on this new branch and use git to manage them.
Note that the 2.9.x branch is no longer supported and this project
requires that pull request are first targeted at master, where new
development occurs. You will still be able to share your new branch in your
own GitHub/BitBucket/... repositories. You can build from source and import
into Eclipse using the procedure in the developer manual.
Kind regards,
Ben.
Post by peter james
Hi,
If I try to run the below command in github,it will clone the latest
geoserver version.
*git clone git://github.com/geoserver/geoserver.git
<http://github.com/geoserver/geoserver.git>*
If I tried to clone the particular version 2.9.0(we need this version only)
by running below command,whether it clone the zip file or extracted? If it
clone the zip file of source code can we build this source code with
Maven/can we modify the source code in eclipse?If it cannot run on zip file
of source code then kindly give your instruction to run the same.
*https://github.com/geoserver/geoserver/releases/tag/2.9.0
<https://github.com/geoserver/geoserver/releases/tag/2.9.0>.*
------------------------------------------------------------
------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Geoserver-users mailing list
https://lists.sourceforge.net/lists/listinfo/geoserver-users
--
Director
Transient Software Limited <http://transient.nz/>
New Zealand
--
Ben Caradoc-Davies <***@transient.nz>
Director
Transient Software Limited <http://transient.nz/>
New Zealand
peter james
2017-05-06 06:41:14 UTC
Permalink
Hi,

Am trying to modify the geoserver 2.9.0 source code in our local system for
some of the changes.
Post by Ben Caradoc-Davies
Peter,
why would you want to do this? You can get the same source with "git
checkout 2.9.0" (after fetching tags). What is the point of extracting the
source into a local git repository? All that will happen is that git will
complain that you now have a huge number of changes.
Either download the source and build from source, or clone the repository,
checkout the tag, and build from source. Either will work. A mix of the two
makes no sense at all.
What are you trying to do?
Kind regards,
Ben.
Post by peter james
If I download the source code manually and copy the extracted folder
manually into the github repository/folder on local system,can i build the
source code with maven? or Will I get any error.
Peter,
Post by Ben Caradoc-Davies
this question belongs on the geoserver-devel list.
While is is possible to download the source zip file for 2.9.0, a git
clone is much preferred if you are going to make changes.
# clone the repository
git clone git://github.com/geoserver/geoserver.git
# change into the newly cloned repository
cd geoserver
# download all tags (as they are not cloned by default(?))
git fetch --tags
# switch to the tag you want
git checkout 2.9.0
# create a new branch (for example) "your-devel" from the tag
git checkout -b your-devel
Now you can make changes on this new branch and use git to manage them.
Note that the 2.9.x branch is no longer supported and this project
requires that pull request are first targeted at master, where new
development occurs. You will still be able to share your new branch in your
own GitHub/BitBucket/... repositories. You can build from source and import
into Eclipse using the procedure in the developer manual.
Kind regards,
Ben.
Hi,
Post by peter james
If I try to run the below command in github,it will clone the latest
geoserver version.
*git clone git://github.com/geoserver/geoserver.git
<http://github.com/geoserver/geoserver.git>*
If I tried to clone the particular version 2.9.0(we need this version only)
by running below command,whether it clone the zip file or extracted? If it
clone the zip file of source code can we build this source code with
Maven/can we modify the source code in eclipse?If it cannot run on zip file
of source code then kindly give your instruction to run the same.
*https://github.com/geoserver/geoserver/releases/tag/2.9.0
<https://github.com/geoserver/geoserver/releases/tag/2.9.0>.*
------------------------------------------------------------
------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Geoserver-users mailing list
https://lists.sourceforge.net/lists/listinfo/geoserver-users
--
Director
Transient Software Limited <http://transient.nz/>
New Zealand
--
Director
Transient Software Limited <http://transient.nz/>
New Zealand
Ben Caradoc-Davies
2017-05-06 08:04:39 UTC
Permalink
Peter,

if you are going to be making changes, then I strongly recommend using
the git approach I described below to make a new branch based on the
2.9.0 tag. You may also need to perform the same procedure for GeoTools
15.0 if you need to make changes to GeoTools (GeoServer 2.9.0 includes
GeoTools 15.0).

Do you need exactly 2.9.0 or can you use a later build from the 2.9.x
branch?

Kind regards,
Ben.
Post by peter james
Hi,
Am trying to modify the geoserver 2.9.0 source code in our local system for
some of the changes.
Post by Ben Caradoc-Davies
Peter,
why would you want to do this? You can get the same source with "git
checkout 2.9.0" (after fetching tags). What is the point of extracting the
source into a local git repository? All that will happen is that git will
complain that you now have a huge number of changes.
Either download the source and build from source, or clone the repository,
checkout the tag, and build from source. Either will work. A mix of the two
makes no sense at all.
What are you trying to do?
Kind regards,
Ben.
Post by peter james
If I download the source code manually and copy the extracted folder
manually into the github repository/folder on local system,can i build the
source code with maven? or Will I get any error.
Peter,
Post by Ben Caradoc-Davies
this question belongs on the geoserver-devel list.
While is is possible to download the source zip file for 2.9.0, a git
clone is much preferred if you are going to make changes.
# clone the repository
git clone git://github.com/geoserver/geoserver.git
# change into the newly cloned repository
cd geoserver
# download all tags (as they are not cloned by default(?))
git fetch --tags
# switch to the tag you want
git checkout 2.9.0
# create a new branch (for example) "your-devel" from the tag
git checkout -b your-devel
Now you can make changes on this new branch and use git to manage them.
Note that the 2.9.x branch is no longer supported and this project
requires that pull request are first targeted at master, where new
development occurs. You will still be able to share your new branch in your
own GitHub/BitBucket/... repositories. You can build from source and import
into Eclipse using the procedure in the developer manual.
Kind regards,
Ben.
Hi,
Post by peter james
If I try to run the below command in github,it will clone the latest
geoserver version.
*git clone git://github.com/geoserver/geoserver.git
<http://github.com/geoserver/geoserver.git>*
If I tried to clone the particular version 2.9.0(we need this version only)
by running below command,whether it clone the zip file or extracted? If it
clone the zip file of source code can we build this source code with
Maven/can we modify the source code in eclipse?If it cannot run on zip file
of source code then kindly give your instruction to run the same.
*https://github.com/geoserver/geoserver/releases/tag/2.9.0
<https://github.com/geoserver/geoserver/releases/tag/2.9.0>.*
------------------------------------------------------------
------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Geoserver-users mailing list
https://lists.sourceforge.net/lists/listinfo/geoserver-users
--
Director
Transient Software Limited <http://transient.nz/>
New Zealand
--
Director
Transient Software Limited <http://transient.nz/>
New Zealand
--
Ben Caradoc-Davies <***@transient.nz>
Director
Transient Software Limited <http://transient.nz/>
New Zealand
peter james
2017-05-06 11:48:29 UTC
Permalink
Thanks for your information,yes we need exactly 2.9.0.What will be the
benefit if I use a later build from the 2.9.x branch?

and how can i make changes to GeoTools?what is the procedure for the same?.
Post by Ben Caradoc-Davies
Peter,
if you are going to be making changes, then I strongly recommend using the
git approach I described below to make a new branch based on the 2.9.0 tag.
You may also need to perform the same procedure for GeoTools 15.0 if you
need to make changes to GeoTools (GeoServer 2.9.0 includes GeoTools 15.0).
Do you need exactly 2.9.0 or can you use a later build from the 2.9.x
branch?
Kind regards,
Ben.
Post by peter james
Hi,
Am trying to modify the geoserver 2.9.0 source code in our local system for
some of the changes.
Peter,
Post by Ben Caradoc-Davies
why would you want to do this? You can get the same source with "git
checkout 2.9.0" (after fetching tags). What is the point of extracting the
source into a local git repository? All that will happen is that git will
complain that you now have a huge number of changes.
Either download the source and build from source, or clone the repository,
checkout the tag, and build from source. Either will work. A mix of the two
makes no sense at all.
What are you trying to do?
Kind regards,
Ben.
If I download the source code manually and copy the extracted folder
Post by peter james
manually into the github repository/folder on local system,can i build the
source code with maven? or Will I get any error.
Peter,
Post by Ben Caradoc-Davies
this question belongs on the geoserver-devel list.
While is is possible to download the source zip file for 2.9.0, a git
clone is much preferred if you are going to make changes.
# clone the repository
git clone git://github.com/geoserver/geoserver.git
# change into the newly cloned repository
cd geoserver
# download all tags (as they are not cloned by default(?))
git fetch --tags
# switch to the tag you want
git checkout 2.9.0
# create a new branch (for example) "your-devel" from the tag
git checkout -b your-devel
Now you can make changes on this new branch and use git to manage them.
Note that the 2.9.x branch is no longer supported and this project
requires that pull request are first targeted at master, where new
development occurs. You will still be able to share your new branch in your
own GitHub/BitBucket/... repositories. You can build from source and import
into Eclipse using the procedure in the developer manual.
Kind regards,
Ben.
Hi,
Post by peter james
If I try to run the below command in github,it will clone the latest
geoserver version.
*git clone git://github.com/geoserver/geoserver.git
<http://github.com/geoserver/geoserver.git>*
If I tried to clone the particular version 2.9.0(we need this version only)
by running below command,whether it clone the zip file or extracted?
If
it
clone the zip file of source code can we build this source code with
Maven/can we modify the source code in eclipse?If it cannot run on zip file
of source code then kindly give your instruction to run the same.
*https://github.com/geoserver/geoserver/releases/tag/2.9.0
<https://github.com/geoserver/geoserver/releases/tag/2.9.0>.*
------------------------------------------------------------
------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Geoserver-users mailing list
https://lists.sourceforge.net/lists/listinfo/geoserver-users
--
Director
Transient Software Limited <http://transient.nz/>
New Zealand
--
Director
Transient Software Limited <http://transient.nz/>
New Zealand
--
Director
Transient Software Limited <http://transient.nz/>
New Zealand
Ben Caradoc-Davies
2017-05-06 22:38:39 UTC
Permalink
Peter,

later releases have bug fixes (including fixes for vulnerabilities) and
new features. Vulnerabilities are often announced in release blogs, but
not fixed for unsupported releases. The 2.10.x and 2.11.x series are
supported.

Is there any reason why you cannot start from the latest 2.11.0? Staying
closer to the development branch will mean less work for you.

Please see the GeoTools user guide for build instructions. It is very
similar and uses the same tools:
http://docs.geotools.org/latest/userguide/

All release notes are available from Jira:
https://osgeo-org.atlassian.net/

For example, here are the later releases on the 2.9.x branch:

GeoTools 15.1 / GeoServer 2.9.1:
https://osgeo-org.atlassian.net/secure/ReleaseNote.jspa?projectId=10001&version=13000
https://osgeo-org.atlassian.net/secure/ReleaseNote.jspa?projectId=10000&version=13001

GeoTools 15.2 / GeoServer 2.9.2:
https://osgeo-org.atlassian.net/secure/ReleaseNote.jspa?projectId=10001&version=13600
https://osgeo-org.atlassian.net/secure/ReleaseNote.jspa?projectId=10000&version=13500

GeoTools 15.3 / GeoServer 2.9.3:
https://osgeo-org.atlassian.net/secure/ReleaseNote.jspa?projectId=10001&version=14300
https://osgeo-org.atlassian.net/secure/ReleaseNote.jspa?projectId=10000&version=14402

GeoTools 15.4 / GeoServer 2.9.4:
https://osgeo-org.atlassian.net/secure/ReleaseNote.jspa?projectId=10001&version=14600
https://osgeo-org.atlassian.net/secure/ReleaseNote.jspa?projectId=10000&version=14601

GeoServer 2.9.3 release announcement as an example:
http://blog.geoserver.org/2016/11/25/geoserver-2-9-3-released/

Kind regards,
Ben.
Post by peter james
Thanks for your information,yes we need exactly 2.9.0.What will be the
benefit if I use a later build from the 2.9.x branch?
and how can i make changes to GeoTools?what is the procedure for the same?.
Post by Ben Caradoc-Davies
Peter,
if you are going to be making changes, then I strongly recommend using the
git approach I described below to make a new branch based on the 2.9.0 tag.
You may also need to perform the same procedure for GeoTools 15.0 if you
need to make changes to GeoTools (GeoServer 2.9.0 includes GeoTools 15.0).
Do you need exactly 2.9.0 or can you use a later build from the 2.9.x
branch?
Kind regards,
Ben.
Post by peter james
Hi,
Am trying to modify the geoserver 2.9.0 source code in our local system for
some of the changes.
Peter,
Post by Ben Caradoc-Davies
why would you want to do this? You can get the same source with "git
checkout 2.9.0" (after fetching tags). What is the point of extracting the
source into a local git repository? All that will happen is that git will
complain that you now have a huge number of changes.
Either download the source and build from source, or clone the repository,
checkout the tag, and build from source. Either will work. A mix of the two
makes no sense at all.
What are you trying to do?
Kind regards,
Ben.
If I download the source code manually and copy the extracted folder
Post by peter james
manually into the github repository/folder on local system,can i build the
source code with maven? or Will I get any error.
Peter,
Post by Ben Caradoc-Davies
this question belongs on the geoserver-devel list.
While is is possible to download the source zip file for 2.9.0, a git
clone is much preferred if you are going to make changes.
# clone the repository
git clone git://github.com/geoserver/geoserver.git
# change into the newly cloned repository
cd geoserver
# download all tags (as they are not cloned by default(?))
git fetch --tags
# switch to the tag you want
git checkout 2.9.0
# create a new branch (for example) "your-devel" from the tag
git checkout -b your-devel
Now you can make changes on this new branch and use git to manage them.
Note that the 2.9.x branch is no longer supported and this project
requires that pull request are first targeted at master, where new
development occurs. You will still be able to share your new branch in your
own GitHub/BitBucket/... repositories. You can build from source and import
into Eclipse using the procedure in the developer manual.
Kind regards,
Ben.
Hi,
Post by peter james
If I try to run the below command in github,it will clone the latest
geoserver version.
*git clone git://github.com/geoserver/geoserver.git
<http://github.com/geoserver/geoserver.git>*
If I tried to clone the particular version 2.9.0(we need this version only)
by running below command,whether it clone the zip file or extracted?
If
it
clone the zip file of source code can we build this source code with
Maven/can we modify the source code in eclipse?If it cannot run on zip file
of source code then kindly give your instruction to run the same.
*https://github.com/geoserver/geoserver/releases/tag/2.9.0
<https://github.com/geoserver/geoserver/releases/tag/2.9.0>.*
------------------------------------------------------------
------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Geoserver-users mailing list
https://lists.sourceforge.net/lists/listinfo/geoserver-users
--
Director
Transient Software Limited <http://transient.nz/>
New Zealand
--
Director
Transient Software Limited <http://transient.nz/>
New Zealand
--
Director
Transient Software Limited <http://transient.nz/>
New Zealand
--
Ben Caradoc-Davies <***@transient.nz>
Director
Transient Software Limited <http://transient.nz/>
New Zealand
Loading...