public class DefaultMavenRuntime extends Object implements MavenRuntime
MavenRuntime
.MavenRuntime
|
ROLE
Constructor and Description |
---|
DefaultMavenRuntime() |
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.
|
public MavenProjectProperties getProjectProperties(URL url) throws MavenRuntimeException
getProjectProperties
in interface MavenRuntime
url
- the URL to introspectMavenRuntimeException
- if an error occurred introspecting the Maven runtime environmentpublic MavenProjectProperties getProjectProperties(Class<?> klass) throws MavenRuntimeException
getProjectProperties
in interface MavenRuntime
klass
- the class to introspectMavenRuntimeException
- if an error occurred introspecting the Maven runtime environmentpublic List<MavenProjectProperties> getProjectsProperties(ClassLoader classLoader) throws MavenRuntimeException
getProjectsProperties
in interface MavenRuntime
classLoader
- the class loader to introspectMavenRuntimeException
- if an error occurred introspecting the Maven runtime environmentpublic MavenProject getProject(URL url) throws MavenRuntimeException
getProject
in interface MavenRuntime
url
- the URL to introspectMavenRuntimeException
- if an error occurred introspecting the Maven runtime environmentpublic MavenProject getProject(Class<?> klass) throws MavenRuntimeException
getProject
in interface MavenRuntime
klass
- the class to introspectMavenRuntimeException
- if an error occurred introspecting the Maven runtime environmentpublic List<MavenProject> getProjects(ClassLoader classLoader) throws MavenRuntimeException
getProjects
in interface MavenRuntime
classLoader
- the class loader to introspectMavenRuntimeException
- if an error occurred introspecting the Maven runtime environmentpublic List<MavenProject> getSortedProjects(ClassLoader classLoader) throws MavenRuntimeException
getSortedProjects
in interface MavenRuntime
classLoader
- the class loader to introspectMavenRuntimeException
- if an error occurred introspecting the Maven runtime environmentCopyright © 2002-2019 The Apache Software Foundation. All Rights Reserved.