项目中引入M2的一些建议

一:每个模块独立为一个m2模块,类型为JAR。
二:依旧统一build。使用maven-ant-task包,这样可以在当前的build中,使用到maven的依

赖管理功能。也算是一种过渡。
针对二,需要做的事:将所有依赖包整理出来,将依赖关系整理出来。
每个模块需要在pom.xml中整理依赖描述。build模块中需要整理那些依赖的包,给它们分gav

,并且需要加入maven-ant-task。
http://maven.apache.org/ant-tasks/usage.html

http://svn.apache.org/repos/asf/maven/ant-tasks/trunk/build-tests.xml
http://svn.apache.org/repos/asf/maven/maven-3/trunk/build.xml

猜你喜欢

转载自huihuilou.iteye.com/blog/908231