Build Command
Compile Java projects with various output targets and options.Options
Java file or directory to compile (defaults to current directory)
Output directory for compiled files
Build target:
class or jar (default: class)Classpath for compilation
Source directory (for multi-file projects)
Main class (required for jar target)
Output jar filename
Watch for changes and rebuild automatically
Examples
Run Command
Execute Java applications with flexible configuration.Options
Java file or directory to run (defaults to current directory)
Arguments to pass to the Java application
Classpath for execution
JVM arguments
Watch for changes and rerun automatically
Examples
Add Command
Add dependencies to your project.Options
Dependency name (e.g., “junit”, “org.slf4j:slf4j-api”)
Dependency version
Dependency scope:
compile, runtime, or testExamples
Tree Command
Display the dependency tree for your project.Options
Show only direct dependencies
Examples
Repo Command
Add Maven repositories to your project configuration.Options
Repository name
Repository URL
Examples
Watch Mode
Bothbuild and run commands support watch mode for development:
- Build watch: Automatically recompiles when source files change
- Run watch: Automatically restarts the application when files change
- Plugin development
- Server module development
- Rapid prototyping
- Testing changes in real-time