public interface MavenFacet extends ProvidedProjectFacet
ProjectFacet
adding support for the Maven build system.Modifier and Type | Method and Description |
---|---|
boolean |
executeMaven(List<String> parameters)
Execute Maven with the given arguments.
|
boolean |
executeMavenEmbedded(List<String> parameters)
Execute Maven with the given arguments.
|
boolean |
executeMavenEmbedded(List<String> parameters,
PrintStream out,
PrintStream err)
Execute embedded Maven with the given arguments.
|
DirectoryResource |
getLocalRepositoryDirectory()
Returns a
DirectoryResource representing the location of the current local Maven repository. |
org.apache.maven.model.Model |
getModel()
Get the current Maven
Model for this Project . |
MavenModelResource |
getModelResource()
Get the
MavenModelResource for this Project . |
Map<String,String> |
getProperties()
Get a
Map of all resolvable project properties. |
boolean |
isModelValid()
|
String |
resolveProperties(String value)
Resolve Maven properties for the given input
String , replacing occurrences of the `${property}` with their
defined value. |
void |
setModel(org.apache.maven.model.Model pom)
Set the current Maven
Model for this Project . |
getFaceted, install, isInstalled, uninstall
MavenModelResource getModelResource()
MavenModelResource
for this Project
.org.apache.maven.model.Model getModel()
Model
for this Project
.void setModel(org.apache.maven.model.Model pom)
Model
for this Project
.String resolveProperties(String value)
String
, replacing occurrences of the `${property}` with their
defined value.boolean executeMaven(List<String> parameters)
true
on success or false
on failure.boolean executeMavenEmbedded(List<String> parameters)
true
on success or false
on failure.boolean executeMavenEmbedded(List<String> parameters, PrintStream out, PrintStream err)
PrintStream
strue
on success or false
on failure.DirectoryResource getLocalRepositoryDirectory()
DirectoryResource
representing the location of the current local Maven repository.boolean isModelValid()
Copyright © 2016 JBoss by Red Hat. All rights reserved.