首页 > 其他分享 >maven配置私有仓库和阿里仓库共存

maven配置私有仓库和阿里仓库共存

时间:2024-08-16 10:52:31浏览次数:7  
标签:http 仓库 共存 maven nexus aliyun true public

profiles标签添加

	<profile>
      	<id>test</id>
		<repositories>
			<repository>
				<id>private-nexus</id>
				<url>http://192.168.10.2:8081/repository/maven-public/</url>
			</repository>
		</repositories>
	  
	    <pluginRepositories>
			<pluginRepository>
				<id>private-nexus</id>
				<url>http://192.168.10.2:8081/repository/maven-public/</url>
				<releases>
					<enabled>true</enabled>
					<updatePolicy>always</updatePolicy>
				</releases>
				<snapshots>
					<enabled>true</enabled>
					<updatePolicy>always</updatePolicy>
				</snapshots>
			</pluginRepository>      
        </pluginRepositories>
    </profile>
	
	<profile>
		<id>aliyun</id>
		<repositories>
			<repository>
				<id>aliyun-nexus</id>
				<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
			</repository>
		</repositories>
		<pluginRepositories>
			<pluginRepository>
				<id>aliyun-nexus</id>
				<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
				<releases>
					<enabled>true</enabled>
					<updatePolicy>always</updatePolicy>
				</releases>
				<snapshots>
					<enabled>true</enabled>
					<updatePolicy>always</updatePolicy>
				</snapshots>
			</pluginRepository>
		</pluginRepositories>
	</profile>

activeProfiles标签添加

<activeProfile>test</activeProfile>
<activeProfile>aliyun</activeProfile>

标签:http,仓库,共存,maven,nexus,aliyun,true,public
From: https://www.cnblogs.com/lybaobei/p/18362442

相关文章

  • SpringBoot项目搭建(IDEA+Maven)
    项目搭建IDEA搭建Springboot项目SpringBoot的基础结构src/main/java:项目的Java源代码存放目录HelloSpringbootApplication:项目的主文件resources:用于存放项目的资源文件resources/static:用于存放项目中的静态资源文件,例如css,js,image等resources/templates:......
  • maven工程指定版本号并开启预览特性
    pom.xml<properties><java.version>23</java.version><maven.compiler.source>23</maven.compiler.source><maven.compiler.target>23</maven.compiler.target><project.build.source......
  • 实现同时接收文件与实体类,java springboot maven
    首先,需要有一个Post接口,有一个实体类方法需要返回什么,直接修改void即可实体类需要接收什么,直接改User即可 @PostMapping(value="/post_interface")publicvoidpostInterface(@RequestParam("file")MultipartFilefile,@RequestParamMap<String,Object>user){......
  • 基于Nexus实现配置阿里云代理仓库过程解析
    基于Nexus实现配置阿里云代理仓库过程解析更新时间:2020年07月09日09:19:07  作者:咔咔kk 这篇文章主要介绍了基于Nexus实现配置阿里云代理仓库过程解析,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友可以参考下Nexus默认远程仓......
  • 基于nexus3配置Python仓库过程详解
    基于nexus3配置Python仓库过程详解更新时间:2020年06月15日09:08:04  作者:三度 这篇文章主要介绍了基于nexus3配置Python仓库过程详解,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友可以参考下搭建Python私服,我们依旧使用ne......
  • Maven配置单仓库与多仓库的实现(Nexus)
    Maven配置单仓库与多仓库的实现(Nexus)更新时间:2023年01月16日10:14:56  作者:我认不到你 本文主要介绍了Maven配置单仓库与多仓库的实现(Nexus),文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友们下面随着小编来一起学习学习吧......
  • Maven私服仓库Nexus配置小结
    技术前提:熟练的掌握Maven基础知识一、什么是Maven私服?Maven私服是一种特殊的Maven远程仓库,它是架设在局域网内的仓库服务,用来代理位于外部的远程仓库(中央仓库、其他远程公共仓库)。当然也并不是说私服只能建立在局域网,也有很多公司会直接把私服部署到公网,具体还是得看公司业......
  • IDEA中maven配置忽略SSL检查
     当使用mvn打包时,会报错:PKIXpathbuildingfailed:sun.security.provider.certpath.SunCertPathBuilderException:unabletofindvalidcertificationpathtorequestedtarget->[Help1]问题原因是没有导入中心仓域名的证书,ssl证书校验不通过,就会报错误。此时有两种......
  • 构建实时数据仓库:流式处理与实时计算技术解析
    目录一、流式处理请求与响应批处理二、实时计算三、Lambda架构Lambda架构的缺点四、Kappa架构五、实时数据仓库解决方案近年来随着业务领域的不断拓展,尤其像互联网、无线终端APP等行业应用的激增,产生的数据量呈指数级增长,对海量数据的处理需求也提出了新的挑战。具......
  • maven dependencyManagement
    1.简介:本文介绍maven的dependencyManagement的用法。2.使用场景:dependencyManagement只声明依赖,但不引入依赖。一般定义在父pom中,这样子pom项目引入依赖时,不必指定版本号。比如SpringBoot就使用了dependencyManagement,它对里面的包进行了与SpringBoot对应版本的兼容性测试......