0

Below is my maven project structure: Main-Project Module1, Module2, Module3

All the above modules either generate jar or war files in the target directory of each module I need to copy all the generated jar or war files to a any directory ex: {base.dir}

can anyone help me with mvn command & POM file configuration to achieve this task.

Tomasz Nurkiewicz
  • 334,321
  • 69
  • 703
  • 674
user1096909
  • 99
  • 1
  • 1
  • 7

1 Answers1

0

I think the best way to do something like this is to use the maven-antrun-plugin for it. This way you could use standard Ant tasks to copy the files to any direction.

chkal
  • 5,598
  • 21
  • 26