How do I use a mirror of the maven central repository?
Author: Deron Eriksson
Description: This tutorial describes how to use a mirror of the maven central repository.
Tutorial created using:
Windows Vista || JDK 1.6.0_04 || Eclipse Web Tools Platform 2.0.1 (Eclipse 3.3.1)
(Continued from page 1) The "mvn install" on "mytest" produces the following console output. Note that mirror host (http://mirrors.dotsrc.org/maven2) is now being used rather than the main central repository. Console output[INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Building mytest [INFO] task-segment: [install] [INFO] ------------------------------------------------------------------------ [INFO] artifact org.apache.maven.plugins:maven-install-plugin: checking for updates from central Downloading: http://mirrors.dotsrc.org/maven2/org/apache/maven/plugins/maven-install-plugin/2.2/maven-install-plugin-2.2.pom 2/2K 2K downloaded Downloading: http://mirrors.dotsrc.org/maven2/org/apache/maven/plugins/maven-install-plugin/2.2/maven-install-plugin-2.2.jar 3/15K 7/15K 11/15K 11/15K 15/15K 15/15K 15K downloaded [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:compile] [INFO] Nothing to compile - all classes are up to date [INFO] [resources:testResources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:testCompile] [INFO] Nothing to compile - all classes are up to date [INFO] [surefire:test] [INFO] Surefire report directory: C:\dev\workspace\mytest\target\surefire-reports ------------------------------------------------------- T E S T S ------------------------------------------------------- Running com.maventest.AppTest Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.037 sec Results : Tests run: 1, Failures: 0, Errors: 0, Skipped: 0 [INFO] [jar:jar] [INFO] [install:install] [INFO] Installing C:\dev\workspace\mytest\target\mytest-1.0-SNAPSHOT.jar to \dev\m2repo\com\maventest\mytest\1.0-SNAPSHOT\mytest-1.0-SNAPSHOT.jar [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESSFUL [INFO] ------------------------------------------------------------------------ [INFO] Total time: 5 seconds [INFO] Finished at: Mon Feb 04 15:24:21 PST 2008 [INFO] Final Memory: 6M/12M [INFO] ------------------------------------------------------------------------ |