This module is part of the Apache Sling project.
Scans data for malware using ClamAV.
Please see Apache Sling Clam for an integration into Apache Sling to scan data in JCR.
Integration tests require a running Clam daemon and are not enabled by default.
it profile to run integration tests with Docker container:
mvn clean install -Pit
To disable Testcontainers and use an external Clam daemon set
mvn clean install -Pit -Dclamd.testcontainer=false
To override default Clam daemon host
localhost and port
mvn clean install -Pit -Dclamd.testcontainer=false -Dclamd.host=localhost -Dclamd.port=3310
EICAR provides anti-malware test files which are used by this module. Read carefully about intended use.
The test files are split to prevent alarms on development and build systems and concatenated in memory during test execution.
split -b 154 eicarcom2.zip