- Source
- Edit this page
- Wrong?
- Report a problem
Available JSR223 Script Engines
| EngineName | Dependency |
|---|---|
| groovy | <dependency> |
| java | built-in |
The java engine enables to execute simple Java scripts.
It imports by default java.io, java.net, java.util, java.util.stream, java.nio.file.
It makes available the following contextual variables:
$log: maven loggerMavenProject: org.apache.maven.plugins:maven-scripting-plugin:3.1.0 @ /home/dashorst/workspaces/maven-site/target/plugin-demo/src/maven-scripting-plugin/pom.xml: maven project
The script is the content of a java method. Example:
$log.info($project.getArtifactId());