tree: 60fd50aee76de668211e68607391ee6047285386 [path history] [tgz]
  1. src/
  2. .gitignore
  3. bnd.bnd
  4. checkstyle-suppressions.xml
  5. CODE_OF_CONDUCT.md
  6. CONTRIBUTING.md
  7. Jenkinsfile
  8. LICENSE
  9. pmd-exclude.properties
  10. pom.xml
  11. README.md
README.md

Apache Sling

Build Status Test Status Coverage Sonarcloud Status JavaDoc Maven Central 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 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