Using Artifactory 6.x ?
JFrog Artifactory 6.x User Guide
Have a question? Want to report an issue?Contact JFrog support
Overview
配置一个本地存储库, in theAdminmodule, go toRepositories | Localand click it to display theEdit Repositoryscreen.
Common Basic Settings
The following are fully described in theCommon Settingspage.
Additional Basic Settings
Repositories may have additionalBasicsettings depending on thePackage Type.
Maven, Gradle, Ivy and SBT Repositories
Maven, Gradle, Ivy and SBT repositories share the same additionalBasicsettings.
Checksum Policy |
Checking the Checksum effectively verifies the integrity of a deployed resource. TheChecksum Policy决定Artifactory行为当客户端checksum for a deployed resource is missing or conflicts with the locally calculated checksum. There are two options:
|
Maven Snapshot Version Behavior |
Artifactory supports centralized control of how snapshots are deployed into a repository, regardless of end user-specific settings. This can be used to guarantee a standardized format for deployed snapshots within your organization. There are three options:
Maven 3 Only Supports Unique Snapshots Maven 3 has dropped support for resolving and deploying non-unique snapshots. Therefore, if you have a snapshot repository using non-unique snapshots, we recommend that you change your Maven snapshot policy to 'Unique' and remove any previously deployed snapshots from this repository. The unique snapshot name generated by the Maven client on deployment cannot help in identifying the source control changes from which the snapshot was built and has no relation to the time sources were checked out. Therefore,we recommend that the artifact itself should embed the revision/tag (as part of its name or internally) for clear and visible revision tracking. Artifactory allows you to tag artifacts with the revision number as part of itsBuild Integrationsupport. |
Max Unique Snapshots |
Specifies the maximum number of unique snapshots of the same artifact that should be stored. Once this number is reached and a new snapshot is uploaded, the oldest stored snapshot is removed automatically. A value of 0 (default) indicates that there is no limit on the number of unique snapshots. |
Handle Releases |
If set, Artifactory allows you to deploy release artifacts into this repository. |
Handle Snapshots |
If set, Artifactory allows you to deploy snapshot artifacts into this repository. |
Suppress POM Consistency |
When deploying an artifact to a repository, Artifactory verifies that the value set forgroupId:artifactId:version in the POM is consistent with the deployed path.If there is a conflict between these then Artifcatory will reject the deployment. You can disable this behavior by setting this checkbox. |
Other Repository Types
For other type-specific repository configuration, please refer to the corresponding repository page underArtifactory Pro.
Advanced Settings
Select Property Sets |
Defines the property sets that will be available for artifacts stored in this repository. |
Blacked Out |
If set, Artifactory ignores this repository when trying to resolve artifacts. The repository is also not available for download or deployment of artifacts. |
Allow Content Browsing |
If set, allows you to view file contents (e.g., Javadoc browsing, HTML files) directly from Artifactory. Security When content browsing is allowed we recommend strict content moderation to ensure that any uploaded content does not compromise security (for example, cross-site scripting attacks) |
Replications
TheReplicationstab lets you define and edit replication settings for the repository. For details, please refer toRepository Replication.
Pre-defined Local Repositories
Artifactory comes with a set of pre-defined local repositories, which reflect best practices in binary repository management as follows:
libs-release-local |
Your code releases |
libs-snapshot-local |
Your code snapshots |
ext-release-local |
Manually deployed 3rd party libs (releases) |
ext-snapshot-local |
Manually deployed 3rd party libs (shapshots) |
plugins-release-local |
Your and 3rd party plugins (releases) |
plugins-snapshot-local |
Your and 3rd party plugins (snapshots) |