public class MavenImpl extends Object implements IMaven, IMavenConfigurationChangeListener
| Modifier and Type | Field and Description |
|---|---|
static String |
MAVEN_CORE_REALM_ID
Id of maven core class realm
|
| Constructor and Description |
|---|
MavenImpl(IMavenConfiguration mavenConfiguration) |
| Modifier and Type | Method and Description |
|---|---|
void |
addLocalRepositoryListener(ILocalRepositoryListener listener) |
void |
addSettingsChangeListener(ISettingsChangeListener listener) |
org.apache.maven.settings.Settings |
buildSettings(String globalSettings,
String userSettings) |
org.apache.maven.lifecycle.MavenExecutionPlan |
calculateExecutionPlan(org.apache.maven.project.MavenProject project,
List<String> goals,
boolean setup,
org.eclipse.core.runtime.IProgressMonitor monitor) |
org.apache.maven.lifecycle.MavenExecutionPlan |
calculateExecutionPlan(org.apache.maven.execution.MavenSession session,
org.apache.maven.project.MavenProject project,
List<String> goals,
boolean setup,
org.eclipse.core.runtime.IProgressMonitor monitor) |
org.apache.maven.artifact.repository.ArtifactRepository |
createArtifactRepository(String id,
String url) |
org.eclipse.aether.transfer.TransferListener |
createArtifactTransferListener(org.eclipse.core.runtime.IProgressMonitor monitor) |
MavenExecutionContext |
createExecutionContext()
Creates and returns new, possibly nested, maven execution context.
|
org.apache.maven.execution.MavenExecutionRequest |
createExecutionRequest(org.eclipse.core.runtime.IProgressMonitor monitor)
Deprecated.
|
org.apache.maven.execution.MavenSession |
createSession(org.apache.maven.execution.MavenExecutionRequest request,
org.apache.maven.project.MavenProject project) |
org.eclipse.m2e.core.internal.embedder.WagonTransferListenerAdapter |
createTransferListener(org.eclipse.core.runtime.IProgressMonitor monitor)
Creates wagon TransferListener that can be used with Archetype, NexusIndexer and other components that use wagon
API directly.
|
org.apache.maven.settings.Server |
decryptPassword(org.apache.maven.settings.Server server) |
void |
detachFromSession(org.apache.maven.project.MavenProject project)
Makes MavenProject instances returned by #readProject methods suitable for caching and reuse with other
MavenSession instances.
Do note that MavenProject.getParentProject() cannot be used for detached MavenProject instances. |
void |
disposeContainer() |
<V> V |
execute(boolean offline,
boolean forceDependencyUpdate,
ICallable<V> callable,
org.eclipse.core.runtime.IProgressMonitor monitor)
This is convenience method fully equivalent to
|
<V> V |
execute(ICallable<V> callable,
org.eclipse.core.runtime.IProgressMonitor monitor)
Either joins existing session or starts new session with default configuration and executes the callable in the
context of the session.
|
org.apache.maven.execution.MavenExecutionResult |
execute(org.apache.maven.execution.MavenExecutionRequest request,
org.eclipse.core.runtime.IProgressMonitor monitor)
Deprecated.
|
void |
execute(org.apache.maven.project.MavenProject project,
org.apache.maven.plugin.MojoExecution execution,
org.eclipse.core.runtime.IProgressMonitor monitor) |
void |
execute(org.apache.maven.execution.MavenSession session,
org.apache.maven.plugin.MojoExecution execution,
org.eclipse.core.runtime.IProgressMonitor monitor) |
String |
getArtifactPath(org.apache.maven.artifact.repository.ArtifactRepository repository,
String groupId,
String artifactId,
String version,
String type,
String classifier)
Returns path of the specified artifact relative to repository baseDir.
|
List<org.apache.maven.artifact.repository.ArtifactRepository> |
getArtifactRepositories()
Convenience method, fully equivalent to getArtifactRepositories(true)
|
List<org.apache.maven.artifact.repository.ArtifactRepository> |
getArtifactRepositories(boolean injectSettings)
Returns list of remote artifact repositories configured in settings.xml.
|
<T> T |
getConfiguredMojo(org.apache.maven.execution.MavenSession session,
org.apache.maven.plugin.MojoExecution mojoExecution,
Class<T> clazz)
Returns new mojo instances configured according to provided mojoExecution.
|
MavenExecutionContext |
getExecutionContext()
Returns execution context associated with the current thread or
null if the current thread does not
have associated maven execution context. |
org.apache.maven.artifact.repository.ArtifactRepository |
getLocalRepository() |
List<ILocalRepositoryListener> |
getLocalRepositoryListeners() |
String |
getLocalRepositoryPath() |
org.apache.maven.settings.Mirror |
getMirror(org.apache.maven.artifact.repository.ArtifactRepository repo) |
List<org.apache.maven.settings.Mirror> |
getMirrors() |
<T> T |
getMojoParameterValue(org.apache.maven.project.MavenProject project,
org.apache.maven.plugin.MojoExecution mojoExecution,
String parameter,
Class<T> asType,
org.eclipse.core.runtime.IProgressMonitor monitor) |
<T> T |
getMojoParameterValue(org.apache.maven.project.MavenProject project,
String parameter,
Class<T> type,
org.apache.maven.model.Plugin plugin,
org.apache.maven.model.ConfigurationContainer configuration,
String goal,
org.eclipse.core.runtime.IProgressMonitor monitor) |
<T> T |
getMojoParameterValue(org.apache.maven.execution.MavenSession session,
org.apache.maven.plugin.MojoExecution mojoExecution,
String parameter,
Class<T> asType) |
<T> T |
getMojoParameterValue(String parameter,
Class<T> type,
org.apache.maven.execution.MavenSession session,
org.apache.maven.model.Plugin plugin,
org.apache.maven.model.ConfigurationContainer configuration,
String goal) |
org.codehaus.plexus.PlexusContainer |
getPlexusContainer() |
List<org.apache.maven.artifact.repository.ArtifactRepository> |
getPluginArtifactRepositories() |
List<org.apache.maven.artifact.repository.ArtifactRepository> |
getPluginArtifactRepositories(boolean injectSettings) |
ClassLoader |
getProjectRealm(org.apache.maven.project.MavenProject project)
Gets class realm of the specified project.
|
org.apache.maven.wagon.proxy.ProxyInfo |
getProxyInfo(String protocol) |
org.apache.maven.settings.Settings |
getSettings()
TODO should we expose Settings or provide access to servers and proxies instead?
|
org.apache.maven.settings.Settings |
getSettings(boolean force_reload) |
List<org.apache.maven.project.MavenProject> |
getSortedProjects(List<org.apache.maven.project.MavenProject> projects)
Sort projects by build order
|
void |
interpolateModel(org.apache.maven.project.MavenProject project,
org.apache.maven.model.Model model) |
boolean |
isUnavailable(String groupId,
String artifactId,
String version,
String type,
String classifier,
List<org.apache.maven.artifact.repository.ArtifactRepository> remoteRepositories)
This is a temporary implementation that only works for artifacts resolved using #resolve.
|
<T> T |
lookup(Class<T> clazz)
Lookup a component from the embedded PlexusContainer.
|
<T> T |
lookupComponent(Class<T> clazz) |
void |
mavenConfigurationChange(MavenConfigurationChangeEvent event) |
void |
populateDefaults(org.apache.maven.execution.MavenExecutionRequest request) |
org.apache.maven.execution.MavenExecutionResult |
readMavenProject(File pomFile,
org.apache.maven.project.ProjectBuildingRequest configuration) |
org.apache.maven.model.Model |
readModel(File pomFile) |
org.apache.maven.model.Model |
readModel(InputStream in) |
org.apache.maven.project.MavenProject |
readProject(File pomFile,
org.eclipse.core.runtime.IProgressMonitor monitor) |
org.apache.maven.execution.MavenExecutionResult |
readProject(org.apache.maven.execution.MavenExecutionRequest request,
org.eclipse.core.runtime.IProgressMonitor monitor) |
void |
releaseMojo(Object mojo,
org.apache.maven.plugin.MojoExecution mojoExecution)
Releases resources used by Mojo acquired with
IMaven.getConfiguredMojo(MavenSession, MojoExecution, Class) |
void |
reloadSettings() |
void |
removeLocalRepositoryListener(ILocalRepositoryListener listener) |
void |
removeSettingsChangeListener(ISettingsChangeListener listener) |
org.apache.maven.artifact.Artifact |
resolve(org.apache.maven.artifact.Artifact artifact,
List<org.apache.maven.artifact.repository.ArtifactRepository> remoteRepositories,
org.eclipse.core.runtime.IProgressMonitor monitor) |
org.apache.maven.artifact.Artifact |
resolve(String groupId,
String artifactId,
String version,
String type,
String classifier,
List<org.apache.maven.artifact.repository.ArtifactRepository> remoteRepositories,
org.eclipse.core.runtime.IProgressMonitor monitor)
Resolves specified artifact from specified remote repositories.
|
org.apache.maven.project.MavenProject |
resolveParentProject(org.apache.maven.execution.MavenExecutionRequest request,
org.apache.maven.project.MavenProject child,
org.eclipse.core.runtime.IProgressMonitor monitor)
Deprecated.
|
org.apache.maven.project.MavenProject |
resolveParentProject(org.apache.maven.project.MavenProject child,
org.eclipse.core.runtime.IProgressMonitor monitor) |
org.apache.maven.artifact.Artifact |
resolvePluginArtifact(org.apache.maven.model.Plugin plugin,
List<org.apache.maven.artifact.repository.ArtifactRepository> remoteRepositories,
org.eclipse.core.runtime.IProgressMonitor monitor) |
String |
resolvePluginVersion(String groupId,
String artifactId,
org.apache.maven.execution.MavenSession session) |
org.apache.maven.plugin.MojoExecution |
setupMojoExecution(org.apache.maven.project.MavenProject project,
org.apache.maven.plugin.MojoExecution execution,
org.eclipse.core.runtime.IProgressMonitor monitor) |
org.apache.maven.plugin.MojoExecution |
setupMojoExecution(org.apache.maven.execution.MavenSession session,
org.apache.maven.project.MavenProject project,
org.apache.maven.plugin.MojoExecution execution) |
List<org.apache.maven.settings.building.SettingsProblem> |
validateSettings(String settings) |
void |
writeModel(org.apache.maven.model.Model model,
OutputStream out) |
void |
writeSettings(org.apache.maven.settings.Settings settings,
OutputStream out) |
public static final String MAVEN_CORE_REALM_ID
public MavenImpl(IMavenConfiguration mavenConfiguration)
@Deprecated public org.apache.maven.execution.MavenExecutionRequest createExecutionRequest(org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreException
IMavencreateExecutionRequest in interface IMavenorg.eclipse.core.runtime.CoreExceptionpublic String getLocalRepositoryPath()
getLocalRepositoryPath in interface IMaven@Deprecated public org.apache.maven.execution.MavenExecutionResult execute(org.apache.maven.execution.MavenExecutionRequest request, org.eclipse.core.runtime.IProgressMonitor monitor)
public org.apache.maven.execution.MavenSession createSession(org.apache.maven.execution.MavenExecutionRequest request,
org.apache.maven.project.MavenProject project)
createSession in interface IMavenpublic void execute(org.apache.maven.execution.MavenSession session,
org.apache.maven.plugin.MojoExecution execution,
org.eclipse.core.runtime.IProgressMonitor monitor)
public <T> T getConfiguredMojo(org.apache.maven.execution.MavenSession session,
org.apache.maven.plugin.MojoExecution mojoExecution,
Class<T> clazz)
throws org.eclipse.core.runtime.CoreException
IMavenIMaven.releaseMojo(Object, MojoExecution). This method is intended to allow introspection of mojo configuration
parameters, use IMaven.execute(MavenSession, MojoExecution, IProgressMonitor) to execute mojo.getConfiguredMojo in interface IMavenorg.eclipse.core.runtime.CoreExceptionpublic void releaseMojo(Object mojo, org.apache.maven.plugin.MojoExecution mojoExecution) throws org.eclipse.core.runtime.CoreException
IMavenIMaven.getConfiguredMojo(MavenSession, MojoExecution, Class)releaseMojo in interface IMavenorg.eclipse.core.runtime.CoreExceptionpublic org.apache.maven.lifecycle.MavenExecutionPlan calculateExecutionPlan(org.apache.maven.execution.MavenSession session,
org.apache.maven.project.MavenProject project,
List<String> goals,
boolean setup,
org.eclipse.core.runtime.IProgressMonitor monitor)
throws org.eclipse.core.runtime.CoreException
calculateExecutionPlan in interface IMavenorg.eclipse.core.runtime.CoreExceptionpublic org.apache.maven.lifecycle.MavenExecutionPlan calculateExecutionPlan(org.apache.maven.project.MavenProject project,
List<String> goals,
boolean setup,
org.eclipse.core.runtime.IProgressMonitor monitor)
throws org.eclipse.core.runtime.CoreException
calculateExecutionPlan in interface IMavenorg.eclipse.core.runtime.CoreExceptionpublic org.apache.maven.plugin.MojoExecution setupMojoExecution(org.apache.maven.execution.MavenSession session,
org.apache.maven.project.MavenProject project,
org.apache.maven.plugin.MojoExecution execution)
throws org.eclipse.core.runtime.CoreException
setupMojoExecution in interface IMavenorg.eclipse.core.runtime.CoreExceptionpublic org.apache.maven.plugin.MojoExecution setupMojoExecution(org.apache.maven.project.MavenProject project,
org.apache.maven.plugin.MojoExecution execution,
org.eclipse.core.runtime.IProgressMonitor monitor)
throws org.eclipse.core.runtime.CoreException
setupMojoExecution in interface IMavenorg.eclipse.core.runtime.CoreExceptionpublic org.apache.maven.artifact.repository.ArtifactRepository getLocalRepository()
throws org.eclipse.core.runtime.CoreException
getLocalRepository in interface IMavenorg.eclipse.core.runtime.CoreExceptionpublic org.apache.maven.settings.Settings getSettings()
throws org.eclipse.core.runtime.CoreException
IMavengetSettings in interface IMavenorg.eclipse.core.runtime.CoreExceptionpublic org.apache.maven.settings.Settings getSettings(boolean force_reload)
throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreExceptionpublic org.apache.maven.settings.Settings buildSettings(String globalSettings, String userSettings) throws org.eclipse.core.runtime.CoreException
buildSettings in interface IMavenorg.eclipse.core.runtime.CoreExceptionpublic void writeSettings(org.apache.maven.settings.Settings settings,
OutputStream out)
throws org.eclipse.core.runtime.CoreException
writeSettings in interface IMavenorg.eclipse.core.runtime.CoreExceptionpublic List<org.apache.maven.settings.building.SettingsProblem> validateSettings(String settings)
validateSettings in interface IMavenpublic void reloadSettings()
throws org.eclipse.core.runtime.CoreException
reloadSettings in interface IMavenorg.eclipse.core.runtime.CoreExceptionpublic org.apache.maven.settings.Server decryptPassword(org.apache.maven.settings.Server server)
throws org.eclipse.core.runtime.CoreException
decryptPassword in interface IMavenorg.eclipse.core.runtime.CoreExceptionpublic void mavenConfigurationChange(MavenConfigurationChangeEvent event) throws org.eclipse.core.runtime.CoreException
mavenConfigurationChange in interface IMavenConfigurationChangeListenerorg.eclipse.core.runtime.CoreExceptionpublic org.apache.maven.model.Model readModel(InputStream in) throws org.eclipse.core.runtime.CoreException
public org.apache.maven.model.Model readModel(File pomFile) throws org.eclipse.core.runtime.CoreException
public void writeModel(org.apache.maven.model.Model model,
OutputStream out)
throws org.eclipse.core.runtime.CoreException
writeModel in interface IMavenorg.eclipse.core.runtime.CoreExceptionpublic org.apache.maven.project.MavenProject readProject(File pomFile, org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreException
readProject in interface IMavenorg.eclipse.core.runtime.CoreExceptionpublic org.apache.maven.execution.MavenExecutionResult readProject(org.apache.maven.execution.MavenExecutionRequest request,
org.eclipse.core.runtime.IProgressMonitor monitor)
throws org.eclipse.core.runtime.CoreException
readProject in interface IMavenorg.eclipse.core.runtime.CoreExceptionpublic org.apache.maven.execution.MavenExecutionResult readMavenProject(File pomFile, org.apache.maven.project.ProjectBuildingRequest configuration) throws org.eclipse.core.runtime.CoreException
readMavenProject in interface IMavenorg.eclipse.core.runtime.CoreExceptionpublic void detachFromSession(org.apache.maven.project.MavenProject project)
throws org.eclipse.core.runtime.CoreException
detachFromSession in interface IMavenorg.eclipse.core.runtime.CoreException@Deprecated public org.apache.maven.project.MavenProject resolveParentProject(org.apache.maven.execution.MavenExecutionRequest request, org.apache.maven.project.MavenProject child, org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreException
IMavenresolveParentProject in interface IMavenorg.eclipse.core.runtime.CoreExceptionpublic org.apache.maven.project.MavenProject resolveParentProject(org.apache.maven.project.MavenProject child,
org.eclipse.core.runtime.IProgressMonitor monitor)
throws org.eclipse.core.runtime.CoreException
resolveParentProject in interface IMavenorg.eclipse.core.runtime.CoreExceptionpublic org.apache.maven.artifact.Artifact resolve(String groupId, String artifactId, String version, String type, String classifier, List<org.apache.maven.artifact.repository.ArtifactRepository> remoteRepositories, org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreException
IMavenpublic org.apache.maven.artifact.Artifact resolve(org.apache.maven.artifact.Artifact artifact,
List<org.apache.maven.artifact.repository.ArtifactRepository> remoteRepositories,
org.eclipse.core.runtime.IProgressMonitor monitor)
throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreExceptionpublic org.apache.maven.artifact.Artifact resolvePluginArtifact(org.apache.maven.model.Plugin plugin,
List<org.apache.maven.artifact.repository.ArtifactRepository> remoteRepositories,
org.eclipse.core.runtime.IProgressMonitor monitor)
throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreExceptionpublic String getArtifactPath(org.apache.maven.artifact.repository.ArtifactRepository repository, String groupId, String artifactId, String version, String type, String classifier) throws org.eclipse.core.runtime.CoreException
IMavengetArtifactPath in interface IMavenorg.eclipse.core.runtime.CoreExceptionpublic boolean isUnavailable(String groupId, String artifactId, String version, String type, String classifier, List<org.apache.maven.artifact.repository.ArtifactRepository> remoteRepositories) throws org.eclipse.core.runtime.CoreException
isUnavailable in interface IMavenorg.eclipse.core.runtime.CoreExceptionpublic <T> T getMojoParameterValue(org.apache.maven.execution.MavenSession session,
org.apache.maven.plugin.MojoExecution mojoExecution,
String parameter,
Class<T> asType)
throws org.eclipse.core.runtime.CoreException
getMojoParameterValue in interface IMavenorg.eclipse.core.runtime.CoreExceptionpublic <T> T getMojoParameterValue(org.apache.maven.project.MavenProject project,
org.apache.maven.plugin.MojoExecution mojoExecution,
String parameter,
Class<T> asType,
org.eclipse.core.runtime.IProgressMonitor monitor)
throws org.eclipse.core.runtime.CoreException
getMojoParameterValue in interface IMavenorg.eclipse.core.runtime.CoreExceptionpublic <T> T getMojoParameterValue(String parameter, Class<T> type, org.apache.maven.execution.MavenSession session, org.apache.maven.model.Plugin plugin, org.apache.maven.model.ConfigurationContainer configuration, String goal) throws org.eclipse.core.runtime.CoreException
getMojoParameterValue in interface IMavenorg.eclipse.core.runtime.CoreExceptionpublic <T> T getMojoParameterValue(org.apache.maven.project.MavenProject project,
String parameter,
Class<T> type,
org.apache.maven.model.Plugin plugin,
org.apache.maven.model.ConfigurationContainer configuration,
String goal,
org.eclipse.core.runtime.IProgressMonitor monitor)
throws org.eclipse.core.runtime.CoreException
getMojoParameterValue in interface IMavenorg.eclipse.core.runtime.CoreExceptionpublic org.apache.maven.artifact.repository.ArtifactRepository createArtifactRepository(String id, String url) throws org.eclipse.core.runtime.CoreException
createArtifactRepository in interface IMavenorg.eclipse.core.runtime.CoreExceptionpublic List<org.apache.maven.artifact.repository.ArtifactRepository> getArtifactRepositories() throws org.eclipse.core.runtime.CoreException
IMavengetArtifactRepositories in interface IMavenorg.eclipse.core.runtime.CoreExceptionpublic List<org.apache.maven.artifact.repository.ArtifactRepository> getArtifactRepositories(boolean injectSettings) throws org.eclipse.core.runtime.CoreException
IMavengetArtifactRepositories in interface IMavenorg.eclipse.core.runtime.CoreExceptionpublic List<org.apache.maven.artifact.repository.ArtifactRepository> getPluginArtifactRepositories() throws org.eclipse.core.runtime.CoreException
getPluginArtifactRepositories in interface IMavenorg.eclipse.core.runtime.CoreExceptionpublic List<org.apache.maven.artifact.repository.ArtifactRepository> getPluginArtifactRepositories(boolean injectSettings) throws org.eclipse.core.runtime.CoreException
getPluginArtifactRepositories in interface IMavenorg.eclipse.core.runtime.CoreExceptionpublic org.apache.maven.settings.Mirror getMirror(org.apache.maven.artifact.repository.ArtifactRepository repo)
throws org.eclipse.core.runtime.CoreException
public void populateDefaults(org.apache.maven.execution.MavenExecutionRequest request)
throws org.eclipse.core.runtime.CoreException
populateDefaults in interface IMavenorg.eclipse.core.runtime.CoreExceptionpublic List<org.apache.maven.settings.Mirror> getMirrors() throws org.eclipse.core.runtime.CoreException
getMirrors in interface IMavenorg.eclipse.core.runtime.CoreExceptionpublic void addSettingsChangeListener(ISettingsChangeListener listener)
addSettingsChangeListener in interface IMavenpublic void removeSettingsChangeListener(ISettingsChangeListener listener)
removeSettingsChangeListener in interface IMavenpublic void addLocalRepositoryListener(ILocalRepositoryListener listener)
addLocalRepositoryListener in interface IMavenpublic void removeLocalRepositoryListener(ILocalRepositoryListener listener)
removeLocalRepositoryListener in interface IMavenpublic List<ILocalRepositoryListener> getLocalRepositoryListeners()
public org.eclipse.m2e.core.internal.embedder.WagonTransferListenerAdapter createTransferListener(org.eclipse.core.runtime.IProgressMonitor monitor)
IMavencreateTransferListener in interface IMavenpublic org.eclipse.aether.transfer.TransferListener createArtifactTransferListener(org.eclipse.core.runtime.IProgressMonitor monitor)
public org.codehaus.plexus.PlexusContainer getPlexusContainer()
throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreExceptionpublic org.apache.maven.wagon.proxy.ProxyInfo getProxyInfo(String protocol) throws org.eclipse.core.runtime.CoreException
getProxyInfo in interface IMavenorg.eclipse.core.runtime.CoreExceptionpublic List<org.apache.maven.project.MavenProject> getSortedProjects(List<org.apache.maven.project.MavenProject> projects) throws org.eclipse.core.runtime.CoreException
IMavengetSortedProjects in interface IMavenorg.eclipse.core.runtime.CoreExceptionpublic String resolvePluginVersion(String groupId, String artifactId, org.apache.maven.execution.MavenSession session) throws org.eclipse.core.runtime.CoreException
resolvePluginVersion in interface IMavenorg.eclipse.core.runtime.CoreExceptionpublic <T> T lookup(Class<T> clazz) throws org.eclipse.core.runtime.CoreException
IMavenpublic <T> T lookupComponent(Class<T> clazz)
public void disposeContainer()
public ClassLoader getProjectRealm(org.apache.maven.project.MavenProject project)
IMavengetProjectRealm in interface IMavenpublic void interpolateModel(org.apache.maven.project.MavenProject project,
org.apache.maven.model.Model model)
throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreExceptionpublic <V> V execute(boolean offline,
boolean forceDependencyUpdate,
ICallable<V> callable,
org.eclipse.core.runtime.IProgressMonitor monitor)
throws org.eclipse.core.runtime.CoreException
IMavenIMavenExecutionContext context = createExecutionContext(); context.getExecutionRequest().setOffline(offline); context.getExecutionRequest().setUpdateSnapshots(forceDependencyUpdate); return context.execute(callable, monitor);
public <V> V execute(ICallable<V> callable, org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreException
IMavenpublic void execute(org.apache.maven.project.MavenProject project,
org.apache.maven.plugin.MojoExecution execution,
org.eclipse.core.runtime.IProgressMonitor monitor)
throws org.eclipse.core.runtime.CoreException
public MavenExecutionContext createExecutionContext()
IMavencreateExecutionContext in interface IMavenpublic MavenExecutionContext getExecutionContext()
IMavennull if the current thread does not
have associated maven execution context.getExecutionContext in interface IMavenCopyright © 2005–2021 Eclipse Foundation. All rights reserved.