Skip to content

Commit

Permalink
Add the commons.cli to LemMinX-Maven LS runtime
Browse files Browse the repository at this point in the history
Signed-off-by: Christoph Läubrich <[email protected]>
  • Loading branch information
laeubi committed Feb 19, 2024
1 parent 9ea8ec3 commit 8c9e028
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions org.eclipse.m2e.editor.lemminx/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Bundle-SymbolicName: org.eclipse.m2e.editor.lemminx;singleton:=true
Bundle-Version: 2.0.600.qualifier
Automatic-Module-Name: org.eclipse.m2e.xmlls.extension
Import-Package: javax.inject;version="[1.0.0,2.0.0)",
org.apache.commons.cli;version="1.6.0",
org.eclipse.core.runtime;version="3.5.0",
org.osgi.framework;version="1.10.0",
org.slf4j;version="[1.7.0,3.0.0)"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
import java.util.Optional;
import java.util.concurrent.CompletableFuture;
import java.util.stream.Stream;

import org.apache.commons.cli.CommandLine;
import org.eclipse.core.runtime.FileLocator;
import org.eclipse.core.runtime.ILog;
import org.eclipse.core.runtime.Platform;
Expand Down Expand Up @@ -71,7 +71,7 @@ public List<File> get() {
addJarsFromBundle(FrameworkUtil.getBundle(org.apache.maven.Maven.class), "/jars/", mavenRuntimeJars);
// Libraries that are also required and not included in
// org.eclipse.m2e.maven.runtime
Stream.of(javax.inject.Inject.class, org.slf4j.Logger.class)//
Stream.of(javax.inject.Inject.class, org.slf4j.Logger.class, CommandLine.class)//
.map(FrameworkUtil::getBundle).map(FileLocator::getBundleFileLocation)//
.flatMap(Optional::stream).forEach(mavenRuntimeJars::add);
return mavenRuntimeJars;
Expand Down

0 comments on commit 8c9e028

Please sign in to comment.