首页 > 其他分享 >MAVEN 配置nexus setting.xml 配置

MAVEN 配置nexus setting.xml 配置

时间:2023-04-28 18:09:56浏览次数:42  
标签:xml content http nexus MAVEN setting groups public


MAVEN 配置nexus setting.xml 配置

 



<mirror>
		  <id>nexus</id>
		  <mirrorOf>*</mirrorOf>
		  <url>http://192.168.1.104:8081/nexus/content/groups/public/</url>
	  </mirror>



 



<profile>
		<id>nexus</id>
		<repositories>
			<repository>
			  <id>nexus</id>
			  <name>Nexus</name>
			  <url>http://nexus.crabdave.org/nexus/content/groups/public/</url>
			  <releases><enabled>true</enabled><updatePolicy>always</updatePolicy></releases>
			  <snapshots><enabled>true></enabled><updatePolicy>always</updatePolicy></snapshots>
			</repository>
		 </repositories>
		 <pluginRepositories>
			<pluginRepository>
				<id>nexus</id>
				<name>Nexus</name>
                <url>http://nexus.crabdave.org/nexus/content/groups/public/</url>
				<releases><enabled>true</enabled><updatePolicy>always</updatePolicy></releases>
				<snapshots><enabled>true></enabled><updatePolicy>always</updatePolicy></snapshots>
		   </pluginRepository>
		 </pluginRepositories>
	</profile>
  </profiles>



 



<activeProfiles>
<activeProfile>nexus</activeProfile>
    </activeProfiles>



 

标签:xml,content,http,nexus,MAVEN,setting,groups,public
From: https://blog.51cto.com/u_9716826/6235231

相关文章

  • 错误until the update interval of nexus-releases has elapsed or updates are force
    错误:untiltheupdateintervalofnexus-releaseshaselapsedorupdatesareforced  (从文件系统里传的,而不是从nexues界面上传的),有些文件nexues从中央仓库里下载不到,本人从别处拷贝一个上传去后,执行mvncompile时出现该错误。  解决办法:mvncleaninstall-U -Umeansfor......
  • Redis WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/s
    RedisWARNING:TheTCPbacklogsettingof511cannotbeenforcedbecause/proc/sys/net/core/somaxconnissettothelowervalueof128. 内核参数默认128,对于负载很大的服务是不够的。改为2048或者更大echo2048> /proc/sys/net/core/somaxconn  系统重启后失效v......
  • jar包运行后显示 没有主清单属性 IDEA 使用maven打jar包两种方式及pom配置
    jar包运行后显示没有主清单属性IDEA使用maven打jar包两种方式及pom配置原文链接:https://blog.csdn.net/weixin_42585386/article/details/115334503目录问题现象:问题分析:解决方法:问题现象:        jar包运行后显示没有主清单属性!问题分析:1. 缺少了项目......
  • IDEA从零到精通(21)之使用Maven clean发生错误Process terminated
    IDEA从零到精通(21)之使用Mavenclean发生错误Processterminated原文链接:https://blog.csdn.net/dkm123456/article/details/121871870文章目录作者简介引言导航热门专栏推荐错误描述解决方案:再次clean小结导航热门专栏推荐作者简介作者名:编程界明世隐简介:CSDN博客......
  • Maven指令打包SpringBoot项目提示没有主清单文件
    Maven指令打包SpringBoot项目提示没有主清单文件原文链接:https://blog.csdn.net/greedystar/article/details/86068314项目打包为Jar后,通过java-jarxxxxx.jar运行时提示xxxxx.jar中没有主清单属性,如下:打开jar包,META-INF目录下的MANIFEST.MF,内容如下:Manifest-Version:1.0A......
  • maven中切换国内源
    国外镜像下载包非常慢,于是使用国内阿里云的,找到~/.m2目录,但是不存在settings.xml,于是手动创建一个,然后贴入一个样例 <settingsxmlns="http://maven.apache.org/SETTINGS/1.0.0"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  xsi:schemaLocation="http://mave......
  • 在我的mac mini上安装好maven后再次创建项目遇到同样的问题,再次记录一下
    默认生成的maven项目,使用mvnarchetype:generate按照提示生成的项目,使用mvncompile编译过后,mvnpackage,因为已经有jar的plugin了,java-jartarget/projct1.jar出现找不到主类,此时要配置pom.xml里面的maven-jar-plugin,方法是在下面添加配置段:<configuration><archive>......
  • maven本地配置规范
    关于私有仓库配置放在项目根pom.xml文件中<repositories><repository><id>internalrepository</id><name>Localrepository</name><url>https://xxx/artifactory/libs-snapshot-lo......
  • IDEA+Maven 打jar包
    IDEA+Maven打jar包原文链接:https://blog.csdn.net/qq_46416934/article/details/124146569IDEA+Maven打jar包(包涵依赖jar)最新修改以前写的打包方式可能看起来有些繁琐,这里给出进一步简洁的解决方案简单粗暴写在前面:这两天一直在整(gu)理(dao)IDEA用Maven打jar包,网上的教......
  • 将IDEA MAVEN项目打包成jar包的通用方法
    将IDEAMAVEN项目打包成jar包的通用方法原文链接:https://blog.csdn.net/qq_56964962/article/details/1255240021.找到左上角File->ProjectStructure,点击(中文:文件->项目结构)2.在弹出的界面中,点击Artifacts(中文:工件),点击内置页面的左上角的+号,选中第一个的第二个,点击 ......