0

Is it possible to build 2 of the same jar files but in separate directories in intellij? enter image description here

As you can see in lines 41 and 42 I have the outputFile locations set to 2 different locations, however it only builds the jar file in the last outputFile. Is it possible to build in 2 different directories?

Chaosfire
  • 4,818
  • 4
  • 8
  • 23
Zoboo
  • 43
  • 1
  • 8

1 Answers1

1

It is indeed possible, just define another execution section and put your second output file path there like described here Maven Shade Plugin to produce two Jars

You may have to define separate ids for both executions.

mdh
  • 328
  • 2
  • 9