From 4d6ac8dfd50764ba7ba5ea95c1978ecf6923d720 Mon Sep 17 00:00:00 2001 From: Jason van Zyl Date: Thu, 26 Oct 2006 14:47:46 +0000 Subject: [PATCH] o adding the m2 repository sync into the standard process git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@468022 13f79535-47bb-0310-9956-ffa450edef68 --- maven-meeper/src/bin/synchronize.properties | 1 + maven-meeper/src/bin/synchronize.sh | 18 +++++++++++++++--- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/maven-meeper/src/bin/synchronize.properties b/maven-meeper/src/bin/synchronize.properties index 82da23196..5ef9a6068 100644 --- a/maven-meeper/src/bin/synchronize.properties +++ b/maven-meeper/src/bin/synchronize.properties @@ -4,5 +4,6 @@ export CENTRAL_HOST=maven01.managed.contegix.com export TOOLS_BASE=$HOME/components/maven-meeper/src/bin export SYNC_TOOLS=$TOOLS_BASE/synchronize export SYNCOPATE=$SYNC_TOOLS/syncopate +export M2_SYNC=$SYNC_TOOLS/m2-sync export REPOCLEAN=$TOOLS_BASE/m1-m2-conversion export M1_M2_REWRITE_RULES=$SYNC_TOOLS/m1-m2-mod-rewrite-rules.txt diff --git a/maven-meeper/src/bin/synchronize.sh b/maven-meeper/src/bin/synchronize.sh index 10ebd90f8..623cc3f69 100755 --- a/maven-meeper/src/bin/synchronize.sh +++ b/maven-meeper/src/bin/synchronize.sh @@ -1,11 +1,12 @@ #!/bin/sh # ------------------------------------------------------------------------ -# 1. Sync Maven 1.x repositories +# 1. Sync Maven 1.x repositories to central # 2. Convert Maven 1.x repository to Maven 2.x repository # 3. Manual fixes -# 4. Sync the Maven 2.x repository to Ibiblio -# 5. Copy the mod_rewrite rules to the Maven 2.x repository +# 4. Sync Maven 2.x repositories to central +# 5. Sync the Maven 2.x repository to Ibiblio +# 6. Copy the mod_rewrite rules to the Maven 1.x repository @ Ibiblio # ------------------------------------------------------------------------ MODE=$1 @@ -75,6 +76,17 @@ mv $CL/maven-metadata.xml.tmp $CL/maven-metadata.xml md5sum $CL/maven-metadata.xml > $CL/maven-metadata.xml.md5 sha1sum $CL/maven-metadata.xml > $CL/maven-metadata.xml.sha1 +# ------------------------------------------------------------------------ +# 4. Sync Maven 2.x repositories to central +# ------------------------------------------------------------------------ + +[ "$MODE" = "batch" ] && echo && echo "Press any key to sync Maven 2.x repositories to central, or hit ^C to quit." && echo + +( + cd $M2_SYNC + ./m2-sync.sh go +) + # ------------------------------------------------------------------------ # Ibiblio synchronization: sync the central repository to Ibiblio # ------------------------------------------------------------------------ -- 2.39.5