Tika release process
Before the release
Change ossindex-maven-plugin
in tika-parent's pom.xml
to fail the build if there are any vulnerable dependencies.
Run mvn versions:display-plugin-updates
and mvn versions:display-dependency-updates to identify any updates that need to be made.
Make sure to run full regression tests after making updates with mvn -Prelease-profile clean verify
.
Making a release
If you've done this before, have all programs installed, all necessary karma granted, and everything configured, steps 1 though 9 will take around an hour (tests take a while to run). If you've never done this before, you will probably run into an issue not covered in this set of instructions. So, it will take longer (maybe a couple hours, maybe a couple days).
Either way, please update these instructions with any clarifications you think might help the next release manager.
git clone https://github.com/apache/tika.git release OR git clone https://github.com/apache/tika.git -b branch_1x
- Update CHANGES.txt with release date (Release X.Y - MM/dd/yyyy (date format matters!) and (if needed) add additional changelog entries.
- On the Tika JIRA, create versions X.Y, X.(Y+1), and X.(Y+2), if not already done.
- Move any lingering unresolved issues from X.Y to X.(Y+1).
- Query open issues: e.g. "project = Tika AND resolution = unresolved AND fixVersion = 1.16"
- Upper right, select bulk change
- Select all, modify to fixVersion = X.(Y+1)
- At the bottom of the screen, unselect the email updates
- Move any lingering unresolved issues from X.Y to X.(Y+1).
git add CHANGES.txt && git commit -m "Update CHANGES.txt for X.Y release." && git push origin
- Run
mvn apache-rat:check
and fix any missing license headers / add excluded for properly non-licensed fails setenv MAVEN_OPTS "-Xms128m -Xmx256m"
(or export MAVEN_OPTS="-Xms128m -Xmx256m" if you are using bash)mvn release:prepare
- Make sure all the release numbers are set to X.Y (from X.Y-SNAPSHOT)
- When prompted, the scm tag name should be X.Y (version number). If this is a release candidate, the tag should be X.Y-rcN.
- Watch for a
BUILD SUCCESSFUL
message - Make sure you have
gnupg
(or variant) installed (see https://www.apache.org/dev/openpgp.html)
mvn release:perform
- Make sure you can log on to https://repository.apache.org/
- Make sure you have the following entry in your ~/.m2/settings.xml file: https://maven.apache.org/settings.html#Servers. The server ID should be
apache.releases.https
.
- Head over to https://repository.apache.org/ (Apache's Nexus Server)
- Login with your ASF username and password
- Make sure there is only one repo from your build and that it contains everything. A transmission failure can lead to multiple repositories, none of which are valid... even when
mvn release:perform
allegesSUCCESS
- "Close" the staging repository with message
Apache Tika X.Y release candidate #N
. - Copy the URL from the closed staged repository for Tika (you'll need this later)
- Update CHANGES.txt with a "Release X.Y + 1 - Current Development" section.
- Check the contents of
target/checkout/target/X.Y/*
into https://dist.apache.org/repos/dist/dev/tika/ (tika-X.Y-src.zip{.asc|.sha512}
,tika-app-X.Y.jar{.asc|.sha512}
andtika-server-X.Y.jar{.asc|.sha512}
, andCHANGES.txt
.svn co https://dist.apache.org/repos/dist/dev/tika/ dist.dev.tika
cd dist.dev.tika
svn rm ./tika*
(remove everything but the KEYS file)cp ../release/target/checkout/target/X.Y/* .
mv CHANGES.txt CHANGES-X.Y.txt
- cp KEYS . -- if it isn't there already copy the
KEYS
file to go along with the jars and other release artifacts; add your key toKEYS
if you haven't already svn add ./*
svn commit -m "Add Tika X.Y RC#N artifacts."
- See the file in
target/checkout/target/vote.txt
- it contains the contents of the release email you should send (with subject[VOTE] Apache Tika X.Y Release Candidate N
to dev@tika.apache.org and to user@tika.apache.org). Ensure all URLs are correct and update the email to include links to the artifacts from #8 (including .sha512, .asc and CHANGES.txt)
- If the VOTE passes:
Send
[RESULT] [VOTE]
tallying the VOTE to dev@tika.apache.org and user@tika.apache.org- Head over to Nexus from #6 and "Release" the repository with message Apache Tika X.Y release (and make sure the box is checked to auto drop).
svn rm https://dist.apache.org/repos/dist/release/tika/*
svn mv https://dist.apache.org/repos/dist/dev/tika/* https://dist.apache.org/repos/dist/release/tika/
git clone https://github.com/apache/tika.git X.Y-rcN
- Add final tag for the release and delete the X.Y-rcN tag:
- Look up commit for X.Y-rcN commit:
git show-ref --abbrev=7 --tags
; let's say 'd831efb' git tag -a X.Y d831efb -m "Tagging X.Y release"
git tag -d X.Y-rcN
git push --tags
git push origin :refs/tags/X.Y-rcN
- Look up commit for X.Y-rcN commit:
- If VOTE fails:
- Drop the new Tika staging repository on https://repository.apache.org
- Make an entry in CHANGES.txt which documents the subsequent changes between release candidates. This is extremely useful if the candidates are cut from master and master has moved on since the release candidate was originally cut.
- Go back to #1.
- Update the version of any unreleased modules (like tika-dotnet).
- Update Tika site.
- Update parent version number in the site pom.xml file.
- Update the Documentation section of src/site/site.xml. Make sure to add the collapse tag for the now old version.
- Update the "Full List of Supported Formats" section of the formats page of version X.Y using TIKA-411; e.g.
java -jar ../master/tika-app/target/tika-app-1.15.jar --list-parser-details-apt >> src/site/apt/1.15/formats.apt
- Update the version number in the dependency examples and the commandline options in the new X.Y src/site/apt/X.Y/gettingstarted.apt page.
- Update src/site/resources/doap.rdf with the new release.
- Create a new example and formats page (truncated to where step 15.3 should go next time) for the next version (but don't list it in the sidebar).
- Update index.apt.vm to include the announcement and change link to previous release CHANGES.txt file (from
https://dist.apache.org/repos/dist/release/tika/CHANGES-X.(Y-1).txt
tohttps://archive.apache.org/dist/tika/CHANGES-X.(Y-1).txt
). - Update index.apt.
- Generate the contributor list with https://github.com/chrismattmann/apachestuff/blob/master/extract-tika-contribs
- Generate the issues list by running https://github.com/chrismattmann/apachestuff/blob/master/extract-tika-issues.py against CHANGES.txt.
- Update the link to the JIRA query (e.g. https://s.apache.org/XowY) via Apache's shortening service https://s.apache.org
- Generate the Javadoc.
cd tika-release/target/checkout
mvn javadoc:aggregate
mkdir .../tika-site/publish/X.Y
mv target/site/apidocs .../tika-site/publish/X.Y/api
Update tika-server documentation:
cd tika-release/target/checktout/tika-server
mvn -Pserver install (in the tika-server module to build the miredot documentation)
mkdir .../tika-site/src/site/resources/X.Y
rm -r tika-site/src/site/resources/X.Y/miredot (if it exists?!)
cp -r tika-server/target/miredot /tika/site/src/site/resources/X.Y
Check everything looks good with mvn site:run.
mvn clean install
svn add <any files changed for site>
(probably:src/site/apt/X.Y
andsrc/site/resources/X.Y/miredot
) &&svn commit -m "Update website for X.Y release."
On the Tika JIRA, "release" version X.Y and update any (new) straggler X.Y issues to X.(Y+1).
- Send announcements to user@tika.apache.org, dev@tika.apache.org, and announce@apache.org lists (from your Apache email) - see https://s.apache.org/ytaod for a sample. If editing and resending an earlier email, make sure that you use text format and/or make sure that editing the links updates the underlying links and not just the anchor text.
- Log on to https://reporter.apache.org/addrelease.html?tika and add the release data (version and date) to the database
NOTE: if anything goes wrong during mvn:release-prepare
or mvn release:perform
:
mvn release:clean
- Undo any commits that changed the version number
- Delete the X.Y-rcN tag:
gi
t
push --delete origin X.Y-rcN && git tag --delete X.Y-rcN
After the release, consider making a PR to make the upgrade in Apache Solr. See UpgradingTikaInSolr.
After the release, announce any CVEs that were fixed and update security.apt
and republish the site.