public class DefaultMavenRuntime extends java.lang.Object implements MavenRuntime
MavenRuntime.MavenRuntimeROLE| Constructor and Description |
|---|
DefaultMavenRuntime() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public MavenProjectProperties getProjectProperties(java.net.URL url) throws MavenRuntimeException
getProjectProperties in interface MavenRuntimeurl - the URL to introspectMavenRuntimeException - if an error occurred introspecting the Maven runtime environmentpublic MavenProjectProperties getProjectProperties(java.lang.Class<?> klass) throws MavenRuntimeException
getProjectProperties in interface MavenRuntimeklass - the class to introspectMavenRuntimeException - if an error occurred introspecting the Maven runtime environmentpublic java.util.List<MavenProjectProperties> getProjectsProperties(java.lang.ClassLoader classLoader) throws MavenRuntimeException
getProjectsProperties in interface MavenRuntimeclassLoader - the class loader to introspectMavenRuntimeException - if an error occurred introspecting the Maven runtime environmentpublic org.apache.maven.project.MavenProject getProject(java.net.URL url)
throws MavenRuntimeException
getProject in interface MavenRuntimeurl - the URL to introspectMavenRuntimeException - if an error occurred introspecting the Maven runtime environmentpublic org.apache.maven.project.MavenProject getProject(java.lang.Class<?> klass)
throws MavenRuntimeException
getProject in interface MavenRuntimeklass - the class to introspectMavenRuntimeException - if an error occurred introspecting the Maven runtime environmentpublic java.util.List<org.apache.maven.project.MavenProject> getProjects(java.lang.ClassLoader classLoader)
throws MavenRuntimeException
getProjects in interface MavenRuntimeclassLoader - the class loader to introspectMavenRuntimeException - if an error occurred introspecting the Maven runtime environmentpublic java.util.List<org.apache.maven.project.MavenProject> getSortedProjects(java.lang.ClassLoader classLoader)
throws MavenRuntimeException
getSortedProjects in interface MavenRuntimeclassLoader - the class loader to introspectMavenRuntimeException - if an error occurred introspecting the Maven runtime environmentCopyright © 2002-2015 The Apache Software Foundation. All Rights Reserved.