I’d like to find out if it is possible to build multiple jars from the same project source. I’ve browsed previous similar questions, but my situation is a little different. I’d like to compile all the source files twice to produce two different jars, each with different dependencies. Conceptually it may be represented as follows:
project FooBase – src/main/java/… – depends on library Bar version 1.0.0 – compiles all the source and produces “org.foo/Foo1” (group/artifact)
project Foo2 – (inherits" or “extends” FooBase source, but might add its own) – depends on library Bar version 2.0.0 – compiles all the source in FooBase + Foo2 and produces “org.foo/Foo2” (group/artifact)
Is this sort of build possible? Thanks!