Project

General

Profile

TaxonomicEditorRelease » History » Version 48

Andreas Müller, 05/28/2020 03:08 PM

1 48 Andreas Müller
2
3
<span style="color:red">This page has been deprecated for a newer version named [TaxonomicEditorDeployment TaxonomicEditorDeployment]</span>
4 6 Niels Hoffmann
5 1 Niels Hoffmann
# Taxonomic Editor Release
6
7
8 5 Niels Hoffmann
The Taxonomic Editor is using eclipse tycho for integrating the OSGI build process into maven. Unfortunately the maven release plugin is not yet working with eclipse tycho (version 0.13) .
9 1 Niels Hoffmann
10
This document explains all steps necessary to create a new release of the Taxonomic Editor. It is desirable to automate this process (see #xxxx).
11
12 6 Niels Hoffmann
13
{{>toc}}
14
15
16
17
18 7 Niels Hoffmann
19
----
20 1 Niels Hoffmann
21
22 3 Niels Hoffmann
## Prerequisites
23 1 Niels Hoffmann
24
25 9 Lorna Morris
1. Make sure that all relevant changes have been merged from the SNAPSHOT development branch into the trunk so the trunk can be used to make the release
26
27 19 Andreas Müller
1. Lock the current SNAPSHOT branch so that no more commits can be made. In a fresh checkout you can lock the whole directory in zsh with 
28 1 Niels Hoffmann
29 19 Andreas Müller
~~~
30 20 Andreas Müller
svn lock <root>/**/*(.) 
31 1 Niels Hoffmann
~~~
32 21 Andreas Müller
 in bash with 
33 1 Niels Hoffmann
34 21 Andreas Müller
 <pre>
35
36
 find <root> -type f | xargs svn lock
37
38
</pre>
39
40 31 Andreas Müller
41
 or by using Tortoise Lock. 
42
43
44 3 Niels Hoffmann
1. There has to be a released cdmlib version (no snapshot), which the Taxonomic Editor depends on
45 1 Niels Hoffmann
46
47 3 Niels Hoffmann
48
49
## Adapting cdmlib version
50
51 30 Andreas Müller
1. In taxeditor-parent's pom.xml, change ONLY the version number of cdmlib (cdmlib.version) to the desired version e.g. from 3.0.9-SNAPSHOT to 3.0.10-SNAPSHOT (Note while 3.0.11 release: why change to 3.0.10-SNAPSHOT. Don't we want to have 3.0.9 as base, change to 3.0.10-SNAPSHOT later (TaxonomicEditorRelease#Bumptrunktonewversion)
52 3 Niels Hoffmann
53 36 Andreas Kohlbecker
1. remove old jars
54
55
~~~
56
rm eu.etaxonomy.taxeditor.cdmlib/lib/cdmlib-*.jar
57
~~~
58 32 Andreas Müller
1. In eu.etaxonomy.taxditor.cdmlib, `mvn validate` to let maven copy the desired cdmlib jars into into eu.etaxonomy.taxeditor.cdmlib/lib directory.
59 3 Niels Hoffmann
60 36 Andreas Kohlbecker
~~~
61
mvn validate
62
~~~
63 3 Niels Hoffmann
1. Adapt the classpath to includethe desired cdmlib version in eu.etaxonomy.taxeditor.cdmlib
64
65 37 Andreas Kohlbecker
  1. Refresh the eclipse workspace (F5)
66
67 3 Niels Hoffmann
  1. Open MANIFEST.MF in 'Plugin Manifest Editor'
68
69
  1. Select 'Runtime' tab
70
71
  1. In the "Classpath" section, remove the entries for cdmlib
72
73 10 Lorna Morris
  1. Add the cdmlib jars with the desired version (these were copied into eu.etaxonomy.taxeditor.cdmlib/lib by the mvn validate step)
74 3 Niels Hoffmann
75
76
77
### Setting the release version number
78
79 10 Lorna Morris
Bump the version number to <version>.BUILDQUALIFIER, e.g. 3.0.10-RELEASE. From taxeditor-parent execute (replacing the <version> with the release number and replacing the BUILDQUALIFIER with a timestamp e.g. 3.0.10.201205251209:
80 3 Niels Hoffmann
81 17 Andreas Müller
82 28 Andreas Müller
NOTE: Test if -DnewVersion=3.0.10.RELEASE works.  -> But probably we want to have timestamp as this is according to other eclipse plugin versioning conventions.
83 17 Andreas Müller
84
85 3 Niels Hoffmann
~~~
86
mvn -Dtycho.mode=maven org.eclipse.tycho:tycho-versions-plugin:set-version -DnewVersion=<version>.BUILDQUALIFIER
87
~~~
88
89 10 Lorna Morris
The outcome of running this command is that the version numbers in poms and MANIFEST.MF files  have been changed. 
90 3 Niels Hoffmann
91
92 1 Niels Hoffmann
Attention: This procedure did not work for the _eu.etaxonomy.taxeditor.product_ file in the eu.etaxonomy.taxeditor project and the version number change had to be added manually (2012-02-07),  we also changed it manually for the 3.0.10 release on 25.05.2012.
93 28 Andreas Müller
94
95
Test: What is taxeditor.version number for. It looks like it does not have any effect. It should be same as cdmlib.version put maybe we can also delete -> TEST
96
97
98 3 Niels Hoffmann
99
100
101
## Create products
102
103
104
You can create the products with 
105
106
107
~~~
108
mvn package
109
~~~
110 1 Niels Hoffmann
111 22 Andreas Müller
taxeditor parent.
112
113
114 5 Niels Hoffmann
* The created products reside in eu.etaxonomy.taxeditor/target
115
116 43 Andreas Müller
* The packages should be moved to a folder with the name of the unqualified version (e.g. 3.0.10) in http://cybertaxonomy.eu/download/taxeditor/ located under /var/www/download
117 5 Niels Hoffmann
118
* Update the _stable_ symbolic link to point to the new folder
119 3 Niels Hoffmann
120 1 Niels Hoffmann
121
122
## Create tag for release
123 3 Niels Hoffmann
124
125 1 Niels Hoffmann
Commit the changes and create a tag with the release version number in http://dev.e-taxonomy.eu/svn/tags/taxeditor/release/
126 10 Lorna Morris
127
128 4 Niels Hoffmann
129 1 Niels Hoffmann
## Bump trunk to new version
130 29 Andreas Müller
131
132 30 Andreas Müller
NOTE: if not yet set to next SNAPSHOT version number you may now increase cdmlib version to next number as described in [[TaxonomicEditorRelease]]#Adaptingcdmlibversion
133 1 Niels Hoffmann
134
135 4 Niels Hoffmann
Update the version number to <version+1>-SNAPSHOT. From taxeditor-parent execute:
136 1 Niels Hoffmann
137 4 Niels Hoffmann
~~~
138
mvn -Dtycho.mode=maven org.eclipse.tycho:tycho-versions-plugin:set-version -DnewVersion=<version+1>-SNAPSHOT
139
~~~
140 1 Niels Hoffmann
141 4 Niels Hoffmann
142 12 Lorna Morris
Attention: This procedure did not work for the _eu.etaxonomy.taxeditor.product_ file in the eu.etaxonomy.taxeditor project and the version number change had to be added manually (2012-02-07), we also changed it manually to 3.0.11-SNAPSHOT on 25.05.2012. Edit the parent pom manually with 3.0.11-SNAPSHOT in 3 places.
143 4 Niels Hoffmann
144
145 23 Andreas Müller
Commit the changes.
146 4 Niels Hoffmann
147 23 Andreas Müller
148
149 1 Niels Hoffmann
## Create new development branch
150
151
152 12 Lorna Morris
1. In eu.etaxonomy.taxditor.cdmlib, `mvn validate` to let maven copy the desired cdmlib jars.
153
154 26 Andreas Müller
1. Adapt the classpath to include the desired cdmlib version in eu.etaxonomy.taxeditor.cdmlib
155 12 Lorna Morris
156 15 Lorna Morris
  1. Open MANIFEST.MF in 'Plugin Manifest Editor'
157 12 Lorna Morris
158 15 Lorna Morris
  1. Select 'Runtime' tab
159 12 Lorna Morris
160 1 Niels Hoffmann
  1. In the "Classpath" section, remove the entries for cdmlib
161
162
  1. Add the cdmlib jars with the desired version (e.g. 3.0.11-SNAPSHOT jars).
163 33 Andreas Müller
164
165
Create a new branch named <version+1>-SNAPSHOT in http://dev.e-taxonomy.eu/svn/branches/taxeditor/ (e.g. use Tortoise SVN to create branch/tag and set the URL to http://dev.e-taxonomy.eu/svn/branches/taxeditor/3.0.11-SNAPSHOT).
166
167
Question: Branch from trunk or from dev-branch? (23.7.2012)
168 34 Andreas Müller
169
170 39 Cherian Mathew
171
## Update Tickets / Release Information
172 38 Cherian Mathew
173
Close the TaxEditor milestone, move all remaining tickets to the next release milestone (offered as option when closing the milestone) and finally update the http://dev.e-taxonomy.eu/trac/wiki/CdmPlatformRoadmap page.
174
175
176 34 Andreas Müller
177
## Post release tasks
178
179
180 35 Andreas Müller
Don't forget to install on ulteo (TaxonomicEditorUpdateOnUlteo)