You can have a look at the source code for Maven itself.
/Anders (mobile)
Den fre 16 okt. 2020 16:45/dev /local/ca skrev:
> Thank you Anders:
>
> Do you have an example, or can point me to one on github?
>
> On Fri, Oct 16, 2020 at 2:44 AM Anders Hammar wrote:
>
> > This is not the right way
Thank you Anders:
Do you have an example, or can point me to one on github?
On Fri, Oct 16, 2020 at 2:44 AM Anders Hammar wrote:
> This is not the right way to create two jars with Maven. It is possible to
> do it, but you will likely run into other issues later on.
> What you should do is
it’s a good idea
to restructure your projects and source directories for clean separation.
Gruss
Bernd
--
http://bernd.eckenfels.net
Von: /dev /local/ca
Gesendet: Friday, October 16, 2020 10:12:50 AM
An: users@maven.apache.org
Betreff: How to build multiple .jars
This is not the right way to create two jars with Maven. It is possible to
do it, but you will likely run into other issues later on.
What you should do is create a multi-module project where you have one
module for each jar artifact you want to create.
There are numerous examples of multi-module
Using Apache Maven, I want to know the simplest way to build mutliple jar
files based on the package path from a single src/ directory hierarchy
I have src/com/pkg-path-one/.../ and src/com/pkg-path-two/.../
I am required to build one jar from src/pkg-path-one, and another jar from