The Sling JCR Java Compiler bundle provides support for compiling Java source code stored in the repository and writing the class files to the repository.
'org.apache.sling:org.apache.sling.jcr.compiler:2.0.2'
<dependency>
<groupId>org.apache.sling</groupId>
<artifactId>org.apache.sling.jcr.compiler</artifactId>
<version>2.0.2</version>
</dependency>
<dependency org="org.apache.sling" name="org.apache.sling.jcr.compiler" rev="2.0.2"/>
"org.apache.sling", "org.apache.sling.jcr.compiler", "2.0.2"