星空网 > 软件开发 > Java

IntelliJ IDEA 中module的dependencies是其它module时的注意事项

Dependencies on other modules

If a module (module A) depends on another module (module B), IntelliJ IDEA assumes that:

  • The sources of module A depend on the sources in module B and don't depend on its test sources.
  • The test sources of module A depend on the sources and the test sources of module B.

 

也就是说,源代码依赖源代码,测试代码依赖测试代码

 

另外,如果要把一个library打包进一个artifact中,这个library必需是project level以上的。

如果把一个library中的某些部分(可以是类或者文件夹,甚至是archive里的文件)标记为exclude。但是这样仅仅是把这些内容用作输入时的提示,但是在运行或者编译时,这些内容还是有效的。这么做的目的是为了让IDE更加流畅。原文如下:

IntelliJ IDEA 中module的dependencies是其它module时的注意事项

ie
*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们: admin#shaoqun.com (#换成@)。
相关文章
我的浏览记录
最新相关资讯
海外公司注册 | 跨境电商服务平台 | 深圳旅行社 | 东南亚物流