Calculate Maven Metadata

JFrog REST APIs

Content Type
REST API

Description: Calculates Maven metadata on the specified path (for local repositories only). A POM file must exist in the repository for the calculation to succeed.

The default value of the noneRecursive parameter [sic] is false, meaning that the folder and all its contents will be calculated recursively.

Note

The repository must contain a pom.xml file for the packages in order for the API to generate the maven-metadata.xml file. Without the pom.xml file, the API will not function as expected.

Security: Up to version 4.8, requires a valid admin user. From version 4.8, requires the following permissions: Manage, Delete/Overwrite, Deploy/Cache, Annotate, and Read.

Usage: POST /artifactory/api/maven/calculateMetadata/{repoKey}/{folder-path}?{noneRecursive=true | false}

Produces: application/text

Since: 3.0.2

Sample Output:

POST /artifactory/api/maven/calculateMetadata/libs-release-local/org/acme
OK