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 String |
getRawVersion(org.apache.maven.model.Model model)
Returns the raw version of the 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 boolean |
isUnresolvedVersion(String version) |
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(InputStream stream) |
static org.apache.maven.model.Model |
readModel(Path pomXml) |
static AppArtifact |
resolveAppArtifact(Path appJar) |
static String |
resolveVersion(String rawVersion,
org.apache.maven.model.Model rawModel) |
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 getRawVersion(org.apache.maven.model.Model model)
model - POMpublic static String getVersion(org.apache.maven.model.Model model)
public static boolean isUnresolvedVersion(String version)
public static String resolveVersion(String rawVersion, org.apache.maven.model.Model rawModel)
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 org.apache.maven.model.Model readModel(InputStream stream) 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.