Maven本地资源库

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/SA14023053/article/details/52044798

Maven的本地资源库是用来存储所有项目的依赖关系(插件jar和其他文件,这些文件被Maven下载)到本地文件夹。很简单,当你建立一个Maven项目,所有相关文件将被存储在你的Maven本地仓库。

默认情况下,Maven的本地资源库默认为 .m2 目录文件夹:

~/.m2

进入m2文件夹查看

[root@master ~]# cd ~/.m2
[root@master .m2]# ll
total 4
drwxr-xr-x 27 root root 4096 Jul 26 21:13 repository
[root@master .m2]# cd repository/
[root@master repository]# ll
total 100
drwxr-xr-x  3 root root 4096 Jul 26 21:01 aopalliance
drwxr-xr-x  4 root root 4096 Jul 26 21:04 args4j
drwxr-xr-x  4 root root 4096 Jul 26 21:08 asm
drwxr-xr-x  3 root root 4096 Jul 26 21:13 backport-util-concurrent
drwxr-xr-x  3 root root 4096 Jul 26 20:57 classworlds
drwxr-xr-x 13 root root 4096 Jul 26 21:08 com
drwxr-xr-x  3 root root 4096 Jul 26 20:57 commons-cli
drwxr-xr-x  3 root root 4096 Jul 26 20:59 commons-codec
drwxr-xr-x  3 root root 4096 Jul 26 21:00 commons-configuration
drwxr-xr-x  3 root root 4096 Jul 26 20:59 commons-httpclient
drwxr-xr-x  3 root root 4096 Jul 26 20:59 commons-io
drwxr-xr-x  3 root root 4096 Jul 26 20:57 commons-lang
drwxr-xr-x  4 root root 4096 Jul 26 21:13 commons-logging
drwxr-xr-x  3 root root 4096 Jul 26 20:59 commons-net
drwxr-xr-x  4 root root 4096 Jul 26 21:08 io
drwxr-xr-x  3 root root 4096 Jul 26 21:04 it
drwxr-xr-x  8 root root 4096 Jul 26 21:12 javax
drwxr-xr-x  3 root root 4096 Jul 26 21:03 jline
drwxr-xr-x  3 root root 4096 Jul 26 20:57 junit
drwxr-xr-x  3 root root 4096 Jul 26 20:59 log4j
drwxr-xr-x  9 root root 4096 Jul 26 21:14 net
drwxr-xr-x 29 root root 4096 Jul 26 21:15 org
drwxr-xr-x  3 root root 4096 Jul 26 21:09 oro
drwxr-xr-x  4 root root 4096 Jul 26 21:15 stax
drwxr-xr-x  3 root root 4096 Jul 26 20:59 xmlenc
展开阅读全文

没有更多推荐了,返回首页