io7m | single-page | multi-page | epub | Montarre User Manual 0.0.5
5.2. help
Previous
5. Command Line
Up
5.4. native create
Next

# 5.3. maven-central download

- 5.3.1. Name
- 5.3.2. Description
- 5.3.3. Parameters
- 5.3.4. Examples

## 5.3.1. Name

1
maven-central download - Download a package from Maven Central

## 5.3.2. Description

1
The maven-central download command downloads an artifact from Maven Central, or an appropriate remote Maven repository.
2
The command takes --base-uri-snapshots and --base-uri-releases parameters that are, by default, configured to point to the Sonatype Snapshots repository and the Maven Central releases repository. If the version number given by the --version parameter ends with the string -SNAPSHOT, the repository named by --base-uri-snapshots is used for downloads. Otherwise, the repository named by --base-uri-releases is used.

## 5.3.3. Parameters

### 5.3.3.1. --artifact

Attribute | Value
--- | ---
Name | --artifact
Type | java.lang.String
Default Value |
Cardinality | [1, 1]
Description | The artifact name.

### 5.3.3.2. --base-uri-releases

Attribute | Value
--- | ---
Name | --base-uri-releases
Type | java.net.URI
Default Value | https://repo1.maven.org/maven2
Cardinality | [1, 1]
Description | The base repository URI for release versions.

### 5.3.3.3. --base-uri-snapshots

Attribute | Value
--- | ---
Name | --base-uri-snapshots
Type | java.net.URI
Default Value | https://s01.oss.sonatype.org/content/repositories/snapshots
Cardinality | [1, 1]
Description | The base repository URI for -SNAPSHOT versions.

### 5.3.3.4. --classifier

Attribute | Value
--- | ---
Name | --classifier
Type | java.lang.String
Default Value |
Cardinality | [0, 1]
Description | The classifier name.

### 5.3.3.5. --group

Attribute | Value
--- | ---
Name | --group
Type | java.lang.String
Default Value |
Cardinality | [1, 1]
Description | The group name.

### 5.3.3.6. --output-file

Attribute | Value
--- | ---
Name | --output-file
Type | java.nio.file.Path
Default Value |
Cardinality | [1, 1]
Description | The output file.

### 5.3.3.7. --type

Attribute | Value
--- | ---
Name | --type
Type | java.lang.String
Default Value | jar
Cardinality | [1, 1]
Description | The artifact type.

### 5.3.3.8. --verbose

Attribute | Value
--- | ---
Name | --verbose
Type | com.io7m.quarrel.ext.logback.QLogLevel
Default Value | info
Cardinality | [1, 1]
Description | Set the logging level of the application.

### 5.3.3.9. --version

Attribute | Value
--- | ---
Name | --version
Type | java.lang.String
Default Value |
Cardinality | [1, 1]
Description | The version.

## 5.3.4. Examples

### 5.3.4.1. Example

    $ montarre maven-central download \
    --artifact com.io7m.junreachable.core \
    --version 4.0.0 \
    --group com.io7m.junreachable \
    --output-file junreachable.jar
    INFO com.io7m.montarre.cmdline.internal.MCPackageCheck: Downloading: https://repo1.maven.org/maven2/com/io7m/junreachable/com.io7m.junreachable.core/4.0.0/com.io7m.junreachable.core-4.0.0.jar
    INFO com.io7m.montarre.cmdline.internal.MCPackageCheck: Checksum: https://repo1.maven.org/maven2/com/io7m/junreachable/com.io7m.junreachable.core/4.0.0/com.io7m.junreachable.core-4.0.0.jar.sha1
    INFO com.io7m.montarre.cmdline.internal.MCPackageCheck: Download: 0 bytes/4 KB (0 bytes/s) ~PT0S remaining
    INFO com.io7m.montarre.cmdline.internal.MCPackageCheck: Download: 0 bytes/40 bytes (0 bytes/s) ~PT0S remaining

5.2. help
Previous
5. Command Line
Up
5.4. native create
Next
io7m | single-page | multi-page | epub | Montarre User Manual 0.0.5