当前位置: 首页 > news >正文

maven 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 " target="_blank">http://maven.apache.org/xsd/settings-1.0.0.xsd">

<!-- 本地仓库地址 -->

<localRepository>/Users/xxx/.m2/repository</localRepository>

<pluginGroups></pluginGroups>

<proxies></proxies>

<!-- 发布包所需配置 -->

<!-- 登录私服的账号密码 -->

<!-- <servers>

<server>

<id>wdd</id>

<username>a-xxx</username>

<password>a-@@xxx</password>

</server>

</servers> -->

<!-- <mirrors> -->

<!-- <mirror>

<id>maven-public</id>

<mirrorOf>*</mirrorOf>

<url>http://nexus.longhu.net:8081/repository/maven-public/</url>

</mirror> -->

<!-- <mirror>

<id>nexus</id>

<name>AliyunMaven</name>

<mirrorOf>central</mirrorOf>

<url>http://maven.aliyun.com/nexus/content/groups/public</url>

</mirror> -->

<!-- </mirrors> -->

<profiles>

<profile>

<id>nexus</id>

<repositories>

<repository>

<id>huaweicloud</id>

<url>https://mirrors.huaweicloud.com/repository/maven/huaweicloudsdk/</url>

</repository>

<repository>

<id>maven-public</id>

<url>http://maven.aliyun.com/nexus/content/groups/public/</url>

<releases>

<enabled>true</enabled>

</releases>

<snapshots>

<enabled>true</enabled>

</snapshots>

</repository>

</repositories>

</profile>

<!-- 让idea的maven项目-pom.xml文件变成jdk1.8的配置 -->

<profile>

<id>jdk-1.8</id>

<activation>

<activeByDefault>true</activeByDefault>

<jdk>1.8</jdk>

</activation>

<properties>

<maven.compiler.source>1.8</maven.compiler.source>

<maven.compiler.target>1.8</maven.compiler.target>

<maven.compiler.compilerVersion>1.8</maven.compiler.compilerVersion>

</properties>

</profile>

</profiles>

<!-- 激活预设信息 -->

<activeProfiles>

<activeProfile>nexus</activeProfile>

</activeProfiles>

</settings>

http://www.lryc.cn/news/42200.html

相关文章:

  • 【0基础学爬虫】爬虫基础之网络请求库的使用
  • 超级实用,解密云原生监控技术,使用prometheus轻松搞定redis监控
  • 音视频开发—MediaCodec 解码H264/H265码流视频
  • CVPR 2023|淘宝视频质量评价算法被顶会收录
  • 【C++学习】继承
  • 【03173】2020年8月高等教育自学考试-软件开发工具
  • Java中的String类
  • 【java】笔试强训Day3【在字符串中找出连续最长的数字串与数组中出现次数超过一半的数字】
  • 一文7个步骤从0到1教你搭建Selenium 自动化测试环境
  • Oracle目录应急清理
  • 使用 OBS 进行区域录制
  • aws eks 配置授权额外的用户和角色访问集群
  • MagicalCoder可视化开发平台:轻松搭建业务系统,为企业创造更多价值
  • 8个不能错过的程序员必备网站,惊艳到我了!!!
  • Mybatis(二):实现“增删改查”
  • Faster RCNN 对血液细胞目标检测
  • 【数据结构】Java实现栈
  • 【数据结构】排序
  • 过拟合、验证集、交叉验证
  • 原力计划来了【协作共赢 成就未来】
  • 一文了解Jackson注解@JsonFormat及失效解决
  • webpack——使用、分析打包代码
  • libvirt零知识学习5 —— libvirt源码编译安装(3)
  • Nmap 的使用教程
  • async与await异步编程
  • 移动应用架构设计:如何转变开发流程
  • NX二次开发 图层函数总结
  • windows微服务部署
  • Java四种内部类(看这一篇就够了)
  • 蓝桥杯刷题第二十天