Files
tldr/pages.zh/common/cs-complete-dep.md

20 lines
677 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# cs 完整依赖
> 搜索库而不直接在网络上进行。
> 更多信息:<https://get-coursier.io/docs/cli-complete>。
- 打印在特定 Maven 组标识符下发布的工件:
`cs complete-dep {{group_id}}`
- 列出在特定 Maven 组标识符和工件标识符下发布的库版本:
`cs complete-dep {{group_id}}:{{artifact_id}}`
- 打印在给定 Maven groupId 下发布的工件,搜索 ivy2local
`cs complete-dep {{group_id}} --repository ivy2local`
- 列出在 Maven 组标识符下发布的工件,搜索特定的仓库和凭证:
`cs complete-dep {{group_id}}:{{artifact_id}} --repository {{repository_url}} --credentials {{user}}:{{password}}`