public class MavenEmbeddedRuntime extends AbstractMavenRuntime
Modifier and Type | Field and Description |
---|---|
private static java.lang.String[] |
CLASSPATH |
private static java.lang.String[] |
LAUNCHER_CLASSPATH |
private static org.slf4j.Logger |
log |
private static org.osgi.framework.Bundle |
m2eCore |
private static java.lang.String |
MAVEN_CORE_POM_PROPERTIES |
private static java.lang.String |
MAVEN_EMBEDDER_BUNDLE_SYMBOLICNAME |
private static java.lang.String |
MAVEN_EXECUTOR_CLASS |
private static java.lang.String |
mavenVersion |
static java.lang.String |
PLEXUS_CLASSWORLD_NAME |
Constructor and Description |
---|
MavenEmbeddedRuntime() |
Modifier and Type | Method and Description |
---|---|
private void |
addBundleClasspathEntries(java.util.Set<java.lang.String> entries,
org.osgi.framework.Bundle bundle) |
void |
createLauncherConfiguration(IMavenLauncherConfiguration collector,
org.eclipse.core.runtime.IProgressMonitor monitor)
Reads m2.conf file and notifies configuration collector of the logical content of plexus configuration.
|
private org.osgi.framework.Bundle |
findMavenEmbedderBundle() |
java.lang.String |
getLocation() |
java.lang.String |
getVersion() |
private java.lang.String |
getVersion(org.osgi.framework.Bundle bundle) |
private void |
initClasspath(org.osgi.framework.Bundle mavenRuntimeBundle) |
boolean |
isAvailable() |
boolean |
isEditable() |
java.lang.String |
toString() |
collectExtensions, equals, getExtensions, getName, getSettings, hashCode, isLegacy, isSupportedVersion, setExtensions
private static final java.lang.String MAVEN_CORE_POM_PROPERTIES
private static final org.slf4j.Logger log
private static final java.lang.String MAVEN_EMBEDDER_BUNDLE_SYMBOLICNAME
private static final java.lang.String MAVEN_EXECUTOR_CLASS
public static final java.lang.String PLEXUS_CLASSWORLD_NAME
private static java.lang.String[] LAUNCHER_CLASSPATH
private static java.lang.String[] CLASSPATH
private static volatile java.lang.String mavenVersion
private static final org.osgi.framework.Bundle m2eCore
public boolean isEditable()
isEditable
in interface MavenRuntime
isEditable
in class AbstractMavenRuntime
public java.lang.String getLocation()
getLocation
in interface MavenRuntime
getLocation
in class AbstractMavenRuntime
public boolean isAvailable()
isAvailable
in interface MavenRuntime
isAvailable
in class AbstractMavenRuntime
public void createLauncherConfiguration(IMavenLauncherConfiguration collector, org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreException
MavenRuntime
createLauncherConfiguration
in interface MavenRuntime
createLauncherConfiguration
in class AbstractMavenRuntime
org.eclipse.core.runtime.CoreException
private void initClasspath(org.osgi.framework.Bundle mavenRuntimeBundle)
private void addBundleClasspathEntries(java.util.Set<java.lang.String> entries, org.osgi.framework.Bundle bundle)
private org.osgi.framework.Bundle findMavenEmbedderBundle()
public java.lang.String toString()
toString
in class java.lang.Object
private java.lang.String getVersion(org.osgi.framework.Bundle bundle)
public java.lang.String getVersion()
getVersion
in interface MavenRuntime
getVersion
in class AbstractMavenRuntime