arconia build

The arconia build command builds your Spring Boot application. It delegates to your build tool’s (Maven/Gradle) build tasks to compile, test, and package your application as a JAR artifact or a GraalVM native executable.

Usage

Basic usage:

arconia build

Clean build (removes previous build output before building):

arconia build --clean

Build without running tests:

arconia build --skip-tests

Build a GraalVM native executable:

arconia build --native

Clean build of a native executable, skipping tests:

arconia build --clean --native --skip-tests

Pass extra parameters to the underlying build tool using --:

arconia build -- --stacktrace
arconia build -- -DmyProperty=value

Options

The following options are available:

Option Default Description

--clean

false

Perform a clean build, removing previous build outputs before building.

--skip-tests

false

Skip tests during the build.

--native

false

Perform a native build using GraalVM Native Image, producing a standalone native executable.

--verbose or -v

false

Include verbose output.

--help or -h

Display help information for the command.

The --native option requires GraalVM with the Native Image component installed. Native builds take a little bit longer than JVM builds but produce a standalone binary with fast startup time and low memory footprint.

Build Output

  • JVM build: produces a fat JAR in build/libs/ (Gradle) or target/ (Maven).

  • Native build: produces a standalone native executable in build/native/nativeCompile/ (Gradle) or target/ (Maven).

Build Tool Integration

The build command automatically detects whether your project uses Maven or Gradle and runs the appropriate build task:

Build Tool Command

Gradle

For Java builds:

  • ./gradlew build (Linux/macOS with wrapper)

  • gradle build (Linux/macOS without wrapper)

  • gradlew.bat build (Windows with wrapper)

  • gradle build (Windows without wrapper)

For native builds:

  • ./gradlew nativeBuild (Linux/macOS with wrapper)

  • gradle nativeBuild (Linux/macOS without wrapper)

  • gradlew.bat nativeBuild (Windows with wrapper)

  • gradle nativeBuild (Windows without wrapper)

Maven

For Java builds:

  • ./mvnw package (Linux/macOS with wrapper)

  • mvn package (Linux/macOS without wrapper)

  • mvnw.cmd package (Windows with wrapper)

  • mvn package (Windows without wrapper)

  • mvnd package (Using Maven Daemon)

For native builds:

  • ./mvnw package -Pnative (Linux/macOS with wrapper)

  • mvn package -Pnative (Linux/macOS without wrapper)

  • mvnw.cmd package -Pnative (Windows with wrapper)

  • mvn package -Pnative (Windows without wrapper)

  • mvnd package -Pnative (Using Maven Daemon)

Use -- to pass parameters directly to the underlying build tool. The -- separator is required to distinguish Arconia CLI options from build tool parameters.