Deploying jars to m2-ibiblio-rsync-repository
1. Check out the STRUTS_1_3_5 tag
2. Add the ibiblio rsync repo to <distributionManagement> in the struts-parent pom
Index: pom.xml =================================================================== --- pom.xml (revision 431994) +++ pom.xml (working copy) @@ -58,6 +58,11 @@ <id>apache-site</id> <url>scp://people.apache.org/www/struts.apache.org/1.x/</url> </site> + <repository> + <id>apache.releases</id> + <name>Apache Release Distribution Repository</name> + <url>scp://people.apache.org/www/people.apache.org/repo/m2-ibiblio- rsync-repository</url> + </repository> </distributionManagement> <profiles>
3. Deploy the artifacts to set the repository xml metadata:
mvn deploy -P pre-asssembly
(Wait a couple of minutes so that the find command in #5 will work.)
4. Copy the original files from the snapshot repo, overwriting the ones you just deployed:
ssh people.apache.org $ cd /www/people.apache.org/repo/m2-snapshot-repository $ pwd /www/people.apache.org/repo/m2-snapshot-repository $ find . -name "struts-*-1.3.5*" -not \( -name "*SNAPSHOT*" \) -exec cp {} /www/people.apache.org/repo/m2-ibiblio-rsync-repository/{} \;
5. Make sure every file was overwritten (adjust # of minutes as necessary):
ssh people.apache.org $ cd /www/people.apache.org/repo/m2-ibiblio-rsync-repository/org/apache/struts find . -name *1.3.5* -mmin 106 --> should show all the files that are timestamped when 'find ... -exec cp ...' was done find . -name *1.3.5* -mmin +107 --> should show only the directories, which are timestamped when 'mvn deploy' was done
PGP signatures:
Save and run this from $M2_REPO/org/apache/struts
# Recursively pgp sign files in a directory structure # Adapted from: http://gleamynode.net/wordpress/archives/129 echo -n "PGP Key Password: " stty -echo read PASSWORD stty echo echo "" for FILE in $(find . -name "*.jar" -or -name "*.pom"); do echo -n "Signing: $FILE ... " echo "$PASSWORD" | gpg --default-key "$DEFAULT_KEY" --detach-sign --armor --no-tty --yes --passphrase-fd 0 "$FILE" && echo done. done
$ cd $M2_REPO/org/apache/struts $ ./sign-jar-pom.sh
Checksums for the distribution .zip files:
for FILE in $(find . -name "*.zip"); do FILENAME=`echo $FILE | cut -c 3-30` echo "Checksumming $FILENAME" md5sum $FILENAME > $FILENAME.md5 sha1sum $FILENAME > $FILENAME.sha1 done
Ted Husted rolled the 1.3.5 release on July 17th. Notes on the release distribution .zip files follow:
all
lib
docs
apps
src