Groups
Sign in
Groups
软件配置管理(CN)
Conversations
About
Send feedback
Help
Maven 的好处之一:第三方库版本意识的增强
0 views
Skip to first unread message
laofo -
unread,
Feb 22, 2012, 3:00:37 AM
2/22/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Config...@googlegroups.com
最近一个项目采用两种方式
构建
,既可以用
ant
,也可以用
maven
。现在体会到用maven的一个好处是:大家对第三方库的版本意识增强了。
比如:大家现在用到一个第三方库,那么一般就是找一个稳定的版本,然后丢到lib下面去。很多时候作为
SCM
都是很难发现,因为你总不能时时刻刻盯着lib下的文件个数。而用了 maven 之后,只有SCM 可以编辑pom.xml.你把第三方库丢到lib下面只能保证ant能编译通过,必须通过修改pom.xml文件加上相应的依赖,才能使maven也编译通过。渐渐的,大家对第三方库的管理也重视起来了。因为修改pom.xml文件时,你必须指定依赖的库的版本。
Reply all
Reply to author
Forward
0 new messages