public class ModelUtils extends Object
| Constructor and Description |
|---|
ModelUtils() |
| Modifier and Type | Method and Description |
|---|---|
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 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 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 © 2019 JBoss by Red Hat. All rights reserved.