| 1 | docx4j release process |
|---|
| 2 | ---------------------- |
|---|
| 3 | |
|---|
| 4 | [Do this process for a release candidate first] |
|---|
| 5 | |
|---|
| 6 | Check everything is committed |
|---|
| 7 | |
|---|
| 8 | Update Getting Started as necessary (inc HTML and PDF versions) |
|---|
| 9 | |
|---|
| 10 | Check jar versions in pom.xml, build.xml |
|---|
| 11 | |
|---|
| 12 | Update README.txt with release info. |
|---|
| 13 | |
|---|
| 14 | svn log -r 1073:HEAD > tmp_log_2_4_0.txt |
|---|
| 15 | |
|---|
| 16 | (refer to README.txt to see what rnumber to start at) |
|---|
| 17 | |
|---|
| 18 | Update pom.xml with target version number |
|---|
| 19 | |
|---|
| 20 | svn ci |
|---|
| 21 | |
|---|
| 22 | svn co from command line (ie not in eclipse) |
|---|
| 23 | |
|---|
| 24 | ---- |
|---|
| 25 | |
|---|
| 26 | Per https://docs.sonatype.org/display/Repository/Sonatype+OSS+Maven+Repository+Usage+Guide |
|---|
| 27 | |
|---|
| 28 | mvn release:clean |
|---|
| 29 | |
|---|
| 30 | mvn release:prepare |
|---|
| 31 | |
|---|
| 32 | mvn release:perform |
|---|
| 33 | |
|---|
| 34 | perform breaks (1) because target/generated-sources is already under version control (why? get rid of this) |
|---|
| 35 | |
|---|
| 36 | so have to mv target out of the way, svn update, then copy current contents into it |
|---|
| 37 | |
|---|
| 38 | perform breaks (2) because it run in wrong dir, so cd target/checkout/docx4j and manually run it: |
|---|
| 39 | |
|---|
| 40 | $ mvn deploy --no-plugin-updates -Psonatype-oss-release -f pom.xml |
|---|
| 41 | |
|---|
| 42 | (This runs on the branch you've created in previous steps. All the previous steps do is create that branch, and change trunk's pom to whatever next version will be) |
|---|
| 43 | |
|---|
| 44 | Uploading: https://oss.sonatype.org/service/local/staging/deploy/maven2//org/docx4j/docx4j/2.7.1/docx4j-2.7.1.jar |
|---|
| 45 | 5691K uploaded (docx4j-2.7.1.jar) |
|---|
| 46 | |
|---|
| 47 | Then release it: |
|---|
| 48 | |
|---|
| 49 | 1. close the staging repository: |
|---|
| 50 | |
|---|
| 51 | 1. Login to the Nexus UI, https://oss.sonatype.org/index.html#welcome |
|---|
| 52 | 2. Go to Staging Repositories page. |
|---|
| 53 | 3. Select a staging repository. |
|---|
| 54 | 4. Click the Close button. |
|---|
| 55 | |
|---|
| 56 | 2. when you are sure the closed staging repository has no problem, click the Release button. |
|---|
| 57 | |
|---|
| 58 | -------- |
|---|
| 59 | |
|---|
| 60 | The mvn generated jar is currently bigger (5.6MB), because it contains unnecessary docx. |
|---|
| 61 | |
|---|
| 62 | 1111267 Fri Oct 14 15:03:28 EST 2011 jaxb-binder-issue.docx |
|---|
| 63 | |
|---|
| 64 | TODO: fix this |
|---|
| 65 | |
|---|
| 66 | ------- |
|---|
| 67 | |
|---|
| 68 | ANT_OPTS="-Xmx512m -XX:MaxPermSize=256m" ant dist |
|---|
| 69 | |
|---|
| 70 | (Remove the jaxb jars from dist dir) |
|---|
| 71 | |
|---|
| 72 | Create docx4j-x.x.x.tar.gz (ant dist, rename the jar as well) |
|---|
| 73 | |
|---|
| 74 | ---- |
|---|
| 75 | |
|---|
| 76 | Announce release in docx4j forum |
|---|