<mirrors>
<!-- mirror
| Specifies a repository mirror site to use instead of a given repository. The repository that
| this mirror serves has an ID that matches the mirrorOf element of this mirror. IDs are used
| for inheritance and direct lookup purposes, and must be unique across the set of mirrors.
|
<mirror>
<id>mirrorId</id>
<mirrorOf>repositoryId</mirrorOf>
<name>Human Readable Name for this Mirror.</name>
<url>http://my.repository.com/repo/path</url>
</mirror>
-->
<mirror>
<id>alimaven</id>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
<mirrorOf>central</mirrorOf>
</mirror>
</mirrors>
2.配国内镜像仓库,但是此仓库中jar包并不像*仓库那么全....可以去以下常用网站下载
3.下载你想要的版本到本地
例如:ojdbc-14-10gR3.jar 点击"DownLoad()JAR)"
4.下载到本地后,去ojdbc-14-10gR3.jar,所在文件夹中打开dos命令窗口,对照上图,输入一下命令即可添加
mvn install:install-file -Dfile=ojdbc-14-10gR3.jar -DgroupId=ojdbc -DartifactId=ojdbc -Dversion=14-10gR3 -Dpackaging=jar
|
|