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, setExtensions
private 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 MavenRuntime
getLocation
in class AbstractMavenRuntime
public boolean isEditable()
isEditable
in interface MavenRuntime
isEditable
in class AbstractMavenRuntime
public boolean isAvailable()
isAvailable
in interface MavenRuntime
isAvailable
in class AbstractMavenRuntime
protected IMavenProjectFacade getMavenDistribution()
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
public java.lang.String toString()
toString
in class java.lang.Object
protected void addArtifact(IMavenLauncherConfiguration collector, org.apache.maven.artifact.Artifact artifact) throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
public java.lang.String getVersion()
getVersion
in interface MavenRuntime
getVersion
in class AbstractMavenRuntime