依赖类型dependency type在maven中的作用
2016-01-26 20:30
369 查看
看看下面这段pom配置
我也是看了Maven 3 Cookbook之后从中找到些只言片语,反推出type的作用。
看书中原文(P134. How it works...):
Adding the type of apk to the dependency allows the Maven Android plugin to find the Android package of the application.
不难看出,<type>apk</type>告诉maven使用maven android plugin来进行处理<type>为apk的依赖。从而推想<type>ejb</type>就是告诉maven使用maven ejb plugin来处理。如果想知道ejb plugin如何处理这类dependency,那就去查查ejb plugin的详细说明吧,这个plugin的说明网上有很多。
本文出自 “BitterJava” 博客,请务必保留此出处http://rickqin.blog.51cto.com/1096449/1738774
... <dependency> <groupId>xxx</groupId> <artifactId>yyy</artifactId> <type>ejb</type> </dependency> ...这个<type>很多maven相关的资料中都未曾提及,而上网搜了一下中文资源,这些文章都把compile、runtime、test等本属于scope的概念混淆为“依赖类型”<type>的概念。而且,关于这个<type>的解释也非常少。
我也是看了Maven 3 Cookbook之后从中找到些只言片语,反推出type的作用。
看书中原文(P134. How it works...):
Adding the type of apk to the dependency allows the Maven Android plugin to find the Android package of the application.
不难看出,<type>apk</type>告诉maven使用maven android plugin来进行处理<type>为apk的依赖。从而推想<type>ejb</type>就是告诉maven使用maven ejb plugin来处理。如果想知道ejb plugin如何处理这类dependency,那就去查查ejb plugin的详细说明吧,这个plugin的说明网上有很多。
本文出自 “BitterJava” 博客,请务必保留此出处http://rickqin.blog.51cto.com/1096449/1738774
相关文章推荐
- 存储过程实现基本的增删查改
- 运行WampServer时,提示Exception Exception in module wampmanager.exe at 000F15A0.解决办法
- Hadoop 之 Shuffle 和排序---再理解
- 使用spring webflow,在前台页面中如何显示后端返回的错误信息
- JS总结之二:DOM对象控制HTML
- HttpServletRequest和HttpServletResponse的方法总结
- TortoiseSVN中的“文件和文件夹过滤”在VS项目中的使用
- MySQL慢查询配置,及解决相关问题
- String painter (hdu 2476)
- 第一版小四轴总结
- Shadow Map & Shadow Volume
- Gradient-based Hyperparameter Optimization through Reversible Learning
- 蓝桥杯:基础练习 杨辉三角形
- 异常:未能载入文件或程序集”DAL”或它的某一个依赖项——解决的方法
- JS总结之一:字符串的调用方法
- 如何解决IIS不支持Perl,出现“HTTP 错误403.1-禁止”问题
- CentOS7下安装配置vncserver
- hdu 2511 汉诺塔 X 递归 构造
- 短信验证码验证(使用Mob SDK)
- jumplist和changlist