maven配置私服连接(不使用mirror,在pom.xml中配置),pluginRepository作用

原文链接:https://my.oschina.net/kkrgwbj/blog/513211

复制私服链接,打开我们的pom.xml在里面添加:


	
		
			nexus
			Nexus Repository
			http://localhost:8081/nexus/content/groups/public/
			
				true
			
			
			
				true
			
		
	

这个时候,我们的私服就搭建好了.

私服搭建最佳实践

按照上面配置是实现了私服搭建,但是,这样的配置,如果我们创建一个项目,就需要配置一次,很麻烦.有没有一种方法,只让我们配置一次,后面都不需要配置呢?

我们知道,maven有个setting.xml,其实,我们可以将上面的私服配置在maven的setting.xml里面.这样就可以实现了.

2 pluginRepository的作用

插件仓库使用的是pluginRepositories和pluginRepository

原文链接:http://blog.csdn.net/crave_shy/article/details/40920193

你可能感兴趣的:(java·未分类)