Is it possible to create a POM that, on package or greater, merely assembles the entire project (for example, into a zip file) and places it in target?
In this case, the project does not have any Java code in it, it is merely a set of scripts and files that I would like to have packaged. For the sake of uniformity (because our shop is all Maven), I would really like to have a POM do this, as, currently, we have a shell script doing it.
Examples would be MUCH appreciated.
Thanks
So I ended up with the following, which creates a file
ServerSetupTools-0.1-SNAPSHOT.tar.gzintargetand that works for me. The only downside is that I wasn’t sure how to get it to pull the files when they were in the root directory, so I moved them all tosrc/main/resources, which also worked for me. Hopefully this helps somebody else.POM FILE:
src/main/assembly/assemble.xml: