public interface MavenRuntime
Modifier and Type | Field and Description |
---|---|
static String |
ROLE
The Plexus role for this component.
|
Modifier and Type | Method and Description |
---|---|
MavenProject |
getProject(Class<?> klass)
Gets the specified class's Maven project.
|
MavenProject |
getProject(URL url)
Gets the specified URL's Maven project.
|
MavenProjectProperties |
getProjectProperties(Class<?> klass)
Gets the properties for the specified class's Maven project.
|
MavenProjectProperties |
getProjectProperties(URL url)
Gets the properties for the specified URL's Maven project.
|
List<MavenProject> |
getProjects(ClassLoader classLoader)
Obtains a list of Maven projects accessible from the specified class loader.
|
List<MavenProjectProperties> |
getProjectsProperties(ClassLoader classLoader)
Obtains a list of basic properties for each Maven project accessible from the specified class loader.
|
List<MavenProject> |
getSortedProjects(ClassLoader classLoader)
Obtains a list of Maven projects accessible from the specified class loader ordered by their dependencies.
|
static final String ROLE
MavenProjectProperties getProjectProperties(URL url) throws MavenRuntimeException
url
- the URL to introspectMavenRuntimeException
- if an error occurred introspecting the Maven runtime environmentMavenProjectProperties getProjectProperties(Class<?> klass) throws MavenRuntimeException
klass
- the class to introspectMavenRuntimeException
- if an error occurred introspecting the Maven runtime environmentList<MavenProjectProperties> getProjectsProperties(ClassLoader classLoader) throws MavenRuntimeException
classLoader
- the class loader to introspectMavenRuntimeException
- if an error occurred introspecting the Maven runtime environmentMavenProject getProject(URL url) throws MavenRuntimeException
url
- the URL to introspectMavenRuntimeException
- if an error occurred introspecting the Maven runtime environmentMavenProject getProject(Class<?> klass) throws MavenRuntimeException
klass
- the class to introspectMavenRuntimeException
- if an error occurred introspecting the Maven runtime environmentList<MavenProject> getProjects(ClassLoader classLoader) throws MavenRuntimeException
classLoader
- the class loader to introspectMavenRuntimeException
- if an error occurred introspecting the Maven runtime environmentList<MavenProject> getSortedProjects(ClassLoader classLoader) throws MavenRuntimeException
classLoader
- the class loader to introspectMavenRuntimeException
- if an error occurred introspecting the Maven runtime environmentCopyright © 2002-2019 The Apache Software Foundation. All Rights Reserved.