I need to setup a module so that I can build multiple different jar files from it's compile output.
For example, suppose I have the following existing src structure (and am creating a project using it):
So I create IDEA modules for moduleA and moduleB, and give them the respective content root of java/src.
Now suppose for moduleA I need to create a food.jar and a plants.jar, each containing only the classes for each package branch (and maybe include util just for kicks).
I can't seem to figure out how to do this (is it even possible?) because I can selective choose from the compile output when I include that in the jar Artifact. Nor can I create multiple IDEA modules for moduleA as IDEA only allows one module per Content Root.
Note that I cannot re-arrange the src file structure, this is for an already existing project (with an already in place ant build)
Any ideas or suggestions?