kwenza-package(1)

NAME

kwenza-package - Package the project as a jar

SYNOPSIS

kwenza package [options]

DESCRIPTION

Builds the project (see kwenza-build(1)), then writes <output-dir>/<name>-<version>.jar: a thin jar with only the project’s own classes and resources. Its manifest has a Class-Path entry pointing at the dependency jars in the local cache, Main-Class when [package] main-class is set, and Implementation-Title and Implementation-Version from [package] name and version.

[dev-dependencies] never appear on the jar’s Class-Path.

OPTIONS

Display Options

-v
--verbose

Print extra detail: one line per resolved dependency when resolving from Maven Central, and the full java command (binary path and every classpath entry) when running something.

Common Options

-h
--help

Print a short summary of this command’s options. kwenza help <command> prints this page.

ENVIRONMENT

See kwenza(1) for the environment variables kwenza reads.

EXIT STATUS

  • 0: kwenza succeeded.

  • 1: kwenza failed, for a reason you can fix; the error message says what and how.

  • 2: the command line was invalid: an unknown command or option.

  • 101: kwenza hit a bug in itself. Please report it, with the output of --verbose.

EXAMPLES

Package the project and run the jar:

kwenza package
java -jar target/my-app-0.1.0.jar