zoukankan      html  css  js  c++  java
  • maven配置本地仓库(从本地仓库下载jar包到.m2仓库)

     Windows--》preference 
     
     
     
     
     
     
     把你的settings.xml存到一个地方



    maven指向你的settings.xml


    settings.xml里的地址是你们私服的本地地址


    就好啦 
     
    下面是settings.xml的内容:
    <?xml version="1.0" encoding="UTF-8"?>  
    <settings   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/xsd/settings-1.0.0.xsd">
        <localRepository >e:/m2/repo</localRepository>
         
        <mirrors>
            <mirror>
                <id>central</id>
                <name>central</name>
                <url>http://192.168.0.107:8081/nexus/content/repositories/central/</url>
                <mirrorOf>*</mirrorOf>
            </mirror>
        </mirrors>
         
    </settings>
  • 相关阅读:
    linux echo 换行
    linux 脚本 逻辑关系的写法及区别
    linux vim ***
    跟我一起学Makefile
    linux awk
    linux grep命令 ***
    unbuntu 安装及服务器配置
    linux 静态库文件
    samba 配置
    linux tar
  • 原文地址:https://www.cnblogs.com/fengwenzhee/p/6964110.html
Copyright © 2011-2022 走看看