diff --git a/independent-projects/tools/devtools-common/src/main/java/io/quarkus/cli/plugin/PluginManager.java b/independent-projects/tools/devtools-common/src/main/java/io/quarkus/cli/plugin/PluginManager.java index d230c9cabd3a7..aabcfa800b8ae 100644 --- a/independent-projects/tools/devtools-common/src/main/java/io/quarkus/cli/plugin/PluginManager.java +++ b/independent-projects/tools/devtools-common/src/main/java/io/quarkus/cli/plugin/PluginManager.java @@ -97,10 +97,11 @@ public Optional addPlugin(String nameOrLocation, boolean userCatalog, Op Map installablePlugins = state.installablePlugins(); Optional plugin = Optional.ofNullable(installablePlugins.get(name)).map(Plugin::inUserCatalog); return plugin.map(p -> { - PluginCatalog updatedCatalog = state.pluginCatalog(userCatalog).addPlugin(p); + Plugin withDescription = p.withDescription(description); + PluginCatalog updatedCatalog = state.pluginCatalog(userCatalog).addPlugin(withDescription); pluginCatalogService.writeCatalog(updatedCatalog); state.invalidateInstalledPlugins(); - return p; + return withDescription; }); }