Chapter 14. maven


14.1. maven:http-proxy-list

14.1.1. Description

Lists HTTP proxy configurations for Maven remote repositories

14.1.2. Syntax

maven:http-proxy-list [options]

14.1.3. Options

NameDescription

--help

Display this help message

-x, --show-passwords

Do not hide passwords related to Maven encryption

14.2. maven:http-proxy

14.2.1. Description

Manage HTTP proxy configuration for Maven remote repositories

14.2.2. Syntax

maven:http-proxy [options] [hostPort]

14.2.3. Arguments

NameDescription

hostPort

host:port of HTTP proxy

14.2.4. Options

NameDescription

-p, --password

Password for remote repository (may be encrypted, see "maven:password -ep")

--help

Display this help message

-f, --force

Do not ask for confirmation

-id

Identifier of HTTP proxy

--change

Changes HTTP proxy configuration in Maven settings

-n, --non-proxy-hosts

Non-proxied hosts (in the format '192.168.*

localhost

…​')

--remove

Removes HTTP proxy configuration from Maven settings

--add

Adds HTTP proxy configuration to Maven settings

-u, --username

Username for remote repository

-x, --show-passwords

Do not hide passwords related to Maven encryption

14.3. maven:password

14.3.1. Description

Manage passwords for remote repositories and proxies

14.3.2. Syntax

maven:password [options]

14.3.3. Options

NameDescription

-emp, --encrypt-master-password

Encrypts master password used to encrypt/decrypt other passwords, see "mvn -emp"

--help

Display this help message

-ep, --encrypt-password

Encrypts passwords to use for remote repositories and proxies, see "mvn -ep"

-p, --persist

 

14.4. maven:repository-add

14.4.1. Description

Adds Maven repository

14.4.2. Syntax

maven:repository-add [options] [uri]

14.4.3. Arguments

NameDescription

uri

Repository URI. It may be file:// based, http(s):// based, may use other known protocol or even property placeholders (like ${karaf.base})

14.4.4. Options

NameDescription

-nr, --no-releases

Disable release handling in this repository

-p, --password

Password for remote repository (may be encrypted, see "maven:password -ep")

--help

Display this help message

-f, --force

Do not ask for confirmation

-id

Identifier of repository

-idx

Index at which new repository is to be inserted (0-based) (defaults to last - repository will be appended)

-d, --default

Edit default repository instead of remote one

-s, --snapshots

Enable SNAPSHOT handling in the repository

-cp, --checksum-policy

Checksum policy for repository (ignore, warn (default), fail)

-u, --username

Username for remote repository

-x, --show-passwords

Do not hide passwords related to Maven encryption

-up, --update-policy

Update policy for repository (never, daily (default), interval:N, always)

14.5. maven:repository-change

14.5.1. Description

Changes configuration of Maven repository

14.5.2. Syntax

maven:repository-change [options] [uri]

14.5.3. Arguments

NameDescription

uri

Repository URI. It may be file:// based, http(s):// based, may use other known protocol or even property placeholders (like ${karaf.base})

14.5.4. Options

NameDescription

-nr, --no-releases

Disable release handling in this repository

-p, --password

Password for remote repository (may be encrypted, see "maven:password -ep")

--help

Display this help message

-f, --force

Do not ask for confirmation

-id

Identifier of repository

-d, --default

Edit default repository instead of remote one

-s, --snapshots

Enable SNAPSHOT handling in the repository

-cp, --checksum-policy

Checksum policy for repository (ignore, warn (default), fail)

-u, --username

Username for remote repository

-x, --show-passwords

Do not hide passwords related to Maven encryption

-up, --update-policy

Update policy for repository (never, daily (default), interval:N, always)

14.6. maven:repository-list

14.6.1. Description

Maven repository summary.

14.6.2. Syntax

maven:repository-list [options]

14.6.3. Options

NameDescription

--help

Display this help message

-v, --verbose

Show additional information (policies, source)

-x, --show-passwords

Do not hide passwords related to Maven encryption

14.7. maven:repository-remove

14.7.1. Description

Removes Maven repository

14.7.2. Syntax

maven:repository-remove [options]

14.7.3. Options

NameDescription

--help

Display this help message

-f, --force

Do not ask for confirmation

-id

Identifier of repository

-d, --default

Edit default repository instead of remote one

-x, --show-passwords

Do not hide passwords related to Maven encryption

14.8. maven:summary

14.8.1. Description

Maven configuration summary.

14.8.2. Syntax

maven:summary [options]

14.8.3. Options

NameDescription

--help

Display this help message

-p, --property-ids

Use PID property identifiers instead of their names

-s, --source

Adds information about where the value is configured

-d, --description

Adds description of Maven configuration options

-x, --show-passwords

Do not hide passwords related to Maven encryption

Red Hat logoGithubRedditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

© 2024 Red Hat, Inc.