How to link source from outside maven project?

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

+6
maven-2
source share
1 answer

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

Technically, you can add source folders to the assembly, and this is usually done using build-helper-maven-plugin . However, I would recommend not to do this for directories outside this module, the maven module should be standalone.

+5
source share

All Articles