maven add a local classes directory to module's classpath
I know this is a bit out of maven's scope, but I need to add a local directory with compiled classes to the module's classpath. I saw: Maven: add a folder or jar file into current classpath , but this is good for a jar only. I need to have a similar solution but with compiled classes in a directory on local file system. Is this even possible? Thx! After some extensive research, I found that my best option was to use the maven-antrun-plugin and during the process-resources phase, generate a jar from the classes and add it as dependency with system scope and systemPath to the jar I just built.