Can i make maven-war-plugin to *only* copy the classes.jar but not the .war into local repo?

100 Views Asked by At

OK, so i'm using the maven-war-plugin to build my war, which works fine. I also have it setup to generate a -classes.jar.

When i run the build, both the war and -classes.jar gets copied into my .m2 repo, which takes up a lot of space.

I would like for only the classes-jar to get copied. Howver, setting the maven-install-plugin to "skip" skips both war and the classes-jar.

Is there a way for me to configure the war build so that only the classes jar gets copied into the repo?

Thanks in advance

0

There are 0 best solutions below