From 9cff824a2124ea8a9b60fe49db832a40e2e6b5a2 Mon Sep 17 00:00:00 2001 From: laim2003 Date: Tue, 16 Jun 2026 19:18:08 +0200 Subject: [PATCH 1/9] #1987: Fixed GUI not launching for snapshot versions, added -l/--enableLogging flag to enable the printing of logs to the terminal for debugging purposes. --- CHANGELOG.adoc | 1 + .../java/com/devonfw/tools/ide/tool/gui/Gui.java | 12 +++++++++--- cli/src/main/package/gui/pom.xml | 16 +++++++++++++++- 3 files changed, 25 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.adoc b/CHANGELOG.adoc index 0caba7241b..968869807c 100644 --- a/CHANGELOG.adoc +++ b/CHANGELOG.adoc @@ -24,6 +24,7 @@ Release with new features and bugfixes: * https://github.com/devonfw/IDEasy/issues/1719[#1719]: Add Rust and MSVC support * https://github.com/devonfw/IDEasy/issues/1991[#1991]: Improve WindowsHelperMock * https://github.com/devonfw/IDEasy/issues/1457[#1457]: Improve CLI error messages on invalid args or commandlets not available in current context +* https://github.com/devonfw/IDEasy/issues/1987[#1987]: Fixed issue that the GUI would not launch in SNAPSHOT versions. Added -l flag to allow extended logging for the GUI. The full list of changes for this release can be found in https://github.com/devonfw/IDEasy/milestone/45?closed=1[milestone 2026.06.001]. diff --git a/cli/src/main/java/com/devonfw/tools/ide/tool/gui/Gui.java b/cli/src/main/java/com/devonfw/tools/ide/tool/gui/Gui.java index 01ab0ab3c1..da0221f589 100644 --- a/cli/src/main/java/com/devonfw/tools/ide/tool/gui/Gui.java +++ b/cli/src/main/java/com/devonfw/tools/ide/tool/gui/Gui.java @@ -13,6 +13,7 @@ import com.devonfw.tools.ide.process.ProcessContext; import com.devonfw.tools.ide.process.ProcessContextImpl; import com.devonfw.tools.ide.process.ProcessMode; +import com.devonfw.tools.ide.property.FlagProperty; import com.devonfw.tools.ide.tool.ToolEditionAndVersion; import com.devonfw.tools.ide.tool.ToolInstallRequest; import com.devonfw.tools.ide.tool.ToolInstallation; @@ -27,6 +28,8 @@ public class Gui extends Commandlet { private static final Logger LOG = LoggerFactory.getLogger(Gui.class); + private final FlagProperty enableExtendedLogging; + /** * @param context the {@link IdeContext}. */ @@ -34,6 +37,7 @@ public Gui(IdeContext context) { super(context); addKeyword(getName()); + enableExtendedLogging = add(new FlagProperty("--enableLogging", false, "-l")); } @Override @@ -69,9 +73,10 @@ protected void doRun() { } List args = List.of( - "-f", + "-U", //required for latest snapshot versions + "-f", //use specified POM file pomPath.toString(), - "exec:exec", + "org.codehaus.mojo:exec-maven-plugin:3.1.0:exec", "-Dexec.executable=java", "-Dexec.classpathScope=compile", "-Dexec.args=-classpath %classpath com.devonfw.ide.gui.AppLauncher" @@ -81,6 +86,7 @@ protected void doRun() { * We manually update the PATH entry with our java version, as by default IDEasy includes the SymLink under /projectname/software/java/bin in the PATH * In case of projects using older Java Versions, this is important as the java version of the project could potentially older. */ - mvn.runTool(processContext.withPathEntry(javaInstallation.binDir()), ProcessMode.BACKGROUND_SILENT, args); + ProcessMode processMode = this.enableExtendedLogging.isTrue() ? ProcessMode.DEFAULT : ProcessMode.BACKGROUND_SILENT; + mvn.runTool(processContext.withPathEntry(javaInstallation.binDir()), processMode, args); } } diff --git a/cli/src/main/package/gui/pom.xml b/cli/src/main/package/gui/pom.xml index d7d054450c..bc2d95e157 100644 --- a/cli/src/main/package/gui/pom.xml +++ b/cli/src/main/package/gui/pom.xml @@ -4,6 +4,21 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 + + + + ossrh + OSSRH Snapshots + https://central.sonatype.com/repository/maven-snapshots + + true + + + false + + + + com.devonfw.tools.IDEasy ide-gui-launcher $[project.version] @@ -17,5 +32,4 @@ $[project.version] - From 2cad10788fb2e017afea868471257ff1556385f7 Mon Sep 17 00:00:00 2001 From: laim2003 Date: Tue, 16 Jun 2026 22:19:44 +0200 Subject: [PATCH 2/9] #1987: added enableLogging flag descriptions --- cli/src/main/resources/nls/Help.properties | 1 + cli/src/main/resources/nls/Help_de.properties | 1 + 2 files changed, 2 insertions(+) diff --git a/cli/src/main/resources/nls/Help.properties b/cli/src/main/resources/nls/Help.properties index c197f8cb0b..4f3d232d2e 100644 --- a/cli/src/main/resources/nls/Help.properties +++ b/cli/src/main/resources/nls/Help.properties @@ -52,6 +52,7 @@ cmd.gradle=Tool commandlet for Gradle (Build-Tool). cmd.gradle.detail=Gradle is a build automation tool for Java, Kotlin, and other JVM-based languages. Detailed documentation can be found at https://docs.gradle.org/ cmd.gui=Tool commandlet for running the IDEasy GUI cmd.gui.detail=This command will run the GUI version of IDEasy, opening up a more comprehensible project dashboard and allowing for easier management of your local IDEasy instance. +cmd.gui.opt.--enableLogging=Run the GUI with enabled logging to the terminal. cmd.helm=Tool commandlet for Helm (Kubernetes Package Manager). cmd.helm.detail=Helm is a package manager for Kubernetes that simplifies deploying and managing applications. Detailed documentation can be found at https://helm.sh/docs/ cmd.help=Prints this help. diff --git a/cli/src/main/resources/nls/Help_de.properties b/cli/src/main/resources/nls/Help_de.properties index ffe1bd8459..85bbffd4e2 100644 --- a/cli/src/main/resources/nls/Help_de.properties +++ b/cli/src/main/resources/nls/Help_de.properties @@ -52,6 +52,7 @@ cmd.gradle=Werkzeug Kommando für Gradle (Build-Tool). cmd.gradle.detail=Gradle ist ein Build-Automatisierungstool für Java, Kotlin und andere JVM-basierte Sprachen. Detaillierte Dokumentation ist zu finden unter https://docs.gradle.org/ cmd.gui=Werkzeug Kommando, um die GUI von IDEasy zu öffnen. cmd.gui.detail=Dieser Befehl startet die GUI-Version von IDEasy, öffnet ein übersichtlicheres Projekt-Dashboard und erleichtert die Verwaltung Ihrer lokalen IDEasy-Instanz. +cmd.gui.opt.--enableLogging=Führe die GUI mit aktiviertem Debug-Logging auf das Terminal aus. cmd.helm=Werkzeug Kommando für Helm (Kubernetes Package Manager). cmd.helm.detail=Helm ist ein Paketmanager für Kubernetes, der das Bereitstellen und Verwalten von Anwendungen vereinfacht. Detaillierte Dokumentation ist zu finden unter https://helm.sh/docs/ cmd.help=Zeigt diese Hilfe an. From 954a923afeec2a52ebe564733a287a3d0f50c6ad Mon Sep 17 00:00:00 2001 From: laim2003 Date: Wed, 17 Jun 2026 00:38:52 +0200 Subject: [PATCH 3/9] #1987: added basic Gui Test (not fully working yet) --- .../com/devonfw/tools/ide/tool/gui/Gui.java | 7 ++- .../devonfw/tools/ide/tool/gui/GuiTest.java | 45 +++++++++++++++++++ .../gui/_ide/urls/java/java/25.0.2/urls | 1 + .../gui/_ide/urls/mvn/mvn/3.9.0/urls | 1 + .../gui/project/home/.ide/ide.properties | 1 + .../gui/project/settings/ide.properties | 0 .../gui/repository/java/java/default/bin/java | 2 + .../repository/java/java/default/bin/java.cmd | 2 + .../gui/repository/mvn/mvn/default/bin/mvn | 2 + 9 files changed, 57 insertions(+), 4 deletions(-) create mode 100644 cli/src/test/java/com/devonfw/tools/ide/tool/gui/GuiTest.java create mode 100644 cli/src/test/resources/ide-projects/gui/_ide/urls/java/java/25.0.2/urls create mode 100644 cli/src/test/resources/ide-projects/gui/_ide/urls/mvn/mvn/3.9.0/urls create mode 100644 cli/src/test/resources/ide-projects/gui/project/home/.ide/ide.properties create mode 100644 cli/src/test/resources/ide-projects/gui/project/settings/ide.properties create mode 100644 cli/src/test/resources/ide-projects/gui/repository/java/java/default/bin/java create mode 100644 cli/src/test/resources/ide-projects/gui/repository/java/java/default/bin/java.cmd create mode 100644 cli/src/test/resources/ide-projects/gui/repository/mvn/mvn/default/bin/mvn diff --git a/cli/src/main/java/com/devonfw/tools/ide/tool/gui/Gui.java b/cli/src/main/java/com/devonfw/tools/ide/tool/gui/Gui.java index da0221f589..e943bad559 100644 --- a/cli/src/main/java/com/devonfw/tools/ide/tool/gui/Gui.java +++ b/cli/src/main/java/com/devonfw/tools/ide/tool/gui/Gui.java @@ -11,7 +11,6 @@ import com.devonfw.tools.ide.commandlet.Commandlet; import com.devonfw.tools.ide.context.IdeContext; import com.devonfw.tools.ide.process.ProcessContext; -import com.devonfw.tools.ide.process.ProcessContextImpl; import com.devonfw.tools.ide.process.ProcessMode; import com.devonfw.tools.ide.property.FlagProperty; import com.devonfw.tools.ide.tool.ToolEditionAndVersion; @@ -28,7 +27,7 @@ public class Gui extends Commandlet { private static final Logger LOG = LoggerFactory.getLogger(Gui.class); - private final FlagProperty enableExtendedLogging; + final FlagProperty enableExtendedLogging; /** * @param context the {@link IdeContext}. @@ -49,7 +48,7 @@ public String getName() { @Override protected void doRun() { - ProcessContext processContext = new ProcessContextImpl(this.context); + ProcessContext processContext = context.newProcess(); Java java = this.context.getCommandletManager().getCommandlet(Java.class); Mvn mvn = this.context.getCommandletManager().getCommandlet(Mvn.class); @@ -62,7 +61,7 @@ protected void doRun() { new ToolEditionAndVersion(VersionIdentifier.of("25.*")) ); - mvn.installTool(mavenToolInstallRequest); + ToolInstallation mvnToolInstallation = mvn.installTool(mavenToolInstallRequest); ToolInstallation javaInstallation = java.installTool(javaToolInstallRequest); LOG.debug("Starting GUI via commandlet"); diff --git a/cli/src/test/java/com/devonfw/tools/ide/tool/gui/GuiTest.java b/cli/src/test/java/com/devonfw/tools/ide/tool/gui/GuiTest.java new file mode 100644 index 0000000000..fe2b83b324 --- /dev/null +++ b/cli/src/test/java/com/devonfw/tools/ide/tool/gui/GuiTest.java @@ -0,0 +1,45 @@ +package com.devonfw.tools.ide.tool.gui; + +import org.junit.jupiter.api.Test; + +import com.devonfw.tools.ide.context.AbstractIdeContextTest; +import com.devonfw.tools.ide.context.IdeTestContext; +import com.github.tomakehurst.wiremock.junit5.WireMockRuntimeInfo; +import com.github.tomakehurst.wiremock.junit5.WireMockTest; + +/** + * Tests for {@link Gui}. + */ +@WireMockTest +class GuiTest extends AbstractIdeContextTest { + + private static final String PROJECT_GUI = "gui"; + + @Test + void testEnableLoggingUsesDefaultProcessMode(WireMockRuntimeInfo wmRuntimeInfo) { + // arrange + IdeTestContext context = newContext(PROJECT_GUI, wmRuntimeInfo); + Gui gui = new Gui(context); + gui.enableExtendedLogging.setValue(true); + + // act + gui.run(); + + // assert: with ProcessMode.DEFAULT, process output is captured as INFO log + assertThat(context).logAtInfo().hasMessage("Scanning for projects..."); + } + + @Test + void testDisabledLoggingUsesBackgroundSilentMode(WireMockRuntimeInfo wmRuntimeInfo) { + // arrange + IdeTestContext context = newContext(PROJECT_GUI, wmRuntimeInfo); + Gui gui = new Gui(context); + // enableExtendedLogging is false by default → ProcessMode.BACKGROUND_SILENT + + // act + gui.run(); + + // assert: with ProcessMode.BACKGROUND_SILENT, process output is suppressed + assertThat(context).logAtInfo().hasNoMessage("Scanning for projects..."); + } +} diff --git a/cli/src/test/resources/ide-projects/gui/_ide/urls/java/java/25.0.2/urls b/cli/src/test/resources/ide-projects/gui/_ide/urls/java/java/25.0.2/urls new file mode 100644 index 0000000000..7c8b743bb9 --- /dev/null +++ b/cli/src/test/resources/ide-projects/gui/_ide/urls/java/java/25.0.2/urls @@ -0,0 +1 @@ +${testbaseurl}/download/java/java/25.0.2/java-25.0.2.tgz diff --git a/cli/src/test/resources/ide-projects/gui/_ide/urls/mvn/mvn/3.9.0/urls b/cli/src/test/resources/ide-projects/gui/_ide/urls/mvn/mvn/3.9.0/urls new file mode 100644 index 0000000000..7b9b924496 --- /dev/null +++ b/cli/src/test/resources/ide-projects/gui/_ide/urls/mvn/mvn/3.9.0/urls @@ -0,0 +1 @@ +${testbaseurl}/download/mvn/mvn/3.9.0/mvn-3.9.0.tgz diff --git a/cli/src/test/resources/ide-projects/gui/project/home/.ide/ide.properties b/cli/src/test/resources/ide-projects/gui/project/home/.ide/ide.properties new file mode 100644 index 0000000000..bd7a0330f3 --- /dev/null +++ b/cli/src/test/resources/ide-projects/gui/project/home/.ide/ide.properties @@ -0,0 +1 @@ +MAVEN_VERSION=3.9.0 diff --git a/cli/src/test/resources/ide-projects/gui/project/settings/ide.properties b/cli/src/test/resources/ide-projects/gui/project/settings/ide.properties new file mode 100644 index 0000000000..e69de29bb2 diff --git a/cli/src/test/resources/ide-projects/gui/repository/java/java/default/bin/java b/cli/src/test/resources/ide-projects/gui/repository/java/java/default/bin/java new file mode 100644 index 0000000000..bb96ab46f2 --- /dev/null +++ b/cli/src/test/resources/ide-projects/gui/repository/java/java/default/bin/java @@ -0,0 +1,2 @@ +#!/bin/bash +echo java $* diff --git a/cli/src/test/resources/ide-projects/gui/repository/java/java/default/bin/java.cmd b/cli/src/test/resources/ide-projects/gui/repository/java/java/default/bin/java.cmd new file mode 100644 index 0000000000..bb96ab46f2 --- /dev/null +++ b/cli/src/test/resources/ide-projects/gui/repository/java/java/default/bin/java.cmd @@ -0,0 +1,2 @@ +#!/bin/bash +echo java $* diff --git a/cli/src/test/resources/ide-projects/gui/repository/mvn/mvn/default/bin/mvn b/cli/src/test/resources/ide-projects/gui/repository/mvn/mvn/default/bin/mvn new file mode 100644 index 0000000000..746f35445b --- /dev/null +++ b/cli/src/test/resources/ide-projects/gui/repository/mvn/mvn/default/bin/mvn @@ -0,0 +1,2 @@ +#!/bin/bash +echo "Scanning for projects..." From c4bca9ff1519eb0572330b8fce732247e4364809 Mon Sep 17 00:00:00 2001 From: Lukas Faber Date: Wed, 17 Jun 2026 15:44:05 +0200 Subject: [PATCH 4/9] #1987: updated gui commandlet test project --- cli/pom.xml | 20 +++++++++++++++++++ .../com/devonfw/tools/ide/tool/gui/Gui.java | 5 +++++ .../gui/project/workspaces/main/.gitkeep | 0 .../gui/repository/java/java/default/bin/java | 0 .../repository/java/java/default/bin/java.cmd | 2 -- .../gui/repository/mvn/mvn/default/bin/mvn | 0 6 files changed, 25 insertions(+), 2 deletions(-) create mode 100644 cli/src/test/resources/ide-projects/gui/project/workspaces/main/.gitkeep mode change 100644 => 100755 cli/src/test/resources/ide-projects/gui/repository/java/java/default/bin/java delete mode 100644 cli/src/test/resources/ide-projects/gui/repository/java/java/default/bin/java.cmd mode change 100644 => 100755 cli/src/test/resources/ide-projects/gui/repository/mvn/mvn/default/bin/mvn diff --git a/cli/pom.xml b/cli/pom.xml index 8f7cab8247..10a81c4a20 100644 --- a/cli/pom.xml +++ b/cli/pom.xml @@ -191,6 +191,26 @@ + + + copy-gui-pom-to-test-project + process-test-resources + + copy-resources + + + ${project.basedir}/src/test/resources/ide-projects/gui/_ide/installation/gui + + + src/main/package/gui + false + + pom.xml + + + + + diff --git a/cli/src/main/java/com/devonfw/tools/ide/tool/gui/Gui.java b/cli/src/main/java/com/devonfw/tools/ide/tool/gui/Gui.java index e943bad559..4fc1fa9475 100644 --- a/cli/src/main/java/com/devonfw/tools/ide/tool/gui/Gui.java +++ b/cli/src/main/java/com/devonfw/tools/ide/tool/gui/Gui.java @@ -64,6 +64,11 @@ protected void doRun() { ToolInstallation mvnToolInstallation = mvn.installTool(mavenToolInstallRequest); ToolInstallation javaInstallation = java.installTool(javaToolInstallRequest); + // Register the freshly installed mvn on the IDEasy managed PATH so that the IDEasy controlled maven is used to launch + // the GUI instead of any maven that happens to be on the system PATH. We install via installTool (software repository + // only) and therefore have to register the bin directory ourselves (install() would normally do this). I tried to achieve this alternatively via .withPathEntry(), however, this did not work as expected. + context.getPath().setPath(mvn.getName(), mvnToolInstallation.binDir()); + LOG.debug("Starting GUI via commandlet"); Path pomPath = context.getIdeInstallationPath().resolve("gui/pom.xml"); diff --git a/cli/src/test/resources/ide-projects/gui/project/workspaces/main/.gitkeep b/cli/src/test/resources/ide-projects/gui/project/workspaces/main/.gitkeep new file mode 100644 index 0000000000..e69de29bb2 diff --git a/cli/src/test/resources/ide-projects/gui/repository/java/java/default/bin/java b/cli/src/test/resources/ide-projects/gui/repository/java/java/default/bin/java old mode 100644 new mode 100755 diff --git a/cli/src/test/resources/ide-projects/gui/repository/java/java/default/bin/java.cmd b/cli/src/test/resources/ide-projects/gui/repository/java/java/default/bin/java.cmd deleted file mode 100644 index bb96ab46f2..0000000000 --- a/cli/src/test/resources/ide-projects/gui/repository/java/java/default/bin/java.cmd +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/bash -echo java $* diff --git a/cli/src/test/resources/ide-projects/gui/repository/mvn/mvn/default/bin/mvn b/cli/src/test/resources/ide-projects/gui/repository/mvn/mvn/default/bin/mvn old mode 100644 new mode 100755 From a95c469602cef787fb6c28c4005e3feaacecf51a Mon Sep 17 00:00:00 2001 From: Lukas Faber Date: Wed, 17 Jun 2026 15:52:00 +0200 Subject: [PATCH 5/9] #1987: added comment --- cli/src/main/java/com/devonfw/tools/ide/tool/gui/Gui.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/cli/src/main/java/com/devonfw/tools/ide/tool/gui/Gui.java b/cli/src/main/java/com/devonfw/tools/ide/tool/gui/Gui.java index 4fc1fa9475..a31507ca74 100644 --- a/cli/src/main/java/com/devonfw/tools/ide/tool/gui/Gui.java +++ b/cli/src/main/java/com/devonfw/tools/ide/tool/gui/Gui.java @@ -64,9 +64,11 @@ protected void doRun() { ToolInstallation mvnToolInstallation = mvn.installTool(mavenToolInstallRequest); ToolInstallation javaInstallation = java.installTool(javaToolInstallRequest); - // Register the freshly installed mvn on the IDEasy managed PATH so that the IDEasy controlled maven is used to launch - // the GUI instead of any maven that happens to be on the system PATH. We install via installTool (software repository - // only) and therefore have to register the bin directory ourselves (install() would normally do this). I tried to achieve this alternatively via .withPathEntry(), however, this did not work as expected. + /* Register the freshly installed mvn on the IDEasy managed PATH so that the IDEasy controlled maven is used to launch + the GUI instead of any maven that happens to be on the system PATH. We install via installTool (software repository + only) and therefore have to register the bin directory ourselves (install() would normally do this). I tried to achieve this alternatively via .withPathEntry(), however, this did not work as expected. + This was tested on a Mac; potentially, withPathVariable() works correctly on windows. + */ context.getPath().setPath(mvn.getName(), mvnToolInstallation.binDir()); LOG.debug("Starting GUI via commandlet"); From 7ee54ba2a03381e631104cfe9c3826e03a37c2fa Mon Sep 17 00:00:00 2001 From: Lukas Faber Date: Wed, 17 Jun 2026 15:52:16 +0200 Subject: [PATCH 6/9] #1987: updated comment --- cli/src/main/java/com/devonfw/tools/ide/tool/gui/Gui.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/src/main/java/com/devonfw/tools/ide/tool/gui/Gui.java b/cli/src/main/java/com/devonfw/tools/ide/tool/gui/Gui.java index a31507ca74..a10c81eea2 100644 --- a/cli/src/main/java/com/devonfw/tools/ide/tool/gui/Gui.java +++ b/cli/src/main/java/com/devonfw/tools/ide/tool/gui/Gui.java @@ -67,7 +67,7 @@ protected void doRun() { /* Register the freshly installed mvn on the IDEasy managed PATH so that the IDEasy controlled maven is used to launch the GUI instead of any maven that happens to be on the system PATH. We install via installTool (software repository only) and therefore have to register the bin directory ourselves (install() would normally do this). I tried to achieve this alternatively via .withPathEntry(), however, this did not work as expected. - This was tested on a Mac; potentially, withPathVariable() works correctly on windows. + This was tested on a Mac; potentially, withPathVariable() works correctly on Windows. */ context.getPath().setPath(mvn.getName(), mvnToolInstallation.binDir()); From c7063861851f4c9276393ea946b201a24bc82a0b Mon Sep 17 00:00:00 2001 From: Lukas Faber Date: Wed, 17 Jun 2026 16:06:04 +0200 Subject: [PATCH 7/9] #1987: updated error messages --- cli/src/main/java/com/devonfw/tools/ide/tool/gui/Gui.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/cli/src/main/java/com/devonfw/tools/ide/tool/gui/Gui.java b/cli/src/main/java/com/devonfw/tools/ide/tool/gui/Gui.java index a10c81eea2..8982784554 100644 --- a/cli/src/main/java/com/devonfw/tools/ide/tool/gui/Gui.java +++ b/cli/src/main/java/com/devonfw/tools/ide/tool/gui/Gui.java @@ -93,6 +93,12 @@ the GUI instead of any maven that happens to be on the system PATH. We install v * In case of projects using older Java Versions, this is important as the java version of the project could potentially older. */ ProcessMode processMode = this.enableExtendedLogging.isTrue() ? ProcessMode.DEFAULT : ProcessMode.BACKGROUND_SILENT; - mvn.runTool(processContext.withPathEntry(javaInstallation.binDir()), processMode, args); + try { + mvn.runTool(processContext.withPathEntry(javaInstallation.binDir()), processMode, args); + } catch (Exception e) { + LOG.error( + "Failed to launch the GUI. If maven states issues with dependency resolution, check whether the maven M2 repo is enabled in your project.", + e); + } } } From c5b014a8f40ec8e374380c8851a0341c15c3976c Mon Sep 17 00:00:00 2001 From: laim2003 Date: Tue, 23 Jun 2026 15:41:01 +0200 Subject: [PATCH 8/9] #1987: Added pom.xml for tests --- cli/pom.xml | 20 ------------------- .../gui/_ide/installation/gui/pom.xml | 1 + 2 files changed, 1 insertion(+), 20 deletions(-) create mode 100644 cli/src/test/resources/ide-projects/gui/_ide/installation/gui/pom.xml diff --git a/cli/pom.xml b/cli/pom.xml index 10a81c4a20..8f7cab8247 100644 --- a/cli/pom.xml +++ b/cli/pom.xml @@ -191,26 +191,6 @@ - - - copy-gui-pom-to-test-project - process-test-resources - - copy-resources - - - ${project.basedir}/src/test/resources/ide-projects/gui/_ide/installation/gui - - - src/main/package/gui - false - - pom.xml - - - - - diff --git a/cli/src/test/resources/ide-projects/gui/_ide/installation/gui/pom.xml b/cli/src/test/resources/ide-projects/gui/_ide/installation/gui/pom.xml new file mode 100644 index 0000000000..fb0563a2f3 --- /dev/null +++ b/cli/src/test/resources/ide-projects/gui/_ide/installation/gui/pom.xml @@ -0,0 +1 @@ + From 656193a4273b66cbbe7e5af1f66e518b62f35fce Mon Sep 17 00:00:00 2001 From: laim2003 Date: Sat, 27 Jun 2026 00:33:25 +0200 Subject: [PATCH 9/9] #1987: added test resources --- .../ide-projects/gui/_ide/installation/gui/pom.xml | 6 ++++++ .../ide-projects/gui/project/workspaces/main/.gitkeep | 0 2 files changed, 6 insertions(+) create mode 100644 cli/src/test/resources/ide-projects/gui/_ide/installation/gui/pom.xml create mode 100644 cli/src/test/resources/ide-projects/gui/project/workspaces/main/.gitkeep diff --git a/cli/src/test/resources/ide-projects/gui/_ide/installation/gui/pom.xml b/cli/src/test/resources/ide-projects/gui/_ide/installation/gui/pom.xml new file mode 100644 index 0000000000..d6f26e7420 --- /dev/null +++ b/cli/src/test/resources/ide-projects/gui/_ide/installation/gui/pom.xml @@ -0,0 +1,6 @@ + + 4.0.0 + com.devonfw.ide + gui + 1.0-SNAPSHOT + diff --git a/cli/src/test/resources/ide-projects/gui/project/workspaces/main/.gitkeep b/cli/src/test/resources/ide-projects/gui/project/workspaces/main/.gitkeep new file mode 100644 index 0000000000..e69de29bb2