|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MavenRuntime
Provides methods to introspect the current Maven runtime environment.
Field Summary | |
---|---|
static java.lang.String |
ROLE
The Plexus role for this component. |
Method Summary | |
---|---|
org.apache.maven.project.MavenProject |
getProject(java.lang.Class<?> klass)
Gets the specified class's Maven project. |
org.apache.maven.project.MavenProject |
getProject(java.net.URL url)
Gets the specified URL's Maven project. |
MavenProjectProperties |
getProjectProperties(java.lang.Class<?> klass)
Gets the properties for the specified class's Maven project. |
MavenProjectProperties |
getProjectProperties(java.net.URL url)
Gets the properties for the specified URL's Maven project. |
java.util.List<org.apache.maven.project.MavenProject> |
getProjects(java.lang.ClassLoader classLoader)
Obtains a list of Maven projects accessible from the specified class loader. |
java.util.List<MavenProjectProperties> |
getProjectsProperties(java.lang.ClassLoader classLoader)
Obtains a list of basic properties for each Maven project accessible from the specified class loader. |
java.util.List<org.apache.maven.project.MavenProject> |
getSortedProjects(java.lang.ClassLoader classLoader)
Obtains a list of Maven projects accessible from the specified class loader ordered by their dependencies. |
Field Detail |
---|
static final java.lang.String ROLE
Method Detail |
---|
MavenProjectProperties getProjectProperties(java.net.URL url) throws MavenRuntimeException
url
- the URL to introspect
MavenRuntimeException
- if an error occurred introspecting the Maven runtime environmentMavenProjectProperties getProjectProperties(java.lang.Class<?> klass) throws MavenRuntimeException
klass
- the class to introspect
MavenRuntimeException
- if an error occurred introspecting the Maven runtime environmentjava.util.List<MavenProjectProperties> getProjectsProperties(java.lang.ClassLoader classLoader) throws MavenRuntimeException
classLoader
- the class loader to introspect
MavenRuntimeException
- if an error occurred introspecting the Maven runtime environmentorg.apache.maven.project.MavenProject getProject(java.net.URL url) throws MavenRuntimeException
url
- the URL to introspect
MavenRuntimeException
- if an error occurred introspecting the Maven runtime environmentorg.apache.maven.project.MavenProject getProject(java.lang.Class<?> klass) throws MavenRuntimeException
klass
- the class to introspect
MavenRuntimeException
- if an error occurred introspecting the Maven runtime environmentjava.util.List<org.apache.maven.project.MavenProject> getProjects(java.lang.ClassLoader classLoader) throws MavenRuntimeException
classLoader
- the class loader to introspect
MavenRuntimeException
- if an error occurred introspecting the Maven runtime environmentjava.util.List<org.apache.maven.project.MavenProject> getSortedProjects(java.lang.ClassLoader classLoader) throws MavenRuntimeException
classLoader
- the class loader to introspect
MavenRuntimeException
- if an error occurred introspecting the Maven runtime environment
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |