首页 > 编程语言 > 详细

Spring日记_01 之 Maven搭建

时间:2017-08-22 13:43:53      阅读:234      评论:0      收藏:0      [点我收藏+]

# 项目环境搭建

## 1. Eclipse + Maven

中央库太慢所以使用     阿里云镜像:maven.aliyun.com

 

1. 配置Aliyun Maven 仓库

导入配置文件  settings.xml

Window – Preferences – Maven – User Settings - Global Settings 选择settings.xml

技术分享

 

附:settings.xml

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

	<localRepository>F:/maven</localRepository>

	<pluginGroups>
	</pluginGroups>

	<proxies>
	</proxies>

	<servers>
	</servers>

	<mirrors>
		<mirror>
			<id>nexus</id>
			<name>Tedu Maven</name>
			<mirrorOf>*</mirrorOf>
			<url>http://maven.aliyun.com/nexus/content/groups/public</url>
			<!-- <url>http://maven.aliyun.com/content/groups/public</url> -->
		</mirror>
	</mirrors>
	<profiles>

	</profiles>
	<activeProfiles>
	</activeProfiles>

</settings>

 

完成之后 F:/maven 路径下会生成maven库

技术分享

 

 2. 创建项目测试Maven

Spring日记_01 之 Maven搭建

原文:http://www.cnblogs.com/tanrong/p/7411109.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!