| java.lang.Object org.apache.maven.embedder.MavenEmbedder
MavenEmbedder | public class MavenEmbedder (Code) | | Class intended to be used by clients who wish to embed Maven into their applications
author: Jason van Zyl |
Method Summary | |
public Artifact | createArtifact(String groupId, String artifactId, String version, String scope, String type) | public Artifact | createArtifactWithClassifier(String groupId, String artifactId, String version, String type, String classifier) | public MavenExecutionResult | execute(MavenExecutionRequest request) | public List | getAllLifecyclePhases() | public ArtifactHandler | getArtifactHandler(Artifact artifact) | public List | getBuildLifecyclePhases() | public ClassWorld | getClassWorld() | public List | getCleanLifecyclePhases() | public Configuration | getConfiguration() | public List | getDefaultLifecyclePhases() | public List | getLifecyclePhases() | public ArtifactRepository | getLocalRepository() | public MavenEmbedderLogger | getLogger() | public PlexusContainer | getPlexusContainer() Return the instance of the plexus container being used in the embedder. | protected Map | getPluginExtensionComponents(Plugin plugin) protected for tests only.. | public Settings | getSettings() | public List | getSiteLifecyclePhases() | public Model | readModel(File file) | public MavenProject | readProject(File mavenProject) | public MavenExecutionResult | readProjectWithDependencies(MavenExecutionRequest request) This method is used to grab the list of dependencies that belong to a project so that a UI
can be populated. | public static Settings | readSettings(File file) | public void | resolve(Artifact artifact, List remoteRepositories, ArtifactRepository localRepository) | public void | setLogger(MavenEmbedderLogger logger) | public void | stop() | public static ConfigurationValidationResult | validateConfiguration(Configuration configuration) | protected void | verifyPlugin(Plugin plugin, MavenProject project) | public void | writeModel(Writer writer, Model model, boolean namespaceDeclaration) | public void | writeModel(Writer writer, Model model) | public static void | writeSettings(File file, Settings settings) |
DEFAULT_GLOBAL_SETTINGS_FILE | final public static File DEFAULT_GLOBAL_SETTINGS_FILE(Code) | | |
DEFAULT_LOCAL_REPO_ID | final public static String DEFAULT_LOCAL_REPO_ID(Code) | | |
DEFAULT_USER_SETTINGS_FILE | final public static File DEFAULT_USER_SETTINGS_FILE(Code) | | |
defaultUserLocalRepository | final public static File defaultUserLocalRepository(Code) | | |
userMavenConfigurationHome | final public static File userMavenConfigurationHome(Code) | | |
getAllLifecyclePhases | public List getAllLifecyclePhases()(Code) | | |
getArtifactHandler | public ArtifactHandler getArtifactHandler(Artifact artifact)(Code) | | |
getBuildLifecyclePhases | public List getBuildLifecyclePhases()(Code) | | |
getClassWorld | public ClassWorld getClassWorld()(Code) | | |
getCleanLifecyclePhases | public List getCleanLifecyclePhases()(Code) | | |
getDefaultLifecyclePhases | public List getDefaultLifecyclePhases()(Code) | | |
getLifecyclePhases | public List getLifecyclePhases()(Code) | | |
getLocalRepository | public ArtifactRepository getLocalRepository()(Code) | | |
getPlexusContainer | public PlexusContainer getPlexusContainer()(Code) | | Return the instance of the plexus container being used in the embedder.
The plexus container used in the embedder. |
getSettings | public Settings getSettings()(Code) | | |
getSiteLifecyclePhases | public List getSiteLifecyclePhases()(Code) | | |
readProjectWithDependencies | public MavenExecutionResult readProjectWithDependencies(MavenExecutionRequest request)(Code) | | This method is used to grab the list of dependencies that belong to a project so that a UI
can be populated. For example, a list of libraries that are used by an Eclipse, Netbeans, or
IntelliJ project.
|
resolve | public void resolve(Artifact artifact, List remoteRepositories, ArtifactRepository localRepository) throws ArtifactResolutionException, ArtifactNotFoundException(Code) | | |
writeModel | public void writeModel(Writer writer, Model model, boolean namespaceDeclaration) throws IOException(Code) | | |
|
|