source: trunk/docx4j/RELEASE_HOWTO.txt @ 1698

Revision 1698, 2.0 KB checked in by jharrop, 4 months ago (diff)

Notes re Maven Central

Line 
1docx4j release process
2----------------------
3
4[Do this process for a release candidate first]
5
6Check everything is committed
7
8Update Getting Started as necessary (inc HTML and PDF versions)
9
10Check jar versions in pom.xml, build.xml
11
12Update 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
18Update pom.xml with target version number
19
20svn ci
21
22svn co from command line (ie not in eclipse)
23
24----
25
26Per https://docs.sonatype.org/display/Repository/Sonatype+OSS+Maven+Repository+Usage+Guide
27
28mvn release:clean
29
30mvn release:prepare
31
32mvn release:perform
33
34perform breaks (1) because target/generated-sources is already under version control (why? get rid of this)
35
36so have to mv target out of the way, svn update, then copy current contents into it
37
38perform 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
44Uploading: https://oss.sonatype.org/service/local/staging/deploy/maven2//org/docx4j/docx4j/2.7.1/docx4j-2.7.1.jar
455691K uploaded  (docx4j-2.7.1.jar)
46
47Then release it:
48
491. 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
562. when you are sure the closed staging repository has no problem, click the Release button.
57
58--------
59
60The mvn generated jar is currently bigger (5.6MB), because it contains unnecessary docx.
61
621111267 Fri Oct 14 15:03:28 EST 2011 jaxb-binder-issue.docx
63
64TODO: fix this
65
66-------
67
68ANT_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
76Announce release in docx4j forum
Note: See TracBrowser for help on using the repository browser.