cs Verified current stable Not installed? Package Management

Cs / List Library Versions By Maven Group And Artifact Identifier

List Library Versions By Maven Group And Artifact Identifier

Lists versions of a specified library from a Maven group and artifact identifier.

$
Terminal
cs complete-dep <group_id>:<artifact_id>

When To Use

When needing to identify which versions of a library are available in a given repository.

Pro Tip

Use --latest flag to fetch only the latest version information. For libraries with multiple versions, be mindful of version compatibility issues.

Command Builder

Tune the command before you copy it

Back to syntax
$
Generated Command
cs complete-dep <group_id>:<artifact_id>

Terminal Output

Expected runtime feedback

Simulated preview
>
Output
+----------------------+------------------+
|      Version         |      Description  |
+----------------------+------------------+
|       1.0.0         | Initial release   |
|       1.1.0         | Bug fixes         |
|       2.0.0         | Major updates     |
+----------------------+------------------+

Anatomy of Output

Understanding the result

Retrieving versions for: com.example:my-library Fetching Versions

Indicates the start of version retrieval.

Available Versions: 1.0.0, 1.2.0, 2.0.0 Version List

List of versions available for the specified artifact.

Request completed in 2 seconds Performance

Duration of the version retrieval request.

Use --latest to fetch only the latest version. Tip

Suggestion for refining the request.

Troubleshooting

Common pitfalls

Error: Group ID not found

Solution: Check if the group ID is correctly specified.

Error: Artifact ID not found

Solution: Verify that the artifact ID matches an existing entry.

Error: Network timeout, unable to connect to repository

Solution: Ensure the repository URL is reachable from your network.

Command Breakdown

What each part is doing

cs
Base Command
The executable that performs this operation. Here it runs Cs before the shell applies any redirect operators.
<group_id>
group id
The value supplied for group id.
<artifact_id>
artifact id
The value supplied for artifact id.

How To Run

Execution path

  1. Step 1

    Run the command: `cs complete-dep com.example:my-library`

  2. Step 2

    Check the output for available versions and descriptions.

Alternative Approaches

Comparable commands in other tools

Alternative package management tools for the same job.