标签:maven本地仓库 安装 apach encoding central http pre osi www.
1.先下载apache-maven然后配置win环境变量,
2.在C:\Users\Administrator\.m2\settings.xml添加
<?xml version="1.0" encoding="UTF-8"?>
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd"> <localRepository>E:/maven/repository</localRepository> <mirrors> <mirror> <id>alimaven</id> <name>aliyun maven</name> <url>http://maven.aliyun.com/nexus/content/groups/public/</url> <mirrorOf>central</mirrorOf> </mirror> <mirror> <id>ibiblio</id> <mirrorOf>central</mirrorOf> <name>Human Readable Name for this Mirror.</name> <url>http://mirrors.ibiblio.org/pub/mirrors/maven2/</url> </mirror> </mirrors> </settings>
3.在exlipse中配置maven本地仓库和settings引用
标签:maven本地仓库 安装 apach encoding central http pre osi www.
原文地址:https://www.cnblogs.com/huiandong/p/9436486.html