Eclipse Maven 配置setting.xml 的镜像远程仓库
2023-09-11 14:14:57 时间
1.在.m2中新建settings.xml文件
1.window--》Preferences--》Maven--》User Settings
3.点击open file 编辑将远程仓库配置进去。点击Update Settings即可。
<?xml version="1.0"?> <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>Nexus</id> <name>Nexus Public Mirror</name> <url>http://121.42.166.202:8081/nexus/content/groups/public</url> <mirrorOf>central</mirrorOf> </mirror> </mirrors> <profiles> <profile> <id>dev</id> <repositories> <repository> <id>Nexus</id> <url>http://121.42.166.202:8081/nexus/content/groups/public</url> <releases> <enabled>true</enabled> <updatePolicy>always</updatePolicy> <checksumPolicy>warn</checksumPolicy> </releases> <snapshots> <enabled>true</enabled> <updatePolicy>never</updatePolicy> <checksumPolicy>fail</checksumPolicy> </snapshots> </repository> </repositories> <pluginRepositories> <pluginRepository> <id>Nexus</id> <url>http://121.42.166.202:8081/nexus/content/groups/public</url> <releases> <enabled>true</enabled> <checksumPolicy>warn</checksumPolicy> </releases> <snapshots> <enabled>true</enabled> <checksumPolicy>fail</checksumPolicy> </snapshots> </pluginRepository> </pluginRepositories> <!-- <properties> <environment.type>prod</environment.type> </properties> --> </profile> </profiles> <activeProfiles> <activeProfile>dev</activeProfile> </activeProfiles> </settings>
4.alt+F5重新构建项目
相关文章
- 解决Maven配置了阿里镜像后仍从中央仓库下载依赖的问题
- maven jdk 版本配置
- IDEA 2021 整合 SSM 配置离线 Maven 3.8.1 报错大全 Since Maven 3.8.1 http repositories are blocked.
- 93分布式电商项目 - Maven Profile切换数据库连接配置
- Maven pom.xml文件获取当前时间戳
- 【IDEA】Maven 配置阿里云仓库
- Maven Tomcat:run 使用tomcat7
- Windows系统Maven下载 环境变量配置 阿里云镜像配置 本地仓库搭建 开发环境搭建一次解决
- maven项目的java和resources等文件夹不在Java Resources的文件夹里,并且缺少Deployment...
- maven项目创7 配置分页插件
- maven搭建个人仓库
- Maven项目下update maven后Eclipse报错:java.lang.ClassNotFoundException: ContextLoaderL
- Windows下 maven3.0.4的安装步骤+maven配置本地仓库
- idea永久设置maven配置,新项目不用再设置
- Maven依赖版本冲突的分析及解决小结
- Maven学习---使用maven进行项目构建
- maven安装配置部署建项运行
- 【MAVEN】项目管理插件maven-plugins
- Maven_profile_使用profile配置不同环境的properties(实践)
- ecplise配置maven项目
- Maven打包配置
- 解决 Maven 无法下载 fastdfs-client-java 依赖。