Revisions
kernel trunk r57527 (1.1-SNAPSHOT refresh)
kernel-1.0.x r57597 (1.0.3, 1.0.4-SNAPSHOT)
sakai-2.6.x r57646 (testing against)
kernel-1.0.3 tag (r57597)
Current versions
Tag: 1.0.2
Branch: 1.0.3-SNAPSHOT
Trunk 1.1-SNAPSHOT
...
The release plugin will then branch the current trunk to branches/kernel-1.1.x.
Edit the poms to 1.2-SNAPSHOT and commit.
Finis
Check 1.0.3 tag
The release plugin will generate a 1.0.3 tag. Check it out and make sure it works.
Refresh Maven Repo with 1.0.3, 1.0.4-SNAPSHOT and 1.1-SNAPSHOT artifacts
Each new release will require placement of corresponding kernel artifacts in the Maven2 repo.
Steps:
...
Maven will populate /tmp/maven2/org/sakaiproject/kernel with updated artifacts
SNAPSHOT refreshes
When refreshing SNAPSHOT artifacts, delete the existing artifact folder and contents before running mvn deploy
.
...
No Format |
---|
#!/bin/sh # Delete artifact folders prior to deploying Maven snapshot artifacts. # This is necessary as Maven does not update it's metadata files correctly when an old artifact exists in the repo. # bash deletesakaiartifact.bash [TARGET FOLDER NAME] (e.g., 1.1-SNAPSHOT) [LOCATION] (e.g. /tmp/maven2/org/sakaiproject/kernel) # author=Anthony Whyte, arwhyte@umich.edu TARGET=$1 LOCATION=$2 cd $LOCATION echo "Removing ${TARGET} folders and content recursively from ${LOCATION}" rm -rf `find . -type d -name ${TARGET}` |
Populate Maven Repo
Tar up kernel artifacts. Copy to source.sakaiproject.org. Make sure backup of existing /kernel directory is in place. Explode tar file.
No Format |
---|
tar -cvzf kernelrepo.tgz /tmp/maven2/org/sakaiproject/kernel}} copy kernelrepo.tgz to Maven2 repo cd /var/www/maven2/org/sakaiproject tar xvzf kernelrepo.tgz |
Repo permissions
Make sure repo permissions are correct
sudo chown -R apache:apache kernel
References
Maven Release Plugin
Maven mini-guide
...