public class PomUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
addDependency(Document doc,
String groupId,
String artifactId,
String version)
Adds a dependency to given pom.xml DOM if it doesn't exist yet.
|
static boolean |
addModule(Document doc,
String module)
Adds a module to given pom.xml DOM if it doesn't exist yet.
|
public static boolean addDependency(Document doc, String groupId, String artifactId, String version)
doc - the pom.xml DOMgroupId - the dependency's groupIdartifactId - the dependency's artifactIdversion - the dependency's versiontrue if dependency was addedCopyright © 2021. All rights reserved.