public class MavenWorkspaceRuntime extends AbstractMavenRuntime
| Modifier and Type | Field and Description |
|---|---|
private static ArtifactKey |
MAVEN_DISTRIBUTION |
private static java.lang.String |
MAVEN_EXECUTOR_CLASS |
private static java.lang.String |
PLEXUS_CLASSWORLD_NAME |
private static ArtifactKey |
PLEXUS_CLASSWORLDS |
private static IMavenProjectRegistry |
projectManager |
| Constructor and Description |
|---|
MavenWorkspaceRuntime(java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addArtifact(IMavenLauncherConfiguration collector,
org.apache.maven.artifact.Artifact artifact) |
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.
|
protected ArtifactKey |
getDistributionArtifactKey() |
java.lang.String |
getLocation() |
protected java.lang.String |
getMainClass() |
protected IMavenProjectFacade |
getMavenDistribution() |
java.lang.String |
getVersion() |
boolean |
isAvailable() |
boolean |
isEditable() |
java.lang.String |
toString() |
collectExtensions, equals, getExtensions, getName, getSettings, hashCode, isLegacy, isSupportedVersion, setExtensionsprivate static final ArtifactKey MAVEN_DISTRIBUTION
private static final ArtifactKey PLEXUS_CLASSWORLDS
private static final java.lang.String MAVEN_EXECUTOR_CLASS
private static final java.lang.String PLEXUS_CLASSWORLD_NAME
private static final IMavenProjectRegistry projectManager
protected ArtifactKey getDistributionArtifactKey()
protected java.lang.String getMainClass()
public java.lang.String getLocation()
getLocation in interface MavenRuntimegetLocation in class AbstractMavenRuntimepublic boolean isEditable()
isEditable in interface MavenRuntimeisEditable in class AbstractMavenRuntimepublic boolean isAvailable()
isAvailable in interface MavenRuntimeisAvailable in class AbstractMavenRuntimeprotected IMavenProjectFacade getMavenDistribution()
public void createLauncherConfiguration(IMavenLauncherConfiguration collector, org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreException
MavenRuntimecreateLauncherConfiguration in interface MavenRuntimecreateLauncherConfiguration in class AbstractMavenRuntimeorg.eclipse.core.runtime.CoreExceptionpublic java.lang.String toString()
toString in class java.lang.Objectprotected void addArtifact(IMavenLauncherConfiguration collector, org.apache.maven.artifact.Artifact artifact) throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreExceptionpublic java.lang.String getVersion()
getVersion in interface MavenRuntimegetVersion in class AbstractMavenRuntime