public class MutablePomFile extends Object
| Constructor and Description |
|---|
MutablePomFile(de.pdark.decentxml.Document pom) |
| Modifier and Type | Method and Description |
|---|---|
String |
getArtifactId() |
Build |
getBuild() |
List<GAV> |
getDependencies() |
DependencyManagement |
getDependencyManagement() |
String |
getGroupId()
Returns the (effective) groupId of the project.
|
List<String> |
getModules() |
String |
getPackaging() |
GAV |
getParent() |
String |
getParentVersion() |
List<Profile> |
getProfiles() |
List<Property> |
getProperties() |
String |
getVersion()
Returns the (effective) version of the project.
|
static MutablePomFile |
read(File file) |
static MutablePomFile |
read(InputStream input) |
void |
setParentVersion(String newVersion)
Sets the version in the parent POM declaration.
|
void |
setVersion(String version)
Sets the version of the project.
|
static void |
write(MutablePomFile pom,
File file) |
static void |
write(MutablePomFile pom,
OutputStream out) |
public static final String POM_XML
public static MutablePomFile read(File file) throws IOException
IOExceptionpublic static MutablePomFile read(InputStream input) throws IOException
IOExceptionpublic static void write(MutablePomFile pom, OutputStream out) throws IOException
IOExceptionpublic static void write(MutablePomFile pom, File file) throws IOException
IOExceptionpublic void setParentVersion(String newVersion)
setVersion(String)public void setVersion(String version)
public String getVersion()
public String getPackaging()
public String getParentVersion()
public String getGroupId()
public String getArtifactId()
public GAV getParent()
public DependencyManagement getDependencyManagement()
public Build getBuild()
Copyright © 2008-2015 Eclipse Foundation. All Rights Reserved.