mirror of https://github.com/apache/archiva.git
move tools
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@593906 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
a2d82e7cbe
commit
f08f740984
|
@ -1,53 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
~ Copyright 2005-2006 The Apache Software Foundation.
|
||||
~
|
||||
~ Licensed under the Apache License, Version 2.0 (the "License");
|
||||
~ you may not use this file except in compliance with the License.
|
||||
~ You may obtain a copy of the License at
|
||||
~
|
||||
~ http://www.apache.org/licenses/LICENSE-2.0
|
||||
~
|
||||
~ Unless required by applicable law or agreed to in writing, software
|
||||
~ distributed under the License is distributed on an "AS IS" BASIS,
|
||||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
~ See the License for the specific language governing permissions and
|
||||
~ limitations under the License.
|
||||
-->
|
||||
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
||||
<parent>
|
||||
<groupId>org.apache.maven.archiva</groupId>
|
||||
<artifactId>archiva</artifactId>
|
||||
<version>1.0-alpha-4-SNAPSHOT</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<artifactId>maven-meeper</artifactId>
|
||||
<name>Maven Meeper</name>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.apache.commons</groupId>
|
||||
<artifactId>commons-csv</artifactId>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>commons-lang</groupId>
|
||||
<artifactId>commons-lang</artifactId>
|
||||
<version>2.2</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<repositories>
|
||||
<repository>
|
||||
<id>apache.snapshots</id>
|
||||
<name>Apache Snapshot Repository</name>
|
||||
<url>http://people.apache.org/repo/m2-snapshot-repository</url>
|
||||
<releases>
|
||||
<enabled>false</enabled>
|
||||
</releases>
|
||||
</repository>
|
||||
</repositories>
|
||||
|
||||
</project>
|
|
@ -1,100 +0,0 @@
|
|||
|
||||
############
|
||||
# README.txt
|
||||
############
|
||||
|
||||
# Explanation of files found within maven-meeper
|
||||
|
||||
##########################
|
||||
# One-button synchronizing
|
||||
##########################
|
||||
|
||||
## Script to synchronize m1 repositories, convert them to m2, fix them,
|
||||
## sync the m2 repositories to ibiblio and update the mod_rewrite rules
|
||||
./synchronize.sh
|
||||
|
||||
## Configuration for the above
|
||||
./synchronize.properties
|
||||
|
||||
####################################################
|
||||
# Upload bundles from the Maven JIRA to a repository
|
||||
####################################################
|
||||
|
||||
## dos2unix function
|
||||
./bundle-upload/d2u
|
||||
|
||||
## See: http://maven.apache.org/guides/mini/guide-ibiblio-upload.html
|
||||
## Pulls a bundle down via wget, deploys jar, pom, license file, java-sources, javadocs
|
||||
./bundle-upload/deploy-bundle
|
||||
|
||||
##############################################
|
||||
# Convert an m1 repository to an m2 repository
|
||||
##############################################
|
||||
|
||||
## java.net uses CVS and only certain parts need to be synced.
|
||||
./m1-m2-conversion/java.net/sync-repoclean.sh
|
||||
|
||||
## configuration for the above
|
||||
./m1-m2-conversion/java.net/synchronize.properties
|
||||
|
||||
## Uses http://svn.apache.org/repos/asf/maven/sandbox/repoclean/src/main/bash/repoclean.sh
|
||||
## which runs Java code to do the bulk of the work.
|
||||
./m1-m2-conversion/sync-repoclean.sh
|
||||
|
||||
## configuration for the above
|
||||
./m1-m2-conversion/synchronize.properties
|
||||
|
||||
## Maven 1 -> Maven 2 mod-rewriting
|
||||
./synchronize/m1-m2-mod-rewrite-rules.txt
|
||||
|
||||
## rsyncs from an m2 repository somewhere onto a subdirectory of
|
||||
## the central repository. By choosing the subdirectory, some security is ensured.
|
||||
./synchronize/m2-sync/m2-sync.sh
|
||||
|
||||
## Bash scripts that set variables to be used by the above script
|
||||
./synchronize/m2-sync/conf/codehaus.sh
|
||||
./synchronize/m2-sync/conf/displaytag.sh
|
||||
./synchronize/m2-sync/conf/net.databinder.sh
|
||||
./synchronize/m2-sync/conf/net.sourceforge.jwebunit.sh
|
||||
./synchronize/m2-sync/conf/net.sourceforge.maven-taglib.sh
|
||||
./synchronize/m2-sync/conf/org.acegisecurity.sh
|
||||
./synchronize/m2-sync/conf/org.apache.sh
|
||||
./synchronize/m2-sync/conf/org.mortbay.sh
|
||||
./synchronize/m2-sync/conf/org.objectweb.sh
|
||||
./synchronize/m2-sync/conf/org.springframework.sh
|
||||
./synchronize/m2-sync/conf/wicket.sh
|
||||
|
||||
## rsyncs the central m2 repository over to the ibiblio mirror
|
||||
./synchronize/sync-central-to-ibiblio.sh
|
||||
|
||||
##################################################
|
||||
# M1 synchronize from upstream repositories script
|
||||
##################################################
|
||||
## INI configuration files
|
||||
./synchronize/syncopate/conf/apache.conf
|
||||
./synchronize/syncopate/conf/codehaus.conf
|
||||
./synchronize/syncopate/conf/maven-plugins-sf.conf
|
||||
./synchronize/syncopate/conf/mortbay.conf
|
||||
./synchronize/syncopate/conf/objectweb.conf
|
||||
./synchronize/syncopate/conf/opensymphony.conf
|
||||
./synchronize/syncopate/conf/osjava.conf
|
||||
./synchronize/syncopate/conf/stage.conf
|
||||
./synchronize/syncopate/conf/test.conf
|
||||
|
||||
## standard exclusions. you can add to it in the configuration files
|
||||
./synchronize/syncopate/exclusions.txt
|
||||
|
||||
## INI perl parser - pulled down from CPAN etc
|
||||
./synchronize/syncopate/IniFiles.pm
|
||||
|
||||
## The perl synchronization file
|
||||
./synchronize/syncopate/sync
|
||||
|
||||
## top level configuration
|
||||
./synchronize/syncopate/syncopate.conf
|
||||
|
||||
###############################
|
||||
# DELETE THESE IF INDEED UNUSED
|
||||
###############################
|
||||
./unused/artifact-map.txt
|
||||
./unused/rewrite.conf
|
|
@ -1,5 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
sudo svc -d /service/j2ee_repository.maven.org
|
||||
sudo svc -u /service/j2ee_repository.maven.org
|
||||
|
|
@ -1,208 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
BUNDLEURL=$1
|
||||
GROUPID=$2
|
||||
VERSION=$3
|
||||
|
||||
[ "${BUNDLEURL}" = "" ] && echo && echo "You must specify a bundle URL!" && echo && exit
|
||||
|
||||
WORKDIR=bundle.tmp
|
||||
|
||||
SCRIPTDIR=`dirname ${0}`
|
||||
|
||||
[ -d $SCRIPTDIR ] || SCRIPTDIR=.
|
||||
|
||||
echo "Script directory is: ${SCRIPTDIR}"
|
||||
|
||||
# repo dir relative to WORKDIR
|
||||
REPODIR=$HOME/repository-staging/to-ibiblio/maven
|
||||
REPO2DIR=$HOME/repository-staging/to-ibiblio/maven2
|
||||
|
||||
rm -rf $WORKDIR > /dev/null 2>&1
|
||||
|
||||
mkdir $WORKDIR
|
||||
|
||||
cd $WORKDIR
|
||||
|
||||
echo "Retrieving URL: '${BUNDLEURL}'"
|
||||
wget $BUNDLEURL
|
||||
BUNDLE=`echo $BUNDLEURL | sed -e 's#^.*/##;'`
|
||||
|
||||
echo $BUNDLE
|
||||
mv $BUNDLE tmp.jar
|
||||
BUNDLE=tmp.jar
|
||||
|
||||
(
|
||||
|
||||
echo "Unzipping original bundle."
|
||||
jar xf $BUNDLE || unzip $BUNDLE
|
||||
|
||||
# copy files in subdirs to workdir
|
||||
echo "Copying files to working directory."
|
||||
for d in `find ./* -type d` ; do
|
||||
for f in `find $d -type f` ; do cp $f .; done;
|
||||
done
|
||||
|
||||
echo "Searching for POM:"
|
||||
echo "...checking for 'project.xml'"
|
||||
POM=project.xml
|
||||
if [ ! -f ${POM} ]
|
||||
then
|
||||
echo "...checking for 'pom.xml'"
|
||||
POM=pom.xml
|
||||
fi
|
||||
|
||||
if [ ! -f ${POM} ]
|
||||
then
|
||||
echo "...searching for **/*.pom"
|
||||
POM=`find . -iname *.pom`
|
||||
fi
|
||||
|
||||
[ "" == "${POM}" ] && echo && echo "Cannot deploy without the pom.xml or project.xml file!" && echo && exit
|
||||
[ ! -f ${POM} ] && echo && echo "Cannot deploy without the pom.xml or project.xml file!" && echo && exit
|
||||
|
||||
echo "POM is: '${POM}'"
|
||||
dos2unix ${POM}
|
||||
less $POM
|
||||
|
||||
if [ ! -z $VERSION ]
|
||||
then
|
||||
version=$VERSION
|
||||
else
|
||||
version=`cat ${POM} | tr '\n' ' ' | sed 's#<build>.*</build>##' | sed 's#<versions>.*</versions>##' | sed 's#<dependencies>.*</dependencies>##' | sed 's#<reporting>.*</reporting>##' | sed 's#<parent>.*</parent>##' | grep '<version>' | sed -e 's#^.*<version>##;s#</version>.*$##'`
|
||||
|
||||
if [ -z $version ]
|
||||
then
|
||||
version=`grep currentVersion ${POM} | sed -e 's#^.*<currentVersion>##;s#</currentVersion>.*$##'`
|
||||
fi
|
||||
fi
|
||||
|
||||
artifactId=`cat ${POM} | tr '\n' ' ' | sed 's#<build>.*</build>##' | sed 's#<dependencies>.*</dependencies>##' | sed 's#<contributors>.*</contributors>##' | sed 's#<dependencies>.*</dependencies>##' | sed 's#<reporting>.*</reporting>##' | sed 's#<parent>.*</parent>##' | grep '<artifactId>' | sed -e 's#^.*<artifactId>##;s#</artifactId>.*$##'`
|
||||
|
||||
if [ -z $artifactId ]
|
||||
then
|
||||
artifactId=`cat ${POM} | tr '\n' ' ' | sed 's#<build>.*</build>##' | sed 's#<versions>.*</versions>##' | sed 's#<developers>.*</developers>##' | sed 's#<dependencies>.*</dependencies>##' | sed 's#<reporting>.*</reporting>##' | sed 's#<contributors>.*</contributors>##' | sed 's#<parent>.*</parent>##' | grep '<id>' | sed -e 's#^.*<id>##;s#</id>.*$##'`
|
||||
fi
|
||||
|
||||
if [ ! -z $GROUPID ]
|
||||
then
|
||||
groupId=${GROUPID}
|
||||
else
|
||||
groupId=`cat ${POM} | tr '\n' ' ' | sed 's#<build>.*</build>##' | sed 's#<dependencies>.*</dependencies>##' | sed 's#<reporting>.*</reporting>##' | sed 's#<parent>.*</parent>##' | grep '<groupId>' | sed -e 's#^.*<groupId>##;s#</groupId>.*$##'`
|
||||
|
||||
if [ -z $groupId ]
|
||||
then
|
||||
groupId=${artifactId}
|
||||
fi
|
||||
fi
|
||||
|
||||
version=`echo ${version} | sed -e 's/ *$//'`
|
||||
artifactId=`echo ${artifactId} | sed -e 's/ *$//'`
|
||||
groupId=`echo ${groupId} | sed -e 's/ *$//'`
|
||||
groupDir=`echo ${groupId} | sed -e 's/\./\//g'`
|
||||
|
||||
maven2=`cat ${POM} | grep '<modelVersion>'`
|
||||
|
||||
echo
|
||||
if [ ! -z "${maven2}" ]
|
||||
then
|
||||
echo " ========= MAVEN 2 ========= "
|
||||
fi
|
||||
|
||||
echo
|
||||
echo " version: [${version}]"
|
||||
echo " groupId: [${groupId}]"
|
||||
echo "artifactId: [${artifactId}]"
|
||||
echo
|
||||
|
||||
if [ -d $REPO2DIR/${groupDir} ]
|
||||
then
|
||||
echo "The group already exists"
|
||||
else
|
||||
echo "The group does NOT already exist"
|
||||
fi
|
||||
|
||||
echo
|
||||
echo -n Hit Enter to continue or Ctrl-C to abort...
|
||||
read
|
||||
|
||||
LIC=LICENSE.txt
|
||||
|
||||
# A little help for manually created upload bundles
|
||||
[ -f license.txt ] && mv license.txt $LIC
|
||||
|
||||
if [ -f $LIC ]
|
||||
then
|
||||
$SCRIPTDIR/d2u $LIC
|
||||
mkdir -p $REPODIR/${groupId}/licenses
|
||||
cp -i $LIC $REPODIR/${groupId}/licenses/${artifactId}-${version}.license
|
||||
fi
|
||||
|
||||
cp ${POM} ${artifactId}-${version}.pom
|
||||
|
||||
m2dir=$REPO2DIR/${groupDir}/${artifactId}/${version}
|
||||
|
||||
mkdir -p ${m2dir}
|
||||
|
||||
if [ -z "${maven2}" ]
|
||||
then
|
||||
# Maven 1
|
||||
mkdir -p $REPODIR/${groupId}/poms
|
||||
cp -i ${artifactId}-${version}.pom $REPODIR/${groupId}/poms
|
||||
else
|
||||
# Maven 2
|
||||
cp -i ${artifactId}-${version}.pom ${m2dir}
|
||||
md5sum ${m2dir}/${artifactId}-${version}.pom > ${m2dir}/${artifactId}-${version}.pom.md5
|
||||
sha1sum ${m2dir}/${artifactId}-${version}.pom > ${m2dir}/${artifactId}-${version}.pom.sha1
|
||||
fi
|
||||
|
||||
artifactType=`echo ${artifactId} | sed -e 's/maven-.*-plugin//'`
|
||||
|
||||
if [ -z ${artifactType} ]
|
||||
then
|
||||
echo "Deploying Plugin ..."
|
||||
mkdir -p $REPODIR/${groupId}/plugins
|
||||
cp -i ${artifactId}-${version}.jar $REPODIR/${groupId}/plugins
|
||||
else
|
||||
echo "Deploying JAR ..."
|
||||
|
||||
if [ -z "${maven2}" ]
|
||||
then
|
||||
# Maven 1
|
||||
mkdir -p $REPODIR/${groupId}/jars
|
||||
cp -i ${artifactId}-${version}.jar $REPODIR/${groupId}/jars
|
||||
fi
|
||||
|
||||
cp -i ${artifactId}-${version}.jar ${m2dir}
|
||||
if [ -f ${m2dir}/${artifactId}-${version}.jar ]
|
||||
then
|
||||
md5sum ${m2dir}/${artifactId}-${version}.jar > ${m2dir}/${artifactId}-${version}.jar.md5
|
||||
sha1sum ${m2dir}/${artifactId}-${version}.jar > ${m2dir}/${artifactId}-${version}.jar.sha1
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ -f ${artifactId}-${version}-sources.jar ]
|
||||
then
|
||||
echo "Deploying Java sources ..."
|
||||
#mkdir -p $REPODIR/${groupId}/java-sources
|
||||
#cp -i ${artifactId}-${version}-sources.jar $REPODIR/${groupId}/java-sources
|
||||
cp -i ${artifactId}-${version}-sources.jar ${m2dir}
|
||||
md5sum ${m2dir}/${artifactId}-${version}-sources.jar > ${m2dir}/${artifactId}-${version}-sources.jar.md5
|
||||
sha1sum ${m2dir}/${artifactId}-${version}-sources.jar > ${m2dir}/${artifactId}-${version}-sources.jar.sha1
|
||||
else
|
||||
echo "No Java sources available in upload bundle, skipping ..."
|
||||
fi
|
||||
|
||||
if [ -f ${artifactId}-${version}-javadoc.jar ]
|
||||
then
|
||||
echo "Deploying Javadocs ..."
|
||||
#mkdir -p $REPODIR/${groupId}/javadoc
|
||||
#cp -i ${artifactId}-${version}-javadoc.jar $REPODIR/${groupId}/javadoc
|
||||
cp -i ${artifactId}-${version}-javadoc.jar ${m2dir}
|
||||
md5sum ${m2dir}/${artifactId}-${version}-javadoc.jar > ${m2dir}/${artifactId}-${version}-javadoc.jar.md5
|
||||
sha1sum ${m2dir}/${artifactId}-${version}-javadoc.jar > ${m2dir}/${artifactId}-${version}-javadoc.jar.sha1
|
||||
else
|
||||
echo "No Javadocs available in upload bundle, skipping ..."
|
||||
fi
|
||||
|
||||
)
|
|
@ -1,22 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
POM=bundle.tmp/project.xml
|
||||
|
||||
maven2=`cat ${POM} | grep '<modelVersion>' `
|
||||
|
||||
echo ${maven2}
|
||||
if [ ! -z "${maven2}" ]
|
||||
then
|
||||
echo " ========= MAVEN 2 ========= "
|
||||
fi
|
||||
|
||||
POM=bundle.tmp/pom.xml
|
||||
|
||||
maven2=`cat ${POM} | grep '<modelVersion>' `
|
||||
|
||||
echo ${maven2}
|
||||
if [ ! -z "${maven2}" ]
|
||||
then
|
||||
echo " ========= MAVEN 2 ========= "
|
||||
fi
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
# Cron jobs for the maven repository
|
||||
MAILTO=repository@maven.org
|
||||
0 */4 * * * cd $HOME/bin; ./kill_long_runners.sh rsync 3 && ./synchronize.sh
|
||||
0 0 * * * cd $HOME/reports; ./run.sh
|
|
@ -1,7 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Thu Nov 16 06:55:11 EST 2006
|
||||
# A little script which gets rid of *.plugin files that were created by Archiva by mistake. We
|
||||
# don't want to convert Maven 1.x plugins to Maven 2.x plugins as they won't even run. Bad Jelly, bad.
|
||||
|
||||
find . -name '*.plugin' -exec rm -f {} \;
|
|
@ -1,2 +0,0 @@
|
|||
These are little fixes that are one offs that need to be run to correct
|
||||
problems with faulty conversions or syncing errors.
|
|
@ -1,22 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
##
|
||||
##Usage: <scriptname> <process name> <timeout in hours>
|
||||
##
|
||||
|
||||
|
||||
ps -eo comm,etime,pid |
|
||||
grep $1|
|
||||
awk -v TIMEOUT=4 '
|
||||
{
|
||||
if($2~/-/){
|
||||
system("kill -9 "$3);
|
||||
}
|
||||
else{
|
||||
tl=split($2, tm, ":");
|
||||
print tl;
|
||||
if(tl==3 && tm[1]>TIMEOUT){
|
||||
system("kill -9 "$3);
|
||||
}
|
||||
}
|
||||
}'
|
Binary file not shown.
|
@ -1,3 +0,0 @@
|
|||
sourceRepositoryPath=/home/maven/repository-staging/to-ibiblio/maven
|
||||
targetRepositoryPath=/home/maven/repository-staging/to-ibiblio/maven2-converted-from-maven1
|
||||
blacklistedPatterns=**/*.pom,**/activation/**,**/javamail/**,**/jaxm/**,**/jaxp/**,**/jaxrpc/**,**/jca/**,**/jce/**,**/jdbc/**,**/jdo/**,**/jms/**,**/jndi/**,**/saaj/**
|
|
@ -1,21 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
syncProperties=$1
|
||||
|
||||
. $syncProperties
|
||||
|
||||
$JAVA -jar archiva-cli-1.0-SNAPSHOT-cli.jar -c $CONVERSION_PROPERTIES
|
||||
|
||||
dir=/home/maven/repository-staging/to-ibiblio
|
||||
src=$dir/maven2-converted-from-maven1
|
||||
dst=$dir/maven2
|
||||
log=$SYNC_REPORTS/last-changes.log
|
||||
|
||||
rsync --ignore-existing -rvpl $src/ $dst/ > $log
|
||||
|
||||
for f in `cat $log | grep maven-metadata.xml$` ; do
|
||||
md5sum $dst/$f > $dst/$f.md5;
|
||||
sha1sum $dst/$f > $dst/$f.sha1;
|
||||
md5sum $src/$f > $src/$f.md5;
|
||||
sha1sum $src/$f > $src/$f.sha1;
|
||||
done
|
|
@ -1,13 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
JARS=`find $M2_REPO -iname "*.jar" | wc -l`
|
||||
POMS=`find $M2_REPO -iname "*.pom" | wc -l`
|
||||
BINJARS=`find $M2_REPO -iname "*.jar" ! -iname "*-sources.jar" ! -iname "*-javadoc.jar" | wc -l`
|
||||
SOURCES=`find $M2_REPO -iname "*-sources.jar" | wc -l`
|
||||
JAVADOCS=`find $M2_REPO -iname "*-javadoc.jar" | wc -l`
|
||||
|
||||
echo total jars: $JARS
|
||||
echo poms: $POMS
|
||||
echo binary jars: $BINJARS
|
||||
echo sources: $SOURCES
|
||||
echo javadocs: $JAVADOCS
|
|
@ -1,9 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
[ "$1" = "" ] && echo && echo "You must pass in the synchronize.properties file!" && echo && exit
|
||||
|
||||
. $1
|
||||
|
||||
echo ">>>>>>>>>>>>>>>>>> Syncing Maven 2.x repository to cica.es"
|
||||
|
||||
rsync -e ssh --delete --max-delete=10 -v -riplt $MAVEN2_REPO/ $CICA_USERNAME@$CICA_SYNC_HOST:$M2_CICA_SYNC_DIR
|
|
@ -1,14 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
[ "$1" = "" ] && echo && echo "You must pass in the synchronize.properties file!" && echo && exit
|
||||
|
||||
. $1
|
||||
|
||||
echo ">>>>>>>>>>>>>>>>>> Syncing Maven 2.x repository to Ibiblio"
|
||||
|
||||
rsync -e ssh --delete --max-delete=10 -v -riplt $MAVEN2_REPO/ $IBIBLIO_SYNC_HOST:$M2_IBIBLIO_SYNC_DIR
|
||||
|
||||
echo ">>>>>>>>>>>>>>>>>> Syncing Maven 1.x plugins to Ibiblio"
|
||||
|
||||
# M1 Sync only for plugins ...
|
||||
rsync -e ssh --delete --max-delete=10 -v -riplt $MAVEN1_REPO/ $IBIBLIO_SYNC_HOST:$M1_IBIBLIO_SYNC_DIR
|
|
@ -1,18 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
[ "$1" = "" ] && echo && echo "You must pass in the synchronize.properties file!" && echo && exit
|
||||
|
||||
. $1
|
||||
|
||||
# ------------------------------------------------------------------------
|
||||
# Copy the mod_rewrite rules to the Maven 1.x repository
|
||||
# ------------------------------------------------------------------------
|
||||
|
||||
[ "$MODE" = "batch" ] && echo && echo "Press any key to copy the m1 to m2 rewrite rules, or hit ^C to quit." && echo
|
||||
|
||||
echo "Copying rewrite rules into place"
|
||||
|
||||
cp $M1_M2_REWRITE_RULES $MAVEN1_REPO/.htaccess
|
||||
|
||||
scp $M1_M2_REWRITE_RULES $IBIBLIO_SYNC_HOST:$M1_IBIBLIO_SYNC_DIR/.htaccess
|
||||
|
|
@ -1,47 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
export CENTRAL_HOST=maven01.managed.contegix.com
|
||||
export TOOLS_BASE=$HOME/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 CONVERSION_PROPERTIES=$REPOCLEAN/conversion.properties
|
||||
export M1_M2_REWRITE_RULES=$SYNC_TOOLS/m1-m2-mod-rewrite-rules.txt
|
||||
export SYNC_REPORTS=$HOME/repository-staging/to-ibiblio/reports/sync
|
||||
export JAVA_HOME=/opt/java/sdk/current
|
||||
export JAVA_CMD=$JAVA_HOME/bin/java
|
||||
export JAVA_OPTS="-Xms32m -Xmx2048m"
|
||||
export JAVA="$JAVA_CMD $JAVA_OPTS"
|
||||
|
||||
export STAGING_DIR=$HOME/repository-staging/to-ibiblio
|
||||
export MAVEN1_REPO=$STAGING_DIR/maven
|
||||
export MAVEN2_REPO=$STAGING_DIR/maven2
|
||||
|
||||
|
||||
# ibiblio.org
|
||||
export IBIBLIO_SYNC_HOST=login.ibiblio.org
|
||||
export M1_IBIBLIO_SYNC_DIR=/public/ftp/pub/packages/maven
|
||||
export M2_IBIBLIO_SYNC_DIR=/export/mirrors/maven2
|
||||
|
||||
# cica.es
|
||||
export CICA_USERNAME=m-maven
|
||||
export CICA_SYNC_HOST=ftp.cica.es
|
||||
export M2_CICA_SYNC_DIR=/home/m-maven/maven2
|
|
@ -1,124 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
# ------------------------------------------------------------------------
|
||||
# 1. Sync Maven 1.x repositories to central
|
||||
# 2. Convert Maven 1.x repository to Maven 2.x repository
|
||||
# 3. Manual fixes
|
||||
# 4. Sync Maven 2.x repositories to central
|
||||
# 5. Sync the Maven 2.x repository to Cica and Ibiblio
|
||||
# 6. Copy the mod_rewrite rules to the Maven 1.x repository @ Ibiblio
|
||||
# ------------------------------------------------------------------------
|
||||
|
||||
PID=$$
|
||||
RUNNING=`ps -ef | grep synchronize.sh | grep -v 'sh -c' | grep -v grep | grep -v $PID`
|
||||
echo $RUNNING
|
||||
if [ ! -z "$RUNNING" ]; then
|
||||
echo Sync already running... exiting
|
||||
echo $RUNNING
|
||||
exit 1
|
||||
fi
|
||||
|
||||
dir=`pwd`
|
||||
syncProperties=$dir/synchronize.properties
|
||||
source $syncProperties
|
||||
|
||||
((
|
||||
|
||||
MODE=$1
|
||||
|
||||
echo "Using the following settings:"
|
||||
echo "CENTRAL_HOST = $CENTRAL_HOST"
|
||||
echo "TOOLS_BASE = $TOOLS_BASE"
|
||||
echo "SYNC_TOOLS = $SYNC_TOOLS"
|
||||
echo "SYNCOPATE = $SYNCOPATE"
|
||||
echo "REPOCLEAN = $REPOCLEAN"
|
||||
echo "M1_M2_REWRITE_RULES = $M1_M2_REWRITE_RULES"
|
||||
echo "SYNC_REPORTS = $SYNC_REPORTS"
|
||||
echo "JAVA = $JAVA"
|
||||
|
||||
[ "$MODE" = "batch" ] && echo && echo "Press any key to continue, or hit ^C to quit." && echo
|
||||
|
||||
# ------------------------------------------------------------------------
|
||||
# Syncopate: Sync the Maven 1.x repositories
|
||||
# ------------------------------------------------------------------------
|
||||
|
||||
[ "$MODE" = "batch" ] && echo && echo "Press any key to run syncopate, or hit ^C to quit." && echo
|
||||
|
||||
echo ">>>>>>>>>>>>>>>>>> Running Syncopate"
|
||||
|
||||
(
|
||||
cd $SYNCOPATE
|
||||
./sync
|
||||
retval=$?; if [ $retval != 0 ]; then exit $retval; fi
|
||||
)
|
||||
retval=$?; if [ $retval != 0 ]; then exit $retval; fi
|
||||
|
||||
# ------------------------------------------------------------------------
|
||||
# Repoclean: converting the Maven 1.x repository to Maven 2.x
|
||||
# ------------------------------------------------------------------------
|
||||
|
||||
[ "$MODE" = "batch" ] && echo && echo "Press any key to run the m1 to m2 conversion, or hit ^C to quit." && echo
|
||||
|
||||
echo ">>>>>>>>>>>>>>>>>> Running Maven 1.x to Maven 2.x conversion ..."
|
||||
|
||||
(
|
||||
cd $REPOCLEAN
|
||||
./convert-m1-m2.sh $syncProperties
|
||||
retval=$?; if [ $retval != 0 ]; then exit $retval; fi
|
||||
)
|
||||
retval=$?; if [ $retval != 0 ]; then exit $retval; fi
|
||||
|
||||
# ------------------------------------------------------------------------
|
||||
# Manual fixes
|
||||
# ------------------------------------------------------------------------
|
||||
|
||||
[ "$MODE" = "batch" ] && echo && echo "Press any key to run manual fixes, or hit ^C to quit." && echo
|
||||
|
||||
echo ">>>>>>>>>>>>>>>>>> Removing commons-logging 1.1-dev"
|
||||
|
||||
# hack prevent commons-logging-1.1-dev
|
||||
CL=$MAVEN2_REPO/commons-logging/commons-logging
|
||||
rm -rf $CL/1.1-dev
|
||||
grep -v 1.1-dev $CL/maven-metadata.xml > $CL/maven-metadata.xml.tmp
|
||||
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
|
||||
)
|
||||
|
||||
# ------------------------------------------------------------------------
|
||||
# Cica.es synchronization: sync the central repository to Cica.es
|
||||
# ------------------------------------------------------------------------
|
||||
|
||||
[ "$MODE" = "batch" ] && echo && echo "Press any key to run the sync to Cica, or hit ^C to quit." && echo
|
||||
|
||||
./synchronize-central-to-cica.sh $syncProperties
|
||||
retval=$?; if [ $retval != 0 ]; then exit $retval; fi
|
||||
retval=$?; if [ $retval != 0 ]; then exit $retval; fi
|
||||
|
||||
# ------------------------------------------------------------------------
|
||||
# Ibiblio synchronization: sync the central repository to Ibiblio
|
||||
# ------------------------------------------------------------------------
|
||||
|
||||
[ "$MODE" = "batch" ] && echo && echo "Press any key to run the sync to Ibiblio, or hit ^C to quit." && echo
|
||||
|
||||
./synchronize-central-to-ibiblio.sh $syncProperties
|
||||
retval=$?; if [ $retval != 0 ]; then exit $retval; fi
|
||||
retval=$?; if [ $retval != 0 ]; then exit $retval; fi
|
||||
|
||||
# ------------------------------------------------------------------------
|
||||
# Copy the mod_rewrite rules to the Maven 1.x repository
|
||||
# ------------------------------------------------------------------------
|
||||
|
||||
./synchronize-rewrite-rules-to-ibiblio.sh $syncProperties
|
||||
|
||||
) | tee $SYNC_REPORTS/last-sync-results.txt ) 2>&1
|
|
@ -1,33 +0,0 @@
|
|||
## IF YOU MODIFY THIS FILE, MAKE SURE IT GETS UPDATED IN SVN
|
||||
|
||||
## MAVEN 1.0.2 doesn't deal with redirects. Avoid them
|
||||
|
||||
RewriteEngine on
|
||||
|
||||
RewriteBase /maven
|
||||
|
||||
RewriteRule org.codehaus.modello/jars/modello-plugin-dom4j-(.+).jar(.*)$ /maven2/org/codehaus/modello/modello-plugin-dom4j/$1/modello-plugin-dom4j-$1.jar$2 [L]
|
||||
RewriteRule org.codehaus.modello/jars/modello-plugin-xpp3-(.+).jar(.*)$ /maven2/org/codehaus/modello/modello-plugin-xpp3/$1/modello-plugin-xpp3-$1.jar$2 [L]
|
||||
RewriteRule maven/jars/dom4j-(.+).jar(.*)$ /maven2/maven/dom4j/$1/dom4j-$1.jar$2 [L]
|
||||
RewriteRule dom4j/jars/dom4j-(.+).jar(.*)$ /maven2/dom4j/dom4j/$1/dom4j-$1.jar$2 [L]
|
||||
RewriteRule jaxen/jars/jaxen-1.0-FCS-full.jar$ /maven2/jaxen/jaxen/1.0-FCS/jaxen-1.0-FCS-full.jar [L]
|
||||
RewriteRule cactus/jars/cactus-([0-9]+)-(.+).jar$ /maven2/cactus/cactus/$1-$2/cactus-$1-$2.jar [L]
|
||||
RewriteRule commons-logging/jars/commons-logging-1.1-dev.jar /maven2/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.jar [L]
|
||||
RewriteRule strutstestcase/jars/strutstestcase-(.+).jar /maven2/strutstestcase/strutstestcase/$1/strutstestcase-$1.jar [L]
|
||||
RewriteRule stax-utils/jars/stax-utils-snapshot-(.+).jar /maven2/stax-utils/stax-utils/snapshot-$1/stax-utils-snapshot-$1.jar [L]
|
||||
RewriteRule batik/jars/batik-1.5-fop-(.+).jar /maven2/batik/batik-1.5-fop/$1/batik-1.5-fop-$1.jar [L]
|
||||
RewriteRule poi/jars/poi-(.+)-final-(.+).jar /maven2/poi/poi-$1-final/$2/poi-$1-final-$2.jar [L]
|
||||
RewriteRule jython/jars/jython-20020827-no-oro.jar /maven2/jython/jython/20020827/jython-20020827-no-oro.jar [L]
|
||||
RewriteRule xpp3/jars/xpp3-1.1.3.4-(.+?).jar /maven2/xpp3/xpp3/1.1.3.4/xpp3-1.1.3.4-$1.jar [L]
|
||||
|
||||
# rewrite // to /
|
||||
RewriteRule ^/(.*)$ /maven/$1
|
||||
# rewrite mapped artifact
|
||||
# rewrite artifact
|
||||
# don't translate plugins - they aren't copied in the reposync
|
||||
RewriteRule ^([^/]+)/(jar|pom|config|distribution|java-source|dist|dtd|ear|ejb|license|licence|nbm|rar|sar|tld|war|xml|zip)s/([^0-9]+)-([0-9].+)\.([^0-9]+)(\.md5|\.sha1){0,1}$ r/$1/$3/$4/$3-$4.$5$6 [PT]
|
||||
RewriteRule ^([^/]+)/(jar|pom|config|distribution|java-source|dist|dtd|ear|ejb|license|licence|nbm|rar|sar|tld|war|xml|zip)s/(.+)-([0-9].+)\.([^0-9]+)(\.md5|\.sha1){0,1}$ r/$1/$3/$4/$3-$4.$5$6 [PT]
|
||||
# rewrite dotted groups
|
||||
RewriteRule ^r/([^/]+)\.(.*)$ r/$1/$2 [PT] [N]
|
||||
# final redirect
|
||||
RewriteRule ^r/(.*)$ /maven2/$1
|
|
@ -1,7 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
CONTACTS="Eugene Kuleshov <eu@javatx.org>"
|
||||
MODE=rsync_ssh
|
||||
|
||||
FROM=maven@forge.objectweb.org:../../groups/maven/htdocs/maven2
|
||||
GROUP_DIR=asm/
|
|
@ -1,9 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
CONTACTS="Simon Brandhof <simon.brandhof@hortis.ch>,Cedric Munger <cedric.munger@hortis.ch>"
|
||||
MODE=rsync
|
||||
|
||||
FROM=rsync://maven2.hortis.ch/releases
|
||||
GROUP_DIR=ch/hortis/sonar/
|
||||
|
||||
NO_SSH=true
|
|
@ -1,9 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
CONTACTS="Ceki Gulcu <ceki@qos.ch>,Sebastien Pennec <sebastien@qos.ch>"
|
||||
MODE=rsync
|
||||
|
||||
FROM=rsync://pixie.qos.ch/mvnrepo
|
||||
GROUP_DIR=ch/qos/logback/
|
||||
|
||||
NO_SSH=true
|
|
@ -1,12 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
CONTACTS=""
|
||||
MODE=rsync_ssh
|
||||
|
||||
FROM=mavensync@repository.codehaus.org:/repository
|
||||
GROUP_DIR=
|
||||
SSH_OPTS="-i $HOME/.ssh/new-id_dsa"
|
||||
#RSYNC_OPTS="-L"
|
||||
|
||||
## NOTE that codehaus only honours some rsync options. Others may be summarily discarded and/or cause the rsync to break - check
|
||||
## with them if changing them
|
|
@ -1,7 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
CONTACTS="Daniel brolund <daniel.brolund@agical.com>"
|
||||
MODE=rsync_ssh
|
||||
|
||||
FROM=mavensync@shell.sourceforge.net:/home/groups/r/rm/rmock/htdocs/repository
|
||||
GROUP_DIR=com/agical/rmock/
|
|
@ -1,7 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
CONTACTS="Wilfred Springer <wilfred@agilejava.com>"
|
||||
MODE=rsync_ssh
|
||||
|
||||
FROM=mavensync@shell.sourceforge.net:/home/groups/b/bl/blammo/htdocs/repository
|
||||
GROUP_DIR=com/agilejava/blammo/
|
|
@ -1,7 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
CONTACT="info@cedarsoft.de"
|
||||
MODE=rsync_ssh
|
||||
|
||||
FROM=mavensync@maven.cedarsoft.com:/home/maven/public/release
|
||||
GROUP_DIR=com/cedarsoft/
|
|
@ -1,7 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
CONTACTS="Thomas Mueller <thomas.tom.mueller@gmail.com>"
|
||||
MODE=rsync_ssh
|
||||
|
||||
FROM=mavensync@shell.sourceforge.net:/home/groups/h/hs/hsql/htdocs/m2-repo
|
||||
GROUP_DIR=com/h2database/
|
|
@ -1,7 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
CONTACTS="Adam Altemus <aaltemus@mobilvox.com>"
|
||||
MODE=rsync_ssh
|
||||
|
||||
FROM=mavensync@shell.sourceforge.net:/home/groups/m/ma/maven-js-plugin/htdocs/m2repo
|
||||
GROUP_DIR=com/mobilvox/ossi/
|
|
@ -1,7 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
CONTACTS="Patrick Lightbody <plightbo@gmail.com>"
|
||||
MODE=rsync_ssh
|
||||
|
||||
FROM=maven2.opensymphony.com:/opt/repository/maven2
|
||||
GROUP_DIR=com/opensymphony/
|
|
@ -1,9 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
CONTACT="Vlad Skarzhevskyy <skarzhevskyy@gmail.com>"
|
||||
MODE=rsync
|
||||
|
||||
FROM=mavensync@pyx4me.com::maven2-release
|
||||
GROUP_DIR=com/pyx4j/
|
||||
|
||||
NO_SSH=true
|
|
@ -1,9 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
CONTACT="Vlad Skarzhevskyy <skarzhevskyy@gmail.com>"
|
||||
MODE=rsync
|
||||
|
||||
FROM=mavensync@pyx4me.com::maven2-release
|
||||
GROUP_DIR=com/pyx4me/
|
||||
|
||||
NO_SSH=true
|
|
@ -1,7 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
CONTACTS="Jochen Wiedmann <jochen@apache.org>"
|
||||
MODE=rsync_ssh
|
||||
|
||||
FROM=jvanzyl@people.apache.org:/www/people.apache.org/repo/m2-ibiblio-rsync-repository
|
||||
GROUP_DIR=commons-fileupload/
|
|
@ -1,7 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
CONTACTS="Joerg Schaible <joerg.schaible@gmx.de>"
|
||||
MODE=rsync_ssh
|
||||
|
||||
FROM=mavensync@shell.berlios.de:/home/groups/jsunit/htdocs/maven2/repo
|
||||
GROUP_DIR=de/berlios/jsunit/
|
|
@ -1,7 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
CONTACTS="fabrizio giustina <fgiust@gmail.com>"
|
||||
MODE=rsync_ssh
|
||||
|
||||
FROM=mavensync@shell.sourceforge.net:/home/groups/d/di/displaytag/htdocs/m2repo
|
||||
GROUP_DIR=displaytag/
|
|
@ -1,7 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
CONTACT="info@cedarsoft.de"
|
||||
MODE=rsync_ssh
|
||||
|
||||
FROM=mavensync@maven.cedarsoft.eu:/home/maven/public/release
|
||||
GROUP_DIR=eu/cedarsoft/
|
|
@ -1,7 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
CONTACTS="David BERNARD <dwayneb@free.fr>"
|
||||
MODE=rsync_ssh
|
||||
|
||||
FROM=mavensync@gforge.inria.fr:/home/groups/maven-repo/htdocs/releases
|
||||
GROUP_DIR=fr/inria/gforge/
|
|
@ -1,7 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
CONTACT="Mark Matthews <mark@mysql.com>"
|
||||
MODE=rsync
|
||||
|
||||
FROM=maven@rsync.mysql.com:/web/sites/live/maven/
|
||||
GROUP_DIR=mysql/
|
|
@ -1,17 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
CONTACTS="Nathan Hamblen <nathan@technically.us>"
|
||||
MODE=rsync_ssh
|
||||
FROM=maven@databinder.net:/var/dbwww/maven
|
||||
GROUP_DIR=net/databinder/
|
||||
|
||||
#[info]
|
||||
#id = net.databinder
|
||||
#name = Databinder
|
||||
#contact = nathan@technically.us
|
||||
|
||||
#[host]
|
||||
#address=databinder.net
|
||||
#directory=/var/dbwww/maven
|
||||
#rsyncUser=maven
|
||||
|
|
@ -1,8 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
CONTACTS="Christian Gruber <cgruber@israfil.net>"
|
||||
MODE=rsync_ssh
|
||||
SSH_OPTS="-l ibiblio"
|
||||
|
||||
FROM=ibiblio@www.israfil.net:maven2
|
||||
GROUP_DIR=net/israfil/
|
|
@ -1,7 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
CONTACTS="Tomasz Pik <pikus@ais.pl>"
|
||||
MODE=rsync_ssh
|
||||
|
||||
FROM=mavensync@shell.sourceforge.net:/home/groups/a/ai/aislib/htdocs/repos/sync
|
||||
GROUP_DIR=net/sf/aislib/
|
|
@ -1,7 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
CONTACTS="David BERNARD <dwayneb@free.fr>"
|
||||
MODE=rsync_ssh
|
||||
|
||||
FROM=mavensync@shell.sourceforge.net:/home/groups/a/al/alchim/htdocs/download/releases
|
||||
GROUP_DIR=net/sf/alchim/
|
|
@ -1,7 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
CONTACTS="Hervé BOUTEMY <herve.boutemy@free.fr>"
|
||||
MODE=rsync_ssh
|
||||
|
||||
FROM=mavensync@shell.sourceforge.net:/home/groups/d/dt/dtddoc/htdocs/m2repo/releases
|
||||
GROUP_DIR=net/sf/dtddoc/
|
|
@ -1,7 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
CONTACTS="Greg Luck <gluck@gregluck.com>"
|
||||
MODE=rsync_ssh
|
||||
|
||||
FROM=mavensync@shell.sourceforge.net:/home/groups/e/eh/ehcache/htdocs/repository
|
||||
GROUP_DIR=net/sf/ehcache/
|
|
@ -1,7 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
CONTACTS="Charles GAY <diabolo512@users.sourceforge.net>"
|
||||
MODE=rsync_ssh
|
||||
|
||||
FROM=mavensync@shell.sourceforge.net:/home/groups/j/jg/jguard/htdocs/repository
|
||||
GROUP_DIR=net/sf/jguard/
|
|
@ -1,7 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
CONTACTS="Greg Ritchie <gregr20@gmail.com>"
|
||||
MODE=rsync_ssh
|
||||
|
||||
FROM=mavensync@shell.sourceforge.net:/home/groups/j/jl/jlynx/htdocs/repos
|
||||
GROUP_DIR=net/sf/jlynx/
|
|
@ -1,9 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
CONTACT="Vlad Skarzhevskyy <skarzhevskyy@gmail.com>"
|
||||
MODE=rsync
|
||||
|
||||
FROM=mavensync@pyx4me.com::maven2-release
|
||||
GROUP_DIR=net/sf/jour/
|
||||
|
||||
NO_SSH=true
|
|
@ -1,7 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
CONTACTS="Andres Almiray <aalmiray@users.sourceforge.net>"
|
||||
MODE=rsync_ssh
|
||||
|
||||
FROM=mavensync@shell.sourceforge.net:/home/groups/j/js/json-lib/htdocs/m2/repo/release
|
||||
GROUP_DIR=net/sf/json-lib/
|
|
@ -1,7 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
CONTACTS="Lasse Koskela <lasse.koskela@gmail.com>"
|
||||
MODE=rsync_ssh
|
||||
|
||||
FROM=mavensync@shell.sourceforge.net:/home/groups/j/js/jsptest/htdocs/maven2
|
||||
GROUP_DIR=net/sf/jsptest/
|
|
@ -1,7 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
CONTACTS="Leonid Vysochyn <leonid.vysochyn@gmail.com>"
|
||||
MODE=rsync_ssh
|
||||
|
||||
FROM=mavensync@shell.sourceforge.net:/home/groups/j/jx/jxls/htdocs/repository/releases
|
||||
GROUP_DIR=net/sf/jxls/
|
|
@ -1,8 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
CONTACT="tom.cort@state.vt.us"
|
||||
MODE=rsync_ssh
|
||||
|
||||
FROM=mavensync@shell.sourceforge.net:/home/groups/l/lo/locale4j/maven/upload-repo
|
||||
GROUP_DIR=net/sf/locale4j/
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
CONTACT="twenstar@users.sourceforge.net"
|
||||
MODE=rsync_ssh
|
||||
|
||||
FROM=mavensync@shell.sourceforge.net:/home/groups/m/ma/mapasuta/maven/upload-repo
|
||||
GROUP_DIR=net/sf/mapasuta/
|
|
@ -1,7 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
CONTACT="tom.cort@state.vt.us"
|
||||
MODE=rsync_ssh
|
||||
|
||||
FROM=mavensync@shell.sourceforge.net:/home/groups/m/ma/maven-har/maven/upload-repo
|
||||
GROUP_DIR=net/sf/maven-har/
|
|
@ -1,7 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
CONTACT="tom.cort@state.vt.us"
|
||||
MODE=rsync_ssh
|
||||
|
||||
FROM=mavensync@shell.sourceforge.net:/home/groups/m/ma/maven-sar/maven/upload-repo
|
||||
GROUP_DIR=net/sf/maven-sar/
|
|
@ -1,7 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
CONTACTS="Doug Culnane <doug@culnane.net>"
|
||||
MODE=rsync_ssh
|
||||
|
||||
FROM=mavensync@shell.sourceforge.net:/home/groups/s/st/stat-scm/htdocs/maven2
|
||||
GROUP_DIR=net/sf/stat-scm/
|
|
@ -1,7 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
CONTACTS="Igor Drobiazko <igor.drobiazko@gmail.com>"
|
||||
MODE=rsync_ssh
|
||||
|
||||
FROM=mavensync@shell.sourceforge.net:/home/groups/t/ta/tacos/htdocs/repository
|
||||
GROUP_DIR=net/sf/tacos/
|
|
@ -1,7 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
CONTACTS="Antonio Talarico <atalarico@users.sourceforge.net >"
|
||||
MODE=rsync_ssh
|
||||
|
||||
FROM=mavensync@shell.sourceforge.net:/home/groups/s/sm/smartconfig/htdocs/releases
|
||||
GROUP_DIR=net/smartlab/config/
|
|
@ -1,7 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
CONTACTS="Antonio Talarico <atalarico@users.sourceforge.net>"
|
||||
MODE=rsync_ssh
|
||||
|
||||
FROM=mavensync@shell.sourceforge.net:/home/groups/s/sm/smartweb/htdocs/releases
|
||||
GROUP_DIR=net/smartlab/web/
|
|
@ -1,7 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
CONTACTS="max berger <max@berger.name>"
|
||||
MODE=rsync_ssh
|
||||
|
||||
FROM=mavensync@shell.sourceforge.net:/home/groups/j/je/jeuclid/htdocs/m2-release
|
||||
GROUP_DIR=net/sourceforge/jeuclid/
|
|
@ -1,7 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
CONTACTS="Julien HENRY <henryju@yahoo.fr>"
|
||||
MODE=rsync_ssh
|
||||
|
||||
FROM=mavensync@shell.sourceforge.net:/home/groups/j/jw/jwebunit/htdocs/m2-repo
|
||||
GROUP_DIR=net/sourceforge/jwebunit/
|
|
@ -1,7 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
CONTACTS="fabrizio giustina <fgiust@gmail.com>"
|
||||
MODE=rsync_ssh
|
||||
|
||||
FROM=mavensync@shell.sourceforge.net:/home/groups/m/ma/maven-taglib/htdocs/m2repo
|
||||
GROUP_DIR=net/sourceforge/maven-taglib/
|
|
@ -1,7 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
CONTACTS="fabrizio giustina <fgiust@gmail.com>"
|
||||
MODE=rsync_ssh
|
||||
|
||||
FROM=mavensync@shell.sourceforge.net:/home/groups/o/op/openutils/htdocs/repository/releases
|
||||
GROUP_DIR=net/sourceforge/openutils/
|
|
@ -1,7 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
CONTACTS="Choi Beom Kyun <madvirus2@gmail.com>"
|
||||
MODE=rsync_ssh
|
||||
|
||||
FROM=maven@www.tleproject.net:~/mvnrepo
|
||||
GROUP_DIR=net/tleproject/
|
|
@ -1,7 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
CONTACTS="Patrick Lightbody <plightbo@gmail.com>"
|
||||
MODE=rsync_ssh
|
||||
|
||||
FROM=maven2.opensymphony.com:/opt/repository/maven2
|
||||
GROUP_DIR=ognl/
|
|
@ -1,7 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
CONTACTS="Patrick Lightbody <plightbo@gmail.com>"
|
||||
MODE=rsync_ssh
|
||||
|
||||
FROM=maven2.opensymphony.com:/opt/repository/maven2
|
||||
GROUP_DIR=opensymphony/
|
|
@ -1,7 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
CONTACTS="Carlos Sanchez <carlos@apache.org>"
|
||||
MODE=rsync_ssh
|
||||
|
||||
FROM=mavensync@shell.sourceforge.net:/home/groups/a/ac/acegisecurity/htdocs/repository/releases
|
||||
GROUP_DIR=org/acegisecurity/
|
|
@ -1,7 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
CONTACTS=""
|
||||
MODE=rsync_ssh
|
||||
|
||||
FROM=jvanzyl@people.apache.org:/www/people.apache.org/repo/m2-ibiblio-rsync-repository
|
||||
GROUP_DIR=org/apache/
|
|
@ -1,7 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
CONTACTS="mraible@dev.java.net"
|
||||
MODE=rsync_ssh
|
||||
|
||||
FROM=mavensync@static.appfuse.org:/var/www/appfuse-releases
|
||||
GROUP_DIR=org/appfuse/
|
|
@ -1,7 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
CONTACTS="DSpace Developers <dspace-devel@lists.sourceforge.net>"
|
||||
MODE=rsync_ssh
|
||||
|
||||
FROM=mavensync@shell.sourceforge.net:/home/groups/d/ds/dspace/htdocs/repository/release
|
||||
GROUP_DIR=org/dspace/
|
|
@ -1,9 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
CONTACTS="Christian Schulte <cs@jdtaus.org>, jDTAUS Support <support@jdtaus.org>"
|
||||
MODE=rsync
|
||||
|
||||
FROM=rsync://repository.jdtaus.org/repository
|
||||
GROUP_DIR=org/jdtaus/
|
||||
|
||||
NO_SSH=true
|
|
@ -1,7 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
CONTACTS="Misha Gridnev <mishalg@users.sourceforge.net>"
|
||||
MODE=rsync_ssh
|
||||
|
||||
FROM=mavensync@shell.sf.net:/home/groups/j/jf/jframework/repository
|
||||
GROUP_DIR=org/jframework/
|
|
@ -1,7 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
CONTACTS="Jerome Bernard <jerome.bernard@gmail.com>"
|
||||
MODE=rsync_ssh
|
||||
|
||||
FROM=mavensync@shell.sourceforge.net:/home/groups/j/ji/jibx/htdocs/maven2
|
||||
GROUP_DIR=org/jibx/
|
|
@ -1,7 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
CONTACTS="Toby Ho <airportyh@users.sourceforge.net>"
|
||||
MODE=rsync_ssh
|
||||
|
||||
FROM=mavensync@shell.sourceforge.net:/home/groups/j/jy/jyaml/htdocs/m2-repo
|
||||
GROUP_DIR=org/jyaml/
|
|
@ -1,9 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
CONTACT="Vlad Skarzhevskyy <skarzhevskyy@gmail.com>"
|
||||
MODE=rsync
|
||||
|
||||
FROM=mavensync@pyx4me.com::maven2-release
|
||||
GROUP_DIR=org/microemu/
|
||||
|
||||
NO_SSH=true
|
|
@ -1,7 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
CONTACTS="xavier.moghrabi@objectweb.org"
|
||||
MODE=rsync_ssh
|
||||
|
||||
FROM=maven@forge.objectweb.org:../../groups/maven/htdocs/maven2
|
||||
GROUP_DIR=org/objectweb/
|
|
@ -1,7 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
CONTACTS="xavier.moghrabi@objectweb.org"
|
||||
MODE=rsync_ssh
|
||||
|
||||
FROM=maven@forge.objectweb.org:../../groups/maven/htdocs/maven2
|
||||
GROUP_DIR=org/ow2/
|
|
@ -1,7 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
CONTACTS="Lucio Benfante <lucio.benfante@jugpadova.it>"
|
||||
MODE=rsync_ssh
|
||||
|
||||
FROM=web3160@maven2.parancoe.org:/home/web/maven2.parancoe.org/repository/repo
|
||||
GROUP_DIR=org/parancoe/
|
|
@ -1,9 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
CONTACTS="Ceki Gulcu <ceki@qos.ch>"
|
||||
MODE=rsync
|
||||
|
||||
FROM=rsync://pixie.qos.ch/mvnrepo
|
||||
GROUP_DIR=org/slf4j/
|
||||
|
||||
NO_SSH=true
|
|
@ -1,10 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
CONTACTS="Ben Hale <bhale@interface21.com>"
|
||||
MODE=svn
|
||||
SVN_URL=https://springframework.svn.sourceforge.net/svnroot/springframework/repos/repo
|
||||
|
||||
FROM=/home/maven/repository-staging/to-ibiblio/maven-spring
|
||||
GROUP_DIR=org/springframework/
|
||||
|
||||
svn up $FROM/$GROUP_DIR
|
|
@ -1,10 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
CONTACTS="Ben Hale <bhale@interface21.com>"
|
||||
MODE=svn
|
||||
SVN_URL=https://springframework.svn.sourceforge.net/svnroot/springframework/repos/repo
|
||||
|
||||
FROM=/home/maven/repository-staging/to-ibiblio/maven-spring
|
||||
GROUP_DIR=org/springmodules/
|
||||
|
||||
svn up $FROM/$GROUP_DIR
|
|
@ -1,7 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
CONTACTS="Fabio Kung <fabio.kung@gmail.com>"
|
||||
MODE=rsync_ssh
|
||||
|
||||
FROM=mavensync@vraptor.org:/usr/java/webapps/vraptor.org/maven
|
||||
GROUP_DIR=org/vraptor/
|
|
@ -1,7 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
CONTACTS="Martijn Dashorst <martijn.dashorst@gmail.com>"
|
||||
MODE=rsync_ssh
|
||||
|
||||
FROM=mavensync@shell.sourceforge.net:/home/groups/w/wi/wicket/htdocs/maven2
|
||||
GROUP_DIR=wicket/
|
|
@ -1,72 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
exclusions=$HOME/bin/synchronize/syncopate/exclusions.txt
|
||||
|
||||
echo This script is very temporary. Please validate all input files in the source repository before blindly copying them in.
|
||||
echo Ensure all artifacts have a valid POM.
|
||||
echo This will be removed when the repository manager is in place.
|
||||
|
||||
echo
|
||||
|
||||
echo Options
|
||||
echo go - does the sync for real
|
||||
echo check - checks for changed files
|
||||
|
||||
echo
|
||||
|
||||
echo
|
||||
echo For a better explanation of the output flags please check --itemize-changes at rsync man page
|
||||
echo
|
||||
|
||||
if [ "$1" == "go" ]; then
|
||||
echo Doing sync for real
|
||||
else
|
||||
echo Not syncing
|
||||
RSYNC_OPTS="$RSYNC_OPTS -n"
|
||||
fi
|
||||
|
||||
BASEDIR=$HOME/repository-staging/to-ibiblio/maven2
|
||||
CHANGED_LOG=/tmp/sync-changed.log
|
||||
rm $CHANGED_LOG
|
||||
|
||||
for f in `find conf -maxdepth 1 -iname "*.sh"`
|
||||
do
|
||||
|
||||
FROM=
|
||||
GROUP_DIR=
|
||||
NO_SSH=
|
||||
SSH_OPTS=
|
||||
# to prevent empty variable
|
||||
RSYNC_SSH="-z"
|
||||
|
||||
source $f
|
||||
|
||||
if [ -z $NO_SSH ]
|
||||
then
|
||||
RSYNC_SSH="--rsh=ssh $SSH_OPTS"
|
||||
fi
|
||||
|
||||
# check for changed files
|
||||
if [ "$1" == "check" ]; then
|
||||
|
||||
rsync -n --exclude=**/maven-metadata.xml* --exclude-from=$exclusions --existing $RSYNC_OPTS -Lrtivzc "$RSYNC_SSH" $FROM/$GROUP_DIR $BASEDIR/$GROUP_DIR >> $CHANGED_LOG
|
||||
|
||||
else
|
||||
|
||||
echo "Syncing $FROM -> $GROUP_DIR"
|
||||
rsync --include=*/ --include=**/maven-metadata.xml* --exclude=* --exclude-from=$exclusions $RSYNC_OPTS -Lrtivz "$RSYNC_SSH" $FROM/$GROUP_DIR $BASEDIR/$GROUP_DIR
|
||||
rsync --exclude-from=$exclusions --ignore-existing $RSYNC_OPTS -Lrtivz "$RSYNC_SSH" $FROM/$GROUP_DIR $BASEDIR/$GROUP_DIR
|
||||
|
||||
fi
|
||||
|
||||
done
|
||||
|
||||
if [ "$1" == "check" ]; then
|
||||
echo "*******************************************************************************"
|
||||
echo "******************************* CHANGED FILES *******************************"
|
||||
echo "*******************************************************************************"
|
||||
cat $CHANGED_LOG
|
||||
echo "*******************************************************************************"
|
||||
echo "*******************************************************************************"
|
||||
echo "*******************************************************************************"
|
||||
fi
|
File diff suppressed because it is too large
Load Diff
|
@ -1,11 +0,0 @@
|
|||
[info]
|
||||
id = apache
|
||||
name = Apache Software Foundation
|
||||
#contact = repository@apache.org
|
||||
contact = carlos@apache.org
|
||||
|
||||
[host]
|
||||
mode=rsync_ssh
|
||||
address=people.apache.org
|
||||
directory=/www/people.apache.org/repo/m1-ibiblio-rsync-repository
|
||||
rsyncUser=jvanzyl
|
|
@ -1,11 +0,0 @@
|
|||
[info]
|
||||
id = codehaus
|
||||
name = Codehaus
|
||||
contact = carlos@apache.org
|
||||
|
||||
[host]
|
||||
mode=rsync_ssh
|
||||
address=repository.codehaus.org
|
||||
directory=/dist
|
||||
rsyncUser=mavensync
|
||||
identity=/home/maven/.ssh/new-id_dsa
|
|
@ -1,11 +0,0 @@
|
|||
[info]
|
||||
id = maven-plugins-sf
|
||||
name = Maven Plugins @ SourceForge
|
||||
#contact = maven-plugins-developer@lists.sourceforge.net
|
||||
contact = carlos@apache.org
|
||||
|
||||
[host]
|
||||
mode=rsync_ssh
|
||||
address=shell.sourceforge.net
|
||||
directory=/home/groups/m/ma/maven-plugins/htdocs/repository
|
||||
rsyncUser=brettporter
|
|
@ -1,9 +0,0 @@
|
|||
[info]
|
||||
id = mortbay
|
||||
name = Mortbay Consulting
|
||||
contact = gregw@mortbay.com
|
||||
|
||||
[host]
|
||||
mode=rsync_ssh
|
||||
address=jetty.mortbay.org
|
||||
directory=maven
|
|
@ -1,10 +0,0 @@
|
|||
[info]
|
||||
id = objectweb
|
||||
name = ObjectWeb
|
||||
contact = xavier.moghrabi@objectweb.org
|
||||
|
||||
[host]
|
||||
mode=rsync_ssh
|
||||
address=forge.objectweb.org
|
||||
directory=../../groups/maven/htdocs/maven1
|
||||
rsyncUser=maven
|
|
@ -1,12 +0,0 @@
|
|||
[info]
|
||||
id = opensymphony
|
||||
name = Open Symphony
|
||||
#contact = Patrick Lightbody <plightbo@gmail.com>
|
||||
# I'm monitoring this for a bit until it is just errors
|
||||
contact = brett@apache.org
|
||||
|
||||
[host]
|
||||
mode=rsync_ssh
|
||||
address=maven1.opensymphony.com
|
||||
directory=/opt/repository/maven1
|
||||
rsyncUser=maven
|
|
@ -1,11 +0,0 @@
|
|||
[info]
|
||||
id = ibiblio
|
||||
name = Ibiblio staging area
|
||||
contact = jason@maven.org
|
||||
batchDisabled = true
|
||||
|
||||
[host]
|
||||
mode=rsync_ssh
|
||||
address=beaver.codehaus.org
|
||||
directory=~/ibiblio-sync/repository
|
||||
rsyncUser=maven
|
|
@ -1,13 +0,0 @@
|
|||
[info]
|
||||
id = codehaus
|
||||
name = Codehaus
|
||||
contact = jason@maven.org
|
||||
batchDisabled = true
|
||||
|
||||
[host]
|
||||
mode=rsync_ssh
|
||||
address=beaver.codehaus.org
|
||||
#directory=~/testRepo
|
||||
directory=/dist
|
||||
rsyncUser=rsync
|
||||
repoDirectory=testRepo
|
|
@ -1,11 +0,0 @@
|
|||
.htaccess
|
||||
**/.*
|
||||
**/distributions
|
||||
**SNAPSHOT*
|
||||
**snapshot*
|
||||
**-dev.*
|
||||
**-DEV.*
|
||||
**/dist
|
||||
**-200*
|
||||
README.txt
|
||||
**/CVS
|
|
@ -1,314 +0,0 @@
|
|||
#!/usr/bin/perl
|
||||
|
||||
use strict;
|
||||
use IniFiles;
|
||||
use Net::SMTP;
|
||||
|
||||
my $configuration = new Config::IniFiles( -file => "syncopate.conf" );
|
||||
|
||||
my $globalRepoDirectory = $configuration->val( "syncopate", "repoDirectory" );
|
||||
|
||||
my $repoDirectory = $configuration->val( "syncopate", "repoDirectory" );
|
||||
|
||||
my $standardOptions = $configuration->val( "syncopate", "options" );
|
||||
|
||||
my $rsyncUser = $configuration->val( "syncopate", "rsyncUser" );
|
||||
|
||||
my $reportDirectory = $configuration->val( "syncopate", "reportDirectory" );
|
||||
|
||||
my $smtpServer = $configuration->val( "syncopate", "smtpServer" );
|
||||
|
||||
my $reportUrl = $configuration->val( "syncopate", "reportUrl" );
|
||||
|
||||
if ( defined( $ARGV[0] ) )
|
||||
{
|
||||
my $sourceConfiguration = new Config::IniFiles( -file => "conf/m1/$ARGV[0]" . ".conf" );
|
||||
|
||||
syncSource( $sourceConfiguration );
|
||||
}
|
||||
else
|
||||
{
|
||||
syncSources();
|
||||
}
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
#
|
||||
#
|
||||
# -----------------------------------------------------------------------------
|
||||
sub syncSources
|
||||
{
|
||||
my @sources = glob( "conf/m1/*.conf" );
|
||||
|
||||
for my $source (@sources)
|
||||
{
|
||||
my $sourceConfiguration = new Config::IniFiles( -file => $source );
|
||||
|
||||
my $batchDisabled = $sourceConfiguration->val( "info", "batchDisabled" );
|
||||
|
||||
if ( not defined( $batchDisabled ) )
|
||||
{
|
||||
syncSource( $sourceConfiguration );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
#
|
||||
#
|
||||
# -----------------------------------------------------------------------------
|
||||
sub syncSource()
|
||||
{
|
||||
my $sourceConfiguration = shift;
|
||||
|
||||
print "Syncing " . $sourceConfiguration->val( "info", "name" ) . "\n";
|
||||
|
||||
my $address = $sourceConfiguration->val( "host", "address" );
|
||||
|
||||
my $directory = $sourceConfiguration->val( "host", "directory" );
|
||||
|
||||
my $options = $sourceConfiguration->val( "host", "options" );
|
||||
|
||||
my $rsyncUser = $configuration->val( "syncopate", "rsyncUser" );
|
||||
|
||||
my $identity = $configuration->val( "syncopate", "identity" );
|
||||
|
||||
if ( $sourceConfiguration->val( "host", "rsyncUser" ) )
|
||||
{
|
||||
$rsyncUser = $sourceConfiguration->val( "host", "rsyncUser" );
|
||||
}
|
||||
|
||||
if ( $sourceConfiguration->val( "host", "identity" ) )
|
||||
{
|
||||
$identity = "-i " . $sourceConfiguration->val( "host", "identity" );
|
||||
}
|
||||
|
||||
if ( $sourceConfiguration->val( "host", "repoDirectory" ) )
|
||||
{
|
||||
$repoDirectory = $sourceConfiguration->val( "host", "repoDirectory" );
|
||||
}
|
||||
|
||||
my $cmd = "rsync $standardOptions $options --rsh=\"ssh -oBatchMode=yes $identity -T -l $rsyncUser\" $address:$directory/ $repoDirectory";
|
||||
|
||||
runRsync( $cmd, $sourceConfiguration );
|
||||
|
||||
$repoDirectory = $globalRepoDirectory;
|
||||
}
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
#
|
||||
#
|
||||
# -----------------------------------------------------------------------------
|
||||
sub runRsync()
|
||||
{
|
||||
my $cmd = shift;
|
||||
|
||||
my $sourceConfiguration = shift;
|
||||
|
||||
# -------------------------------------------------------------------------
|
||||
# Now we want to run rsync and generate a small xdoc which describes the
|
||||
# syncronization that just occurred.
|
||||
# -------------------------------------------------------------------------
|
||||
|
||||
my $id = $sourceConfiguration->val( "info", "id" );
|
||||
|
||||
my $name = $sourceConfiguration->val( "info", "name" );
|
||||
|
||||
my $reportName = "Synchronization report for " . $name;
|
||||
|
||||
my @date = date();
|
||||
|
||||
my $date = $date[0] . "-" . $date[1] . "-" . $date[2];
|
||||
|
||||
my $dir = $date;
|
||||
|
||||
$dir =~ s/-/\//g;
|
||||
|
||||
$dir = $id . "/" . $dir;
|
||||
|
||||
my $rdir = $reportDirectory . "/" . $dir;
|
||||
|
||||
system( "mkdir -p $rdir > /dev/null 2>&1" );
|
||||
|
||||
my $base = $id . "-" . $date[0] . $date[1] . $date[2] . "-" . $date[3] . $date[4] . $date[5];
|
||||
|
||||
my $xmlReport = $rdir . "/" . $base . ".xml";
|
||||
|
||||
my $rawReport = $rdir . "/" . $base . ".txt";
|
||||
|
||||
open( REPORT, "> $xmlReport" );
|
||||
|
||||
open( RAW_REPORT, "> $rawReport" );
|
||||
|
||||
print REPORT "<document>" . "\n";
|
||||
|
||||
print REPORT "<properties>" . "\n";
|
||||
|
||||
print REPORT "<author>meeper</author>" . "\n";
|
||||
|
||||
print REPORT "<title>$reportName</title>" . "\n";
|
||||
|
||||
print REPORT "</properties>" . "\n";
|
||||
|
||||
print REPORT "<body>" . "\n";
|
||||
|
||||
print REPORT "<section name=\"$reportName\">" . "\n";
|
||||
|
||||
print REPORT "<table>" . "\n";
|
||||
|
||||
print REPORT "<tr>" . "\n";
|
||||
|
||||
print REPORT "<th>Artifact</th>" . "\n";
|
||||
|
||||
print REPORT "<th>Size (in bytes)</th>" . "\n";
|
||||
|
||||
print REPORT "<th>Date</th>" . "\n";
|
||||
|
||||
print REPORT "</tr>" . "\n";
|
||||
|
||||
open( SYNC, "$cmd 2>&1 |" );
|
||||
|
||||
my $rawReportText;
|
||||
|
||||
my $sendMail = 0;
|
||||
|
||||
while( <SYNC> )
|
||||
{
|
||||
# --------------------------------------------------------------------
|
||||
# We have a line that tells us about an artifact that was synced.
|
||||
# --------------------------------------------------------------------
|
||||
if ( /^artifact/ )
|
||||
{
|
||||
my @details = split;
|
||||
|
||||
# TODO: fix hardcoding
|
||||
if ( ! ( $details[1] eq "home/maven/repository-staging/to-ibiblio/maven/." ) )
|
||||
{
|
||||
print REPORT "<tr>" . "\n";
|
||||
|
||||
print REPORT "<td>" . $details[1] . "</td>" . "\n";
|
||||
|
||||
print REPORT "<td>" . $details[2] . "</td>" . "\n";
|
||||
|
||||
print REPORT "<td>" . $details[3] . " " . $details[4] . "</td>" . "\n";
|
||||
|
||||
print REPORT "</tr>" . "\n";
|
||||
|
||||
$sendMail = 1;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$rawReportText = $rawReportText . $_;
|
||||
|
||||
print RAW_REPORT;
|
||||
}
|
||||
}
|
||||
|
||||
close SYNC;
|
||||
my $exitCode = $?;
|
||||
|
||||
if ( $exitCode != 0 )
|
||||
{
|
||||
$sendMail = 1;
|
||||
}
|
||||
|
||||
print REPORT "</table>" . "\n";
|
||||
|
||||
print REPORT "<p><a href=\"$rawReport\">Raw report</a></p>";
|
||||
|
||||
print REPORT "</section>" . "\n";
|
||||
|
||||
print REPORT "</body>" . "\n";
|
||||
|
||||
print REPORT "</document>" . "\n";
|
||||
|
||||
close( REPORT );
|
||||
|
||||
close( RAW_REPORT );
|
||||
|
||||
if ( $rawReportText and $sendMail != 0 )
|
||||
{
|
||||
|
||||
$rawReportText = $rawReportText . "\n\nYou can view the syncronization reports for today here: \n\n";
|
||||
|
||||
$rawReportText = $rawReportText . $reportUrl . "/" . $dir;
|
||||
|
||||
notify( $sourceConfiguration, $reportName, $rawReportText );
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
sub date
|
||||
{
|
||||
my $second;
|
||||
my $minute;
|
||||
my $hour;
|
||||
my $day;
|
||||
my $month;
|
||||
my $year;
|
||||
|
||||
($second, $minute,$hour,$day, $month, $year) = (localtime)[0..5];
|
||||
|
||||
$year = $year + 1900; #got 2004
|
||||
|
||||
$month = $month + 1;
|
||||
|
||||
$second = $second + 1;
|
||||
|
||||
$minute = $minute + 1;
|
||||
|
||||
$hour = $hour + 1;
|
||||
|
||||
if ( $second <= 9 )
|
||||
{
|
||||
$second = "0".$second;
|
||||
}
|
||||
if ( $minute <= 9 )
|
||||
{
|
||||
$minute = "0".$minute;
|
||||
}
|
||||
if ( $hour <= 9 )
|
||||
{
|
||||
$hour = "0".$hour;
|
||||
}
|
||||
if ( $day <= 9 )
|
||||
{
|
||||
$day = "0".$day;
|
||||
}
|
||||
if ( $month <= 9)
|
||||
{
|
||||
$month = "0".$month;
|
||||
}
|
||||
|
||||
return ($year,$month,$day,$hour,$minute,$second);
|
||||
}
|
||||
|
||||
sub notify()
|
||||
{
|
||||
my $sourceConfiguration = shift;
|
||||
|
||||
my $subject = shift;
|
||||
|
||||
my $text = shift;
|
||||
|
||||
my $smtp = new Net::SMTP( $smtpServer );
|
||||
|
||||
$smtp->mail( "meeper\@maven.org" );
|
||||
|
||||
$smtp->to( $sourceConfiguration->val( "info", "contact" ) );
|
||||
|
||||
$smtp->data();
|
||||
|
||||
$smtp->datasend( "Subject: $subject\n" );
|
||||
|
||||
$smtp->datasend( "From: meeper\@maven.org\n" );
|
||||
|
||||
$smtp->datasend( "\n" );
|
||||
|
||||
$smtp->datasend( $text );
|
||||
|
||||
$smtp->dataend();
|
||||
|
||||
$smtp->quit();
|
||||
}
|
|
@ -1,319 +0,0 @@
|
|||
#!/usr/bin/perl
|
||||
|
||||
use strict;
|
||||
use IniFiles;
|
||||
use Net::SMTP;
|
||||
|
||||
my $configuration = new Config::IniFiles( -file => "syncopate.conf" );
|
||||
|
||||
my $globalRepoDirectory = $configuration->val( "syncopate", "repoDirectory" );
|
||||
|
||||
my $repoDirectory = $configuration->val( "syncopate", "repoDirectory" );
|
||||
|
||||
my $standardOptions = $configuration->val( "syncopate", "options" );
|
||||
|
||||
my $rsyncUser = $configuration->val( "syncopate", "rsyncUser" );
|
||||
|
||||
my $reportDirectory = $configuration->val( "syncopate", "reportDirectory" );
|
||||
|
||||
my $smtpServer = $configuration->val( "syncopate", "smtpServer" );
|
||||
|
||||
my $reportUrl = $configuration->val( "syncopate", "reportUrl" );
|
||||
|
||||
if ( defined( $ARGV[0] ) )
|
||||
{
|
||||
my $sourceConfiguration = new Config::IniFiles( -file => "conf/m1/$ARGV[0]" . ".conf" );
|
||||
|
||||
syncSource( $sourceConfiguration );
|
||||
}
|
||||
else
|
||||
{
|
||||
syncSources();
|
||||
}
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
#
|
||||
#
|
||||
# -----------------------------------------------------------------------------
|
||||
sub syncSources
|
||||
{
|
||||
my @sources = glob( "conf/m1/*.conf" );
|
||||
|
||||
for my $source (@sources)
|
||||
{
|
||||
my $sourceConfiguration = new Config::IniFiles( -file => $source );
|
||||
|
||||
my $batchDisabled = $sourceConfiguration->val( "info", "batchDisabled" );
|
||||
|
||||
if ( not defined( $batchDisabled ) )
|
||||
{
|
||||
syncSource( $sourceConfiguration );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
#
|
||||
#
|
||||
# -----------------------------------------------------------------------------
|
||||
sub syncSource()
|
||||
{
|
||||
my $sourceConfiguration = shift;
|
||||
|
||||
print "Syncing " . $sourceConfiguration->val( "info", "name" ) . "\n";
|
||||
|
||||
# Look at the mode we are going to use to sync: svn over https, rsync over ssh, or plain rsync (we should move away from this)
|
||||
|
||||
my $syncMode = $sourceConfiguration->val( "host", "mode" );
|
||||
|
||||
if ( $syncMode == "rsync_ssh" )
|
||||
{
|
||||
runRsyncOverSsh( $sourceConfiguration );
|
||||
}
|
||||
else if ( $syncMode == "rsync" )
|
||||
{
|
||||
runRsync( $sourceConfiguration );
|
||||
}
|
||||
else if ( $syncMode == "svn" )
|
||||
{
|
||||
runSvnOverHttps( $sourceConfiguration );
|
||||
}
|
||||
}
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
#
|
||||
# -----------------------------------------------------------------------------
|
||||
|
||||
|
||||
|
||||
sub runRsyncOverSsh()
|
||||
{
|
||||
my $sourceConfiguration = shift;
|
||||
|
||||
my $address = $sourceConfiguration->val( "host", "address" );
|
||||
|
||||
my $directory = $sourceConfiguration->val( "host", "directory" );
|
||||
|
||||
my $options = $sourceConfiguration->val( "host", "options" );
|
||||
|
||||
my $rsyncUser = $configuration->val( "syncopate", "rsyncUser" );
|
||||
|
||||
my $identity = $configuration->val( "syncopate", "identity" );
|
||||
|
||||
if ( $sourceConfiguration->val( "host", "rsyncUser" ) )
|
||||
{
|
||||
$rsyncUser = $sourceConfiguration->val( "host", "rsyncUser" );
|
||||
}
|
||||
|
||||
if ( $sourceConfiguration->val( "host", "identity" ) )
|
||||
{
|
||||
$identity = "-i " . $sourceConfiguration->val( "host", "identity" );
|
||||
}
|
||||
|
||||
if ( $sourceConfiguration->val( "host", "repoDirectory" ) )
|
||||
{
|
||||
$repoDirectory = $sourceConfiguration->val( "host", "repoDirectory" );
|
||||
}
|
||||
|
||||
|
||||
my $cmd = "rsync $standardOptions $options --rsh=\"ssh -oBatchMode=yes $identity -T -l $rsyncUser\" $address:$directory/ $repoDirectory";
|
||||
|
||||
# -------------------------------------------------------------------------
|
||||
# Now we want to run rsync and generate a small xdoc which describes the
|
||||
# syncronization that just occurred.
|
||||
# -------------------------------------------------------------------------
|
||||
|
||||
my $id = $sourceConfiguration->val( "info", "id" );
|
||||
|
||||
my $name = $sourceConfiguration->val( "info", "name" );
|
||||
|
||||
my $reportName = "Synchronization report for " . $name;
|
||||
|
||||
my @date = date();
|
||||
|
||||
my $date = $date[0] . "-" . $date[1] . "-" . $date[2];
|
||||
|
||||
my $dir = $date;
|
||||
|
||||
$dir =~ s/-/\//g;
|
||||
|
||||
$dir = $id . "/" . $dir;
|
||||
|
||||
my $rdir = $reportDirectory . "/" . $dir;
|
||||
|
||||
system( "mkdir -p $rdir > /dev/null 2>&1" );
|
||||
|
||||
my $base = $id . "-" . $date[0] . $date[1] . $date[2] . "-" . $date[3] . $date[4] . $date[5];
|
||||
|
||||
my $xmlReport = $rdir . "/" . $base . ".xml";
|
||||
|
||||
my $rawReport = $rdir . "/" . $base . ".txt";
|
||||
|
||||
open( REPORT, "> $xmlReport" );
|
||||
|
||||
open( RAW_REPORT, "> $rawReport" );
|
||||
|
||||
print REPORT "<document>" . "\n";
|
||||
|
||||
print REPORT "<properties>" . "\n";
|
||||
|
||||
print REPORT "<author>meeper</author>" . "\n";
|
||||
|
||||
print REPORT "<title>$reportName</title>" . "\n";
|
||||
|
||||
print REPORT "</properties>" . "\n";
|
||||
|
||||
print REPORT "<body>" . "\n";
|
||||
|
||||
print REPORT "<section name=\"$reportName\">" . "\n";
|
||||
|
||||
print REPORT "<table>" . "\n";
|
||||
|
||||
print REPORT "<tr>" . "\n";
|
||||
|
||||
print REPORT "<th>Artifact</th>" . "\n";
|
||||
|
||||
print REPORT "<th>Size (in bytes)</th>" . "\n";
|
||||
|
||||
print REPORT "<th>Date</th>" . "\n";
|
||||
|
||||
print REPORT "</tr>" . "\n";
|
||||
|
||||
open( SYNC, "$cmd 2>&1 |" );
|
||||
|
||||
my $rawReportText;
|
||||
|
||||
while( <SYNC> )
|
||||
{
|
||||
# --------------------------------------------------------------------
|
||||
# We have a line that tells us about an artifact that was synced.
|
||||
# --------------------------------------------------------------------
|
||||
if ( /^artifact/ )
|
||||
{
|
||||
my @details = split;
|
||||
|
||||
print REPORT "<tr>" . "\n";
|
||||
|
||||
print REPORT "<td>" . $details[1] . "</td>" . "\n";
|
||||
|
||||
print REPORT "<td>" . $details[2] . "</td>" . "\n";
|
||||
|
||||
print REPORT "<td>" . $details[3] . " " . $details[4] . "</td>" . "\n";
|
||||
|
||||
print REPORT "</tr>" . "\n";
|
||||
}
|
||||
else
|
||||
{
|
||||
$rawReportText = $rawReportText . $_;
|
||||
|
||||
print RAW_REPORT;
|
||||
}
|
||||
}
|
||||
|
||||
print REPORT "</table>" . "\n";
|
||||
|
||||
print REPORT "<p><a href=\"$rawReport\">Raw report</a></p>";
|
||||
|
||||
print REPORT "</section>" . "\n";
|
||||
|
||||
print REPORT "</body>" . "\n";
|
||||
|
||||
print REPORT "</document>" . "\n";
|
||||
|
||||
close( REPORT );
|
||||
|
||||
close( RAW_REPORT );
|
||||
|
||||
if ( $rawReportText )
|
||||
{
|
||||
$rawReportText = $rawReportText . "\n\nYou can view the syncronization reports for today here: \n\n";
|
||||
|
||||
$rawReportText = $rawReportText . $reportUrl . "/" . $dir;
|
||||
|
||||
notify( $sourceConfiguration, $reportName, $rawReportText );
|
||||
}
|
||||
}
|
||||
|
||||
sub runRsync()
|
||||
{
|
||||
my $sourceConfiguration = shift;
|
||||
}
|
||||
|
||||
sub runSvnOverHttps()
|
||||
{
|
||||
my $sourceConfiguration = shift;
|
||||
}
|
||||
|
||||
sub date
|
||||
{
|
||||
my $second;
|
||||
my $minute;
|
||||
my $hour;
|
||||
my $day;
|
||||
my $month;
|
||||
my $year;
|
||||
|
||||
($second, $minute,$hour,$day, $month, $year) = (localtime)[0..5];
|
||||
|
||||
$year = $year + 1900; #got 2004
|
||||
|
||||
$month = $month + 1;
|
||||
|
||||
$second = $second + 1;
|
||||
|
||||
$minute = $minute + 1;
|
||||
|
||||
$hour = $hour + 1;
|
||||
|
||||
if ( $second <= 9 )
|
||||
{
|
||||
$second = "0".$second;
|
||||
}
|
||||
if ( $minute <= 9 )
|
||||
{
|
||||
$minute = "0".$minute;
|
||||
}
|
||||
if ( $hour <= 9 )
|
||||
{
|
||||
$hour = "0".$hour;
|
||||
}
|
||||
if ( $day <= 9 )
|
||||
{
|
||||
$day = "0".$day;
|
||||
}
|
||||
if ( $month <= 9)
|
||||
{
|
||||
$month = "0".$month;
|
||||
}
|
||||
|
||||
return ($year,$month,$day,$hour,$minute,$second);
|
||||
}
|
||||
|
||||
sub notify()
|
||||
{
|
||||
my $sourceConfiguration = shift;
|
||||
|
||||
my $subject = shift;
|
||||
|
||||
my $text = shift;
|
||||
|
||||
my $smtp = new Net::SMTP( $smtpServer );
|
||||
|
||||
$smtp->mail( "meeper\@maven.org" );
|
||||
|
||||
$smtp->to( $sourceConfiguration->val( "info", "contact" ) );
|
||||
|
||||
$smtp->data();
|
||||
|
||||
$smtp->datasend( "Subject: $subject\n" );
|
||||
|
||||
$smtp->datasend( "From: meeper\@maven.org\n" );
|
||||
|
||||
$smtp->datasend( "\n" );
|
||||
|
||||
$smtp->datasend( $text );
|
||||
|
||||
$smtp->dataend();
|
||||
|
||||
$smtp->quit();
|
||||
}
|
|
@ -1,8 +0,0 @@
|
|||
[syncopate]
|
||||
repoDirectory=/home/maven/repository-staging/to-ibiblio/maven
|
||||
options=--log-format="artifact %f %l %t" -rvt -L --size-only --exclude-from=$HOME/bin/synchronize/syncopate/exclusions.txt
|
||||
rsyncUser=rsync
|
||||
|
||||
reportUrl=http://repo1.maven.org/reports/syncopate
|
||||
reportDirectory=/home/maven/repository-staging/to-ibiblio/reports/syncopate
|
||||
smtpServer=localhost
|
|
@ -1,62 +0,0 @@
|
|||
package org.apache.maven.archiva.meeper;
|
||||
|
||||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more contributor license
|
||||
* agreements. See the NOTICE file distributed with this work for additional information regarding
|
||||
* copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the
|
||||
* "License"); you may not use this file except in compliance with the License. You may obtain a
|
||||
* copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software distributed under the License
|
||||
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
|
||||
* or implied. See the License for the specific language governing permissions and limitations under
|
||||
* the License.
|
||||
*/
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.io.InputStreamReader;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.commons.csv.CSVParser;
|
||||
|
||||
/**
|
||||
* Read a csv file with the synced repositories information
|
||||
*
|
||||
* @author <a href="mailto:carlos@apache.org">Carlos Sanchez</a>
|
||||
* @version $Id$
|
||||
*/
|
||||
public class Reader
|
||||
{
|
||||
private CSVParser parser;
|
||||
|
||||
public Reader( InputStream stream )
|
||||
{
|
||||
parser = new CSVParser( new InputStreamReader( stream ) );
|
||||
}
|
||||
|
||||
public List parse()
|
||||
throws IOException
|
||||
{
|
||||
String[][] data = parser.getAllValues();
|
||||
List repos = new ArrayList( data.length - 1 );
|
||||
|
||||
/* ignore headers line */
|
||||
for ( int i = 1; i < data.length; i++ )
|
||||
{
|
||||
int j = 0;
|
||||
SyncedRepository repo = new SyncedRepository();
|
||||
repo.setGroupId( data[i][j++] );
|
||||
repo.setLocation( data[i][j++] );
|
||||
repo.setProtocol( data[i][j++] );
|
||||
repo.setContactName( data[i][j++] );
|
||||
repo.setContactMail( data[i][j++] );
|
||||
repos.add( repo );
|
||||
}
|
||||
|
||||
return repos;
|
||||
}
|
||||
}
|
|
@ -1,92 +0,0 @@
|
|||
package org.apache.maven.archiva.meeper;
|
||||
|
||||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more contributor license
|
||||
* agreements. See the NOTICE file distributed with this work for additional information regarding
|
||||
* copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the
|
||||
* "License"); you may not use this file except in compliance with the License. You may obtain a
|
||||
* copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software distributed under the License
|
||||
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
|
||||
* or implied. See the License for the specific language governing permissions and limitations under
|
||||
* the License.
|
||||
*/
|
||||
|
||||
import org.apache.commons.lang.builder.ReflectionToStringBuilder;
|
||||
|
||||
/**
|
||||
* Stores a synced repository data.
|
||||
*
|
||||
* @author <a href="mailto:carlos@apache.org">Carlos Sanchez</a>
|
||||
* @version $Id$
|
||||
*/
|
||||
public class SyncedRepository
|
||||
{
|
||||
private String groupId;
|
||||
|
||||
private String location;
|
||||
|
||||
private String protocol;
|
||||
|
||||
private String contactName;
|
||||
|
||||
private String contactMail;
|
||||
|
||||
public void setGroupId( String groupId )
|
||||
{
|
||||
this.groupId = groupId;
|
||||
}
|
||||
|
||||
public String getGroupId()
|
||||
{
|
||||
return groupId;
|
||||
}
|
||||
|
||||
public void setContactName( String contactName )
|
||||
{
|
||||
this.contactName = contactName;
|
||||
}
|
||||
|
||||
public String getContactName()
|
||||
{
|
||||
return contactName;
|
||||
}
|
||||
|
||||
public void setContactMail( String contactMail )
|
||||
{
|
||||
this.contactMail = contactMail;
|
||||
}
|
||||
|
||||
public String getContactMail()
|
||||
{
|
||||
return contactMail;
|
||||
}
|
||||
|
||||
public void setLocation( String location )
|
||||
{
|
||||
this.location = location;
|
||||
}
|
||||
|
||||
public String getLocation()
|
||||
{
|
||||
return location;
|
||||
}
|
||||
|
||||
public void setProtocol( String protocol )
|
||||
{
|
||||
this.protocol = protocol;
|
||||
}
|
||||
|
||||
public String getProtocol()
|
||||
{
|
||||
return protocol;
|
||||
}
|
||||
|
||||
public String toString()
|
||||
{
|
||||
return ReflectionToStringBuilder.toString( this );
|
||||
}
|
||||
}
|
|
@ -1,31 +0,0 @@
|
|||
----
|
||||
Maven Repository Mirroring Kit
|
||||
-----
|
||||
Jason van Zyl
|
||||
-----
|
||||
17 October 2006
|
||||
-----
|
||||
|
||||
Maven Repository Mirroring Kit
|
||||
|
||||
Requirements
|
||||
|
||||
* SSH
|
||||
|
||||
* Rsync
|
||||
|
||||
* Maven's public SSH key
|
||||
|
||||
* Sample Maven sync configuration (sample.conf)
|
||||
|
||||
* Project PGP key
|
||||
|
||||
Preparations
|
||||
|
||||
* Create a user account with an id of <<<maven>>>
|
||||
|
||||
* Setup SSH for the <<<maven>>> user
|
||||
|
||||
* Create a valid Maven sync configuration
|
||||
|
||||
* Submit configuration
|
|
@ -1,9 +0,0 @@
|
|||
[info]
|
||||
id = org.foo
|
||||
name = My Software Foundation
|
||||
contact = you@foo.org
|
||||
|
||||
[host]
|
||||
address=repository.foo.org
|
||||
directory=/www/maven-2-repository
|
||||
rsyncUser=maven
|
|
@ -1,31 +0,0 @@
|
|||
----
|
||||
Maven Repository Syncing Kit
|
||||
-----
|
||||
Jason van Zyl
|
||||
-----
|
||||
17 October 2006
|
||||
-----
|
||||
|
||||
Maven Repository Syncing Kit
|
||||
|
||||
Requirements
|
||||
|
||||
* SSH
|
||||
|
||||
* Rsync
|
||||
|
||||
* Maven's public SSH key
|
||||
|
||||
* Sample Maven sync configuration (sample.conf)
|
||||
|
||||
* Project PGP key
|
||||
|
||||
Preparations
|
||||
|
||||
* Create a user account with an id of <<<maven>>>
|
||||
|
||||
* Setup SSH for the <<<maven>>> user
|
||||
|
||||
* Create a valid Maven sync configuration
|
||||
|
||||
* Submit configuration
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue