> ## Documentation Index
> Fetch the complete documentation index at: https://docs.flexagon.com/llms.txt
> Use this file to discover all available pages before exploring further.

# retrieveArtifactGAV (Nexus)

> @Since 11.2.0.0 This operation retrieves an artifact from Nexus Repository Manager using Maven GAV coordinates (Group ID, Artifact ID, and Version) an

@Since 11.2.0.0

This operation retrieves an artifact from Nexus Repository Manager using Maven GAV coordinates (Group ID, Artifact ID, and Version) and stores it in the FlexDeploy artifact repository for use in a FlexDeploy workflow. Unlike retrieveArtifact, you do not need to supply a full remote path; FlexDeploy builds the standard Maven repository path under the selected repository.

The downloaded file name is `\{artifactId\}-\{version\}[-classifier].\{packaging\}` using the literal version string (including `-SNAPSHOT`). Nexus may resolve SNAPSHOT via metadata on GET; for a unique timestamped snapshot, pass that version string.

# Inputs

<table><thead><tr><th>**Input Name**</th><th>**Input Code**</th><th>**Required**</th><th>**Description**</th></tr></thead><tbody><tr><td>Nexus URL</td><td>`FDNEXUS_URL`</td><td>Yes</td><td>The URL of Nexus Repository Manager (e.g. `http://[host]:[port]`).</td></tr><tr><td>Nexus Username</td><td>`FDNEXUS_USERNAME`</td><td>Yes</td><td>User to connect to Nexus as.</td></tr><tr><td>Nexus Password</td><td>`FDNEXUS_PASSWORD`</td><td>Yes</td><td>The password for the Nexus User.</td></tr><tr><td>Nexus Version</td><td>`FDNEXUS_VERSION`</td><td>Yes</td><td>The version of Nexus Repository Manager being used. (Nexus 3.X or Nexus 2.X)</td></tr><tr><td>Nexus Repository</td><td>`FDNEXUS_REPOSITORY`</td><td>Yes</td><td>Identifier of the Nexus repository. Repository ID for Nexus 2, repository name for Nexus 3. - If using Nexus 2, then repository id is in URL after *FDNEXUS\_URL/nexus/content/repositories/FDNEXUS\_REPOSITORY*. - If using Nexus 3, then repository name is in URL after *FDNEXUS\_URL/repository/FDNEXUS\_REPOSITORY*.</td></tr><tr><td>Group ID</td><td>`FDNEXUS_GROUP_ID`</td><td>Yes</td><td>@Since 11.2.0.0 Maven groupId of the artifact (e.g. `com.example`).</td></tr><tr><td>Artifact ID</td><td>`FDNEXUS_ARTIFACT_ID`</td><td>Yes</td><td>@Since 11.2.0.0 Maven artifactId of the artifact.</td></tr><tr><td>Artifact Version</td><td>`FDNEXUS_ARTIFACT_VERSION`</td><td>Yes</td><td>@Since 11.2.0.0 Maven version of the artifact to retrieve.</td></tr><tr><td>Packaging</td><td>`FDNEXUS_PACKAGING`</td><td>No</td><td>@Since 11.2.0.0 Maven packaging/extension (e.g. jar, war, pom). Defaults to jar.</td></tr><tr><td>Classifier</td><td>`FDNEXUS_CLASSIFIER`</td><td>No</td><td>@Since 11.2.0.0 Optional Maven classifier (e.g. sources, javadoc).</td></tr><tr><td>Download To Directory</td><td>`FDNEXUS_DOWNLOAD_TO_DIR`</td><td>No</td><td>Specify the Path to which the remote Artifact will be downloaded. If no inputs given, the default Artifacts dir will be used.</td></tr></tbody></table>

# Artifacts

This operation produces artifacts that will be stored in the artifacts repository.

# Endpoint Selection

This operation will select all available endpoints associated to the target.

# Endpoint Execution

This operation will execute on any one of the selected endpoints and will be random in the determination of which one.
