依赖类型dependency type在maven中的作用
看看下面这段pom配置 1 2 3 4 5 6 7 ... < 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...
