I’m currently working on a Maven based project in which I have unit tests that generate PDF files in, let’s say “C:/result” directory (I definitely don’t want these files to be created within any directory from my project).
Using the maven-assembly plugin, would it be possible to create an archive file (preferably zip or jar) that gathers the files that are thus generated in “C:/result”?
Basically, my goal would be to upload this archive as a regular artefact onto a Nexus server, every time I deploy a new version of my project.
Thx in advance.
You’d need to define an assembly descriptor similar to:
Save e.g. as
src/assembly/bin.xml, it will be referred from the pom.The pom would contain in the
buildsection:see for more information maven assembly documentation.