How to link source from outside of maven project?

↘锁芯ラ 提交于 2019-12-30 06:36:09

问题


In Maven, is it possible to link additional dependent java src from outside the project folders, so that when we build our main package, maven may include such classes into final jar?
just as we can link any source folder to our project in Eclipse and eclipse treats it as regular project source?


回答1:


In Maven, is it possible to link additional dependent java src from outside the project folders

Technically, it's possible to add source folders to a build and this is usually done using the build-helper-maven-plugin. However, I would recommend against doing so for directories outside a given module, a maven module should be self contained.



来源:https://stackoverflow.com/questions/4125306/how-to-link-source-from-outside-of-maven-project

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!