Building same project in Maven with different artifactid (based on JDK used)

后端 未结 5 700
悲哀的现实
悲哀的现实 2020-12-01 12:05

I have a scenario wherein my project needs to be compiled in different JDKs and the resulting artifact name should be different based on the JDK used. For example if the pro

5条回答
  •  余生分开走
    2020-12-01 12:55

    There is actually a way to produce more than one WAR with one build (I guess this works for JARs as well): you can use the assembly plugin with multiple executions for different descriptors.

提交回复
热议问题