LinuxCommandLibrary

mvn-compile

compiles main source code in a Maven project

TLDR

Compile project

$ mvn compile
copy
Compile with specific profile
$ mvn compile -P [profile]
copy
Compile skipping tests
$ mvn compile -DskipTests
copy
Compile offline
$ mvn compile -o
copy

SYNOPSIS

mvn compile [options]

DESCRIPTION

mvn compile compiles main source code in a Maven project. Executes the compile phase of the Maven lifecycle. Compiles src/main/java to target/classes.

PARAMETERS

-P profile

Activate profile.
-DskipTests
Skip test compilation.
-o
Work offline.
-q
Quiet mode.
-X
Debug mode.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community