Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,17 @@ public void add(String candidate) {
this.candidates.add(candidate);
}

/**
* Adds a new completion candidate together with a synonym. For now this adds both values.
*
* @param candidate the candidate to add.
* @param synonym to add a long with the candidate
*/
public void add(String candidate, String synonym) {
add(candidate);
add(synonym);
}


/**
* Adds all candidates matching the given argument to the collector.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ protected MavenCommandlet(IdeContext context, String tool) {

super(context, tool, Set.of(Tag.JAVA, Tag.BUILD));
}

/**
* Initializes common Maven auto-completion candidates.
*
Expand Down Expand Up @@ -66,9 +66,18 @@ protected void initAutoCompletionRegistry(AutoCompletionRegistry registry) {
registry.add("-U");
registry.add("-o");
registry.add("-f");
registry.add("-s");
registry.add("-s", "--settings");
registry.add("-rf");
registry.add("-DdeployAtEnd=true");
registry.add("-Dmaven.multiModuleProjectDirectory=");
registry.add("-Dmaven.repo.local=");
registry.add("-Dmvnd.socketConnectTimeout=");
registry.add("-Dmvnd.socketFamily=");
registry.add("-Dmvnd.threadStackSize=");
registry.add("-T", "--threads");
registry.add("-Dstyle.color=");
registry.add("-Duser.dir=");
registry.add("-Duser.home=");
}
}

Expand Down
10 changes: 0 additions & 10 deletions cli/src/main/java/com/devonfw/tools/ide/tool/mvnd/Mvnd.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,6 @@ protected void initAutoCompletionRegistry(AutoCompletionRegistry registry) {
registry.add("--file");
registry.add("-Djava.home=");
registry.add("-Djdk.java.options=");
registry.add("-Dmaven.multiModuleProjectDirectory=");
registry.add("-Dmaven.repo.local=");
registry.add("--settings");
registry.add("-Dmvnd.buildTime=");
registry.add("--builder");
registry.add("-Dmvnd.cancelConnectTimeout=");
Expand Down Expand Up @@ -70,13 +67,6 @@ protected void initAutoCompletionRegistry(AutoCompletionRegistry registry) {
registry.add("-Dmvnd.registry=");
registry.add("-Dmvnd.rollingWindowSize=");
registry.add("--serial");
registry.add("-Dmvnd.socketConnectTimeout=");
registry.add("-Dmvnd.socketFamily=");
registry.add("-Dmvnd.threadStackSize=");
registry.add("--threads");
registry.add("-Dstyle.color=");
registry.add("-Duser.dir=");
registry.add("-Duser.home=");
}

@Override
Expand Down
Loading