public class ModelUtils extends Object
| Constructor and Description |
|---|
ModelUtils() |
| Modifier and Type | Method and Description |
|---|---|
static org.apache.maven.model.Model |
applySystemProperties(org.apache.maven.model.Model model)
If the model contains properties, this method overrides those that appear to be
defined as system properties.
|
static String |
getGroupId(org.apache.maven.model.Model model) |
static AppArtifact |
getStateArtifact(AppArtifact appArtifact)
Returns the provisioning state artifact for the given application artifact
|
static List<AppDependency> |
getUpdateCandidates(List<org.apache.maven.model.Dependency> deps,
List<AppDependency> appDeps,
Set<String> groupIds)
Filters out non-platform from application POM dependencies.
|
static String |
getVersion(org.apache.maven.model.Model model) |
static void |
persistModel(Path pomFile,
org.apache.maven.model.Model model) |
static org.apache.maven.model.Model |
readAppModel(Path appJar,
AppArtifact appArtifact) |
static org.apache.maven.model.Model |
readModel(Path pomXml) |
static AppArtifact |
resolveAppArtifact(Path appJar) |
public static AppArtifact getStateArtifact(AppArtifact appArtifact)
appArtifact - application artifactpublic static List<AppDependency> getUpdateCandidates(List<org.apache.maven.model.Dependency> deps, List<AppDependency> appDeps, Set<String> groupIds) throws IOException
deps - POM model application dependenciesappDeps - resolved application dependenciesAppCreatorException - in case of a failureIOExceptionpublic static AppArtifact resolveAppArtifact(Path appJar) throws IOException
IOExceptionpublic static org.apache.maven.model.Model readAppModel(Path appJar, AppArtifact appArtifact) throws IOException
IOExceptionpublic static String getGroupId(org.apache.maven.model.Model model)
public static String getVersion(org.apache.maven.model.Model model)
public static org.apache.maven.model.Model applySystemProperties(org.apache.maven.model.Model model)
public static org.apache.maven.model.Model readModel(Path pomXml) throws IOException
IOExceptionpublic static void persistModel(Path pomFile, org.apache.maven.model.Model model) throws IOException
IOExceptionCopyright © 2020 JBoss by Red Hat. All rights reserved.