public interface IMavenProjectFacade
Modifier and Type | Method and Description |
---|---|
ArtifactKey |
getArtifactKey() |
Set<ArtifactRepositoryRef> |
getArtifactRepositoryRefs() |
org.eclipse.core.runtime.IPath[] |
getCompileSourceLocations() |
org.eclipse.core.runtime.IPath |
getFullPath() |
org.eclipse.core.runtime.IPath |
getFullPath(File file)
Returns the full, absolute path of the given file relative to the workspace.
|
String |
getLifecycleMappingId() |
org.apache.maven.project.MavenProject |
getMavenProject()
Returns cached MavenProject instance associated with this facade or
null , if the cache has not been
populated yet, for example right after workspace restart. |
org.apache.maven.project.MavenProject |
getMavenProject(org.eclipse.core.runtime.IProgressMonitor monitor)
Lazy load and cache MavenProject instance
|
Set<ArtifactRef> |
getMavenProjectArtifacts() |
List<String> |
getMavenProjectModules() |
org.apache.maven.plugin.MojoExecution |
getMojoExecution(MojoExecutionKey mojoExecutionKey,
org.eclipse.core.runtime.IProgressMonitor monitor)
Returns fully setup MojoExecution instance bound to project build lifecycle that matches provided mojoExecutionKey.
|
Map<MojoExecutionKey,List<IPluginExecutionMetadata>> |
getMojoExecutionMapping() |
List<org.apache.maven.plugin.MojoExecution> |
getMojoExecutions(String groupId,
String artifactId,
org.eclipse.core.runtime.IProgressMonitor monitor,
String... goals)
Returns list of fully setup MojoExecution instances bound to project build lifecycle that matche provided groupId,
artifactId and (vararg) goals.
|
org.eclipse.core.runtime.IPath |
getOutputLocation()
Returns the full, absolute path of this project maven build output directory relative to the workspace or null if
maven build output directory cannot be determined or outside of the workspace.
|
String |
getPackaging() |
Set<ArtifactRepositoryRef> |
getPluginArtifactRepositoryRefs() |
org.eclipse.core.resources.IFile |
getPom() |
File |
getPomFile() |
org.eclipse.core.resources.IProject |
getProject() |
org.eclipse.core.runtime.IPath |
getProjectRelativePath(String resourceLocation)
Returns project resource for given file system location or null the location is outside of project.
|
ResolverConfiguration |
getResolverConfiguration() |
org.eclipse.core.runtime.IPath[] |
getResourceLocations()
Returns project relative paths of resource directories
|
Object |
getSessionProperty(String key) |
org.eclipse.core.runtime.IPath[] |
getTestCompileSourceLocations() |
org.eclipse.core.runtime.IPath |
getTestOutputLocation()
Returns the full, absolute path of this project maven build test output directory relative to the workspace or null
if maven build output directory cannot be determined or outside of the workspace.
|
org.eclipse.core.runtime.IPath[] |
getTestResourceLocations()
Returns project relative paths of test resource directories
|
boolean |
isStale() |
void |
setSessionProperty(String key,
Object value)
Associates the value with the key in session (i.e.
|
org.eclipse.core.runtime.IPath[] getResourceLocations()
org.eclipse.core.runtime.IPath[] getTestResourceLocations()
org.eclipse.core.runtime.IPath[] getCompileSourceLocations()
org.eclipse.core.runtime.IPath[] getTestCompileSourceLocations()
org.eclipse.core.runtime.IPath getProjectRelativePath(String resourceLocation)
resourceLocation
- absolute file system locationorg.eclipse.core.runtime.IPath getOutputLocation()
org.eclipse.core.runtime.IPath getTestOutputLocation()
org.eclipse.core.runtime.IPath getFullPath()
org.apache.maven.project.MavenProject getMavenProject(org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
org.apache.maven.project.MavenProject getMavenProject()
null
, if the cache has not been
populated yet, for example right after workspace restart. Clients must use
getMavenProject(IProgressMonitor)
unless they are prepared to deal with null
return value.String getPackaging()
org.eclipse.core.resources.IProject getProject()
org.eclipse.core.resources.IFile getPom()
File getPomFile()
org.eclipse.core.runtime.IPath getFullPath(File file)
Set<ArtifactRef> getMavenProjectArtifacts()
ResolverConfiguration getResolverConfiguration()
boolean isStale()
ArtifactKey getArtifactKey()
void setSessionProperty(String key, Object value)
getSessionProperty(String)
Object getSessionProperty(String key)
setSessionProperty(String, Object)
Set<ArtifactRepositoryRef> getArtifactRepositoryRefs()
Set<ArtifactRepositoryRef> getPluginArtifactRepositoryRefs()
org.apache.maven.plugin.MojoExecution getMojoExecution(MojoExecutionKey mojoExecutionKey, org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
List<org.apache.maven.plugin.MojoExecution> getMojoExecutions(String groupId, String artifactId, org.eclipse.core.runtime.IProgressMonitor monitor, String... goals) throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
String getLifecycleMappingId()
Map<MojoExecutionKey,List<IPluginExecutionMetadata>> getMojoExecutionMapping()
Copyright © 2005–2015 Sonatype, Inc.. All rights reserved.