1.maven安装本地jar命令
前提: maven已经配置在环境变量里了!!
mvn install:install-file -Dfile=D:\谷歌下载\sqljdbc6-4.2.jar -DgroupId=com.microsoft.sqlserver -DartifactId=sqljdbc6 -Dversion=4.2 -Dpackaging=jar
- -Dfile=jar包在本地的位置)
- -DgroupId=坐标中的groupId
- -DartifactId=坐标中的artifactId
- -Dversion=坐标中的version
2.关于maven的 : _remote.repositories
https://my.oschina.net/yibuliushen/blog/1550292
有时候 pom 文件报错跟这个有关
so you can delete it
3.阿里的maven仓库
<mirror>
<id>alimaven</id>
<mirrorOf>central</mirrorOf>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/repositories/central/</url>
</mirror>
4.settings文件中配置了私服,IDEA却不自动下载
下面这两个地方一定要对应起来