maven仓库镜像-apache

1.同步仓库文件
windows环境使用cwRsync
语法:
rsync -v -t -l -r --progress --exclude "*.zip" --exclude "*.gz" --exclude "*.war" --exclude "*.bz" --exclude "*.bz2" rsync://rsync.cica.es/maven2 /d:/temp

2.安装配置APACHE服务器

3.新增JAR到镜像
<!--Generate checksum file for jar and pom -->    
<target name="checksum" description="Generate checksum file for jar and pom">    
        <checksum algorithm="SHA" fileext=".sha1">    
            <fileset dir="d:/javalib" id="id"> <!--—-jar和pom所在目录 -->    
               <include name="**/*.pom" />    
               <include name="**/*.jar" />    
               <include name="**/*.xml" />    
               <exclude name="**/*.sh1" />    
            <fileset>    
       <checksum>    
<target>

你可能感兴趣的:(apache,maven,windows,xml)