I would like to incorporate scanning for viruses into a Java/Maven/Hudson build process. Unfortunately, i could not find any resources on dedicated tools for this kind of build step. My build environment is Linux-based.
My question is: How can antivirus scanning be incorporated into a Maven and Hudson based build process?
What are the best-practices?
- Should the scanning step be separate of the normal build, e.g. a pre-build step or even a separate build job?
- Should the scanning occur at a later stage of packaging, after all the artefacts have been packaged to jar files or early in the process?
- Should each released artefact include a scanner log file which determines the antivirus tool being used, version and date of virus definition files?
Which anti-virus software to use is out of scope of this question. (E.g. i'd like to use a commercial vendor in favor of free tools like ClamAV)