I have multiple Java projects (packaged to jars) in my product which have a single pom combining them as modules. Each of the projects has different dependencies and their combined dependencies are defined in the parent pom. I want to prepare the output for production and do the following:
- deploy (copy) all my jars to a single location
- copy the 3rd party jars from all projects to a different single folder
- copy the configuration files (found under the src/main/resources) from all the projects to a third folder.
Anyone knows of a way to do it without having to manually copy each of the above for all the projects? I also want my future projects to support this deployment procedure without having to work too hard and specific.
I will summarize What I did in the assembly XML (to answer all of my issues) in addition to Andrey Borisov answer.
copy the configuration files (found under the src/main/resources) from all the projects to a third folder. [Used the “fileset” element]
http://maven.apache.org/xsd/assembly-1.1.2.xsd“>
bin
dir
false