mvn setting 配置

<?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">
  
	<mirrors>
    <mirror>
      <id>CN</id>
      <name>OSChina Central</name>                                                                                                                       
      <url>http://maven.oschina.net/content/groups/public/</url>
      <mirrorOf>central</mirrorOf>
    </mirror>
  </mirrors>
  <profiles>
     
	<profile>
       <id>dev</id>
       <repositories>
			<repository>  
			  <id>public</id>  
			  <name>Maven unicom Mirror</name>  
			  <!-- <url>http://172.16.0.75:8081/nexus/content/groups/public/</url>  -->
			  <url>http://10.127.1.172:8081/artifactory/remote-repos</url>
			  <releases>  
				<enabled>true</enabled>  
			  </releases>  
			  <snapshots>  
				<enabled>true</enabled>  
			  </snapshots>  
			</repository> 
       </repositories>
    </profile>

  </profiles>

 <activeProfiles>
    <activeProfile>artifactory</activeProfile>
 </activeProfiles>

  <servers>
  <server>
	  <id>remote-repos</id>
	  <username>qibaichao</username>
	  <password>123456</password>
  </server>
  </servers>
</settings>
时间: 2024-11-25 15:35:58

mvn setting 配置的相关文章

Maven setting配置镜像仓库

国内Maven镜像仓库值得收藏 1.配置IDE构建的Maven存放目录(解压目录) 2.配置IDE的User setting file路径,修改setting配置文件 配置本地仓库  1 <!--自定义本地仓库路径--> 2 <localRepository>E:\JAVA\Maven</localRepository> 配置mirrors远程镜像(一般配置一到两个镜像) 1 <mirrors> 2 <!-- mirror 3 | Specifies

73、django之setting配置汇总

前面的随笔中我们经常会改setting配置也经常将一些配置混淆今天主要是将一些常见的配置做一个汇总. setting配置汇总 1.app路径 INSTALLED_APPS = [ 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles'

Maven的Setting配置

<?xml version="1.0" encoding="UTF-8"?> <!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding

使用oschina的maven仓库setting配置

<?xml version="1.0" encoding="UTF-8"?> <!--Licensed to the Apache Software Foundation (ASF) under oneor more contributor license agreements. See the NOTICE filedistributed with this work for additional informationregarding cop

maven setting 配置仓库,pom.xml中repository不起作用

问题描述 最近做java项目,需要使用公司自己搭建的maven仓库,但是有些包公司的仓库中没有,导致下载失败. 项目环境 jdk:1.8 maven:3.5 问题原因分析 maven的setting文件配置信息如下: <?xml version="1.0" encoding="UTF-8"?> <settings> <localRepository>/data/repository</localRepository>

django setting配置方式及解说

# encoding=utf-8 import os import socket SITE_ID = 1 # 项目的根目录 # 简化后面的操作 PROJECT_ROOT = os.path.dirname(os.path.dirname(__file__)) # 加载应用 # 把应用添加到INSTALLED_APPS中 from apps.kuser.mysetting import myapp as kuser_app from apps.blog.mysetting import myapp

maven配置之setting配置

<!--声明语句--> <?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.apach

Django setting配置

LANGUAGE_CODE = 'zh-hans' TIME_ZONE = 'Asia/Shanghai' USE_I18N = True USE_L10N = True USE_TZ = False # Static files (CSS, JavaScript, Images) # https://docs.djangoproject.com/en/1.11/howto/static-files/ STATIC_URL = '/static/' STATICFILES_DIRS=((os.p

idea下修改maven的setting.xml配置阿里云镜像

1.打开idea中自带的maven插件或者自己安装的maven,将存放配置参数的conf文件夹找到,并编辑settings.xml 配置文件. 2.找到 mirror 标签,修改为以下信息: <mirror> <id>alimaven</id> <name>aliyun maven</name> <url>http://maven.aliyun.com/nexus/content/groups/public/</url>