I have a maven project with multiple executable classes (with public static main). I must configure this project, so that I can build this project in a various ways. For example, I want to create an executable jar file with one of the classes as entry point, which packages all of it's dependencies in a single jar file. Another build routine copies all dependencies in a lib directory.
Is there a way that I can separate build systems? maybe by creating some child poms that build the parent with different build configs ? Or having multiple pom files in a single project, without having to worry about syncing them ?
I have no idea about the techniques that I can use. Please help !!