Apache Sling Commons Clam

Clone this repo:
  1. 2a3c9c5 SLING-9241 Update Pax Exam to 4.13.3 by Oliver Lietz · 2 months ago master
  2. 7b74d09 SLING-9240 Update to Sling Bundle Parent 38 by Oliver Lietz · 2 months ago
  3. fba4ab8 SLING-9120 Update Pax Exam to 4.13.2 by Oliver Lietz · 3 months ago
  4. b46b3a3 SLING-8687 Enable integration tests with Docker by Oliver Lietz · 9 months ago
  5. 80cc595 SLING-8687 Enable integration tests with Docker by Oliver Lietz · 9 months ago

Build Status Maven Central JavaDocs License

Apache Sling Commons Clam

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

Integration tests require a running Clam daemon. By default a Docker container (mk0x/docker-clamav:alpine) is started via Testcontainers and local Docker Engine to provide the Clam daemon.

Use external Clam daemon

To disable Testcontainers and use an external Clam daemon set clamd.testcontainer to false:

mvn clean install -Dclamd.testcontainer=false

To override default Clam daemon host localhost and port 3310 set clamd.host and clamd.port:

mvn clean install -Dclamd.testcontainer=false -Dclamd.host=localhost -Dclamd.port=3310

EICAR

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