Skip to content

Commit 8c9e028

Browse files
committed
Add the commons.cli to LemMinX-Maven LS runtime
Signed-off-by: Christoph Läubrich <[email protected]>
1 parent 9ea8ec3 commit 8c9e028

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

org.eclipse.m2e.editor.lemminx/META-INF/MANIFEST.MF

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ Bundle-SymbolicName: org.eclipse.m2e.editor.lemminx;singleton:=true
55
Bundle-Version: 2.0.600.qualifier
66
Automatic-Module-Name: org.eclipse.m2e.xmlls.extension
77
Import-Package: javax.inject;version="[1.0.0,2.0.0)",
8+
org.apache.commons.cli;version="1.6.0",
89
org.eclipse.core.runtime;version="3.5.0",
910
org.osgi.framework;version="1.10.0",
1011
org.slf4j;version="[1.7.0,3.0.0)"

org.eclipse.m2e.editor.lemminx/src/org/eclipse/m2e/editor/lemminx/MavenRuntimeClasspathProvider.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
import java.util.Optional;
2323
import java.util.concurrent.CompletableFuture;
2424
import java.util.stream.Stream;
25-
25+
import org.apache.commons.cli.CommandLine;
2626
import org.eclipse.core.runtime.FileLocator;
2727
import org.eclipse.core.runtime.ILog;
2828
import org.eclipse.core.runtime.Platform;
@@ -71,7 +71,7 @@ public List<File> get() {
7171
addJarsFromBundle(FrameworkUtil.getBundle(org.apache.maven.Maven.class), "/jars/", mavenRuntimeJars);
7272
// Libraries that are also required and not included in
7373
// org.eclipse.m2e.maven.runtime
74-
Stream.of(javax.inject.Inject.class, org.slf4j.Logger.class)//
74+
Stream.of(javax.inject.Inject.class, org.slf4j.Logger.class, CommandLine.class)//
7575
.map(FrameworkUtil::getBundle).map(FileLocator::getBundleFileLocation)//
7676
.flatMap(Optional::stream).forEach(mavenRuntimeJars::add);
7777
return mavenRuntimeJars;

0 commit comments

Comments
 (0)