============= Maven仓库配置 ============= 在MAVEN_HOME/conf/settings.xml文件中配置Maven仓库。 1 配置Maven本地仓库 创建本地仓库目录:C:\Maven\repo 在settings.xml文件中添加: ... C:\Maven\repo ... 2 配置Maven公共仓库 在settings.xml文件中添加: ... ... nexus-aliyun central Nexus aliyun http://maven.aliyun.com/nexus/content/groups/public/ ... ... 3 从公共仓库下载JAR包到本地仓库 在pom.xml文件所在目录下执行: > mvn test . . . Downloading from nexus-aliyun: http://maven.aliyun.com/nexus/content/groups/public/... . . . 查看C:\Maven\repo目录下的内容。