Skip to content

Commit 1bc7bfa

Browse files
authored
Support for enabling and configuring snapshot policy for maven projects (#191)
1 parent 5c2a5da commit 1bc7bfa

File tree

1 file changed

+17
-15
lines changed

1 file changed

+17
-15
lines changed

jfrog-applications/jfrog-cli/binaries-management-with-jfrog-artifactory/package-managers-integration.md

+17-15
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,23 @@ JFrog CLI includes integration with Maven, allowing you to resolve dependencies
99
Before using the **jf mvn** command, the project needs to be pre-configured with the Artifactory server and repositories, to be used for building and publishing the project. The **jf mvn-config** command should be used once to add the configuration to the project. The command should run while inside the root directory of the project. The configuration is stored by the command in the **.jfrog** directory at the root directory of the project.
1010

1111

12-
| | |
13-
|--------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
14-
| Command-name | mvn-config |
15-
| Abbreviation | mvnc |
16-
| **Command options:** | |
17-
| `--global` | <p>[Optional]<br>Set to true, if you'd like the configuration to be global (for all projects on the machine). Specific projects can override the global configuration.</p> |
18-
| `--server-id-resolve` | <p>[Optional]<br>Server ID for resolution. The server should configured using the 'jf rt c' command.</p> |
19-
| `--server-id-deploy` | <p>[Optional]<br>Server ID for deployment. The server should be configured using the 'jf rt c' command.</p> |
20-
| `--repo-resolve-releases` | <p>[Optional]<br>Resolution repository for release dependencies.</p> |
21-
| `--repo-resolve-snapshots` | <p>[Optional]<br>Resolution repository for snapshot dependencies.</p> |
22-
| `--repo-deploy-releases` | <p>[Optional]<br>Deployment repository for release artifacts.</p> |
23-
| `--repo-deploy-snapshots` | <p>[Optional]<br>Deployment repository for snapshot artifacts.</p> |
24-
| `--include-patterns` | <p>[Optional]<br>Filter deployed artifacts by setting a wildcard pattern that specifies which artifacts to include. You may provide multiple comma-separated(,) patterns followed by a white-space. For example<br><br>artifact-<em>.jar, artifact-</em>.pom</p> |
25-
| `--exclude-patterns` | <p>[Optional]<br>Filter deployed artifacts by setting a wildcard pattern that specifies which artifacts to exclude. You may provide multiple comma-separated(,) followed by a white-space. For example<br><br>artifact-<em>-test.jar, artifact-</em>-test.pom</p> |
26-
| **Command arguments:** | The command accepts no arguments |
12+
| | |
13+
|-----------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
14+
| Command-name | mvn-config |
15+
| Abbreviation | mvnc |
16+
| **Command options:** | |
17+
| `--global` | <p>[Optional]<br>Set to true, if you'd like the configuration to be global (for all projects on the machine). Specific projects can override the global configuration.</p> |
18+
| `--server-id-resolve` | <p>[Optional]<br>Server ID for resolution. The server should configured using the 'jf rt c' command.</p> |
19+
| `--server-id-deploy` | <p>[Optional]<br>Server ID for deployment. The server should be configured using the 'jf rt c' command.</p> |
20+
| `--repo-resolve-releases` | <p>[Optional]<br>Resolution repository for release dependencies.</p> |
21+
| `--repo-resolve-snapshots` | <p>[Optional]<br>Resolution repository for snapshot dependencies.</p> |
22+
| `--repo-deploy-releases` | <p>[Optional]<br>Deployment repository for release artifacts.</p> |
23+
| `--repo-deploy-snapshots` | <p>[Optional]<br>Deployment repository for snapshot artifacts.</p> |
24+
| `--include-patterns` | <p>[Optional]<br>Filter deployed artifacts by setting a wildcard pattern that specifies which artifacts to include. You may provide multiple comma-separated(,) patterns followed by a white-space. For example<br><br>artifact-<em>.jar, artifact-</em>.pom</p> |
25+
| `--exclude-patterns` | <p>[Optional]<br>Filter deployed artifacts by setting a wildcard pattern that specifies which artifacts to exclude. You may provide multiple comma-separated(,) followed by a white-space. For example<br><br>artifact-<em>-test.jar, artifact-</em>-test.pom</p> |
26+
| `--disable-snapshots` | <p>[Default:false] <br>Set to true to disable snapshot resolution.</p> |
27+
| `--snapshots-update-policy` | <p>[Optional] <br>Set snapshot update policy. Defaults to daily.</p> |
28+
| **Command arguments:** | The command accepts no arguments |
2729

2830
### Running maven
2931

0 commit comments

Comments
 (0)