Ignore:
Timestamp:
10/14/11 12:04:39 (7 months ago)
Author:
jharrop
Message:

Notes re Maven Central

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/docx4j/RELEASE_HOWTO.txt

    r1595 r1698  
    2020svn ci 
    2121 
    22 co as new project; check it 
     22svn co from command line (ie not in eclipse) 
    2323 
    24 to run tests: 
    25    ant test  
    26 or mvn install 
     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------- 
    2767 
    2868ANT_OPTS="-Xmx512m -XX:MaxPermSize=256m" ant dist 
     
    3171 
    3272    Create docx4j-x.x.x.tar.gz (ant dist, rename the jar as well) 
    33      
    3473 
    35 Check Mvn build works 
    36 - it creates an 18MB -javadoc, but don't upload that 
    37  
    38  
    39 Check all jars match target (eg Java 1.5)     
    40  
    41 Tag the version in svn 
    42  
    43 Create javadoc  
    44  
    45     edit doctitle in build.xml 
    46  
    47     ant javadoc 
    48  
    49 Maven upload 
    50  
    51    mvn deploy:deploy-file -f wagon-svn-pom.xml -Dfile=dist/docx4j.jar -DpomFile=pom.xml  -Dpackaging=jar -DrepositoryId=docx4j -Durl=svn:http://dev.plutext.org/svn/docx4j/trunk/docx4j/m2 
     74---- 
    5275 
    5376Announce release in docx4j forum 
Note: See TracChangeset for help on using the changeset viewer.