public class PomFile extends Object
Modifier and Type | Field and Description |
---|---|
static String |
POLYGLOT_POM_XML |
static String |
POM_XML |
Constructor and Description |
---|
PomFile(de.pdark.decentxml.Document pom,
boolean isMutable) |
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.
|
boolean |
isMutable() |
static PomFile |
read(File file,
boolean isMutable) |
static PomFile |
read(InputStream input,
boolean isMutable) |
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(PomFile pom,
File file) |
static void |
write(PomFile pom,
OutputStream out) |
public static final String POM_XML
public static final String POLYGLOT_POM_XML
public static PomFile read(File file, boolean isMutable) throws IOException
IOException
public static PomFile read(InputStream input, boolean isMutable) throws IOException
IOException
public static void write(PomFile pom, OutputStream out) throws IOException
IOException
public static void write(PomFile pom, File file) throws IOException
IOException
public 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()
public boolean isMutable()
Copyright © 2008–2017 Eclipse Foundation. All rights reserved.