Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Toolbox mvnsh integration WIP #151

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Toolbox mvnsh integration WIP #151

wants to merge 1 commit into from

Conversation

cstamas
Copy link
Member

@cstamas cstamas commented Dec 15, 2024

Integrate Toolbox into mvnsh.

Example:

[cstamas@blondie laeubi]$ mvnsh
mvnsh> help
  System:
    exit                   help                   
  Builtins:
    colors                 highlighter            history                keymap                 less                   nano                   setopt                 
    setvar                 top                    unsetopt               widget                 
  Maveniverse Toolbox:
    artifact-path          classpath              copy                   copy-gav               copy-recorded          copy-transitive        deploy                 
    deploy-recorded        dm-list                dm-tree                dump                   effective-model        exists                 identify               
    install                libyear                list                   list-available-plugins list-repositories      local-repository-path  metadata-path          
    record                 repl                   resolve                resolve-transitive     search                 tree                   verify                 
    versions               
  Builtin Maven Shell commands:
    mvn                    mvnenc                 
mvnsh> 

Note: as jline is not exposed, this .mvn/extenions.xml should be used:

<?xml version="1.0" encoding="UTF-8"?>
<extensions>
    <extension>
        <groupId>eu.maveniverse.maven.plugins</groupId>
        <artifactId>toolbox</artifactId>
        <version>0.6.1-SNAPSHOT</version>
        <classLoadingStrategy>parent-first</classLoadingStrategy>
    </extension>

Needs apache/maven#1982

Integrate Toolbox into mvnsh
@cstamas cstamas self-assigned this Dec 15, 2024
@cstamas cstamas changed the title Toolbox mvnsh integration Toolbox mvnsh integration WIP Dec 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant