Forge - Maven API 2.0.0.Alpha3

org.jboss.forge.maven.projects
Interface MavenFacet

All Superinterfaces:
org.jboss.forge.facets.Facet<Project>, ProjectFacet

public interface MavenFacet
extends ProjectFacet

A ProjectFacet adding support for the Maven build system.

Author:
Lincoln Baxter, III

Method Summary
 boolean executeMaven(List<String> parameters)
          Execute Maven with the given arguments.
 boolean executeMavenEmbedded(List<String> parameters)
          Execute Maven with the given arguments.
 DirectoryResource getLocalRepositoryDirectory()
          Returns a DirectoryResource representing the location of the current local Maven repository.
 org.apache.maven.model.Model getPOM()
          Get the current Maven Model for this Project.
 MavenPomResource getPomResource()
          Get the MavenPomResource for this Project.
 String resolveProperties(String value)
          Resolve Maven properties for the given input String, replacing occurrences of the `${property}` with their defined value.
 void setPOM(org.apache.maven.model.Model pom)
          Set the current Maven Model for this Project.
 
Methods inherited from interface org.jboss.forge.facets.Facet
getOrigin, install, isInstalled, uninstall
 

Method Detail

getPomResource

MavenPomResource getPomResource()
Get the MavenPomResource for this Project.


getPOM

org.apache.maven.model.Model getPOM()
Get the current Maven Model for this Project.


setPOM

void setPOM(org.apache.maven.model.Model pom)
Set the current Maven Model for this Project.


resolveProperties

String resolveProperties(String value)
Resolve Maven properties for the given input String, replacing occurrences of the `${property}` with their defined value.


executeMaven

boolean executeMaven(List<String> parameters)
Execute Maven with the given arguments. Attempt to use any native installation of Maven before falling back to Maven embedded. Return true on success or false on failure.


executeMavenEmbedded

boolean executeMavenEmbedded(List<String> parameters)
Execute Maven with the given arguments. Attempt to use any native installation of Maven before falling back to Maven embedded. Return true on success or false on failure.


getLocalRepositoryDirectory

DirectoryResource getLocalRepositoryDirectory()
Returns a DirectoryResource representing the location of the current local Maven repository.


Forge - Maven API 2.0.0.Alpha3

Copyright © 2013 JBoss by Red Hat. All Rights Reserved.