Class ModelUtils
java.lang.Object
io.quarkus.bootstrap.resolver.maven.workspace.ModelUtils
- Author:
- Alexey Loubyansky
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.maven.model.ModelapplySystemProperties(org.apache.maven.model.Model model) If the model contains properties, this method overrides those that appear to be defined as system properties.static StringgetGroupId(org.apache.maven.model.Model model) static StringgetRawVersion(org.apache.maven.model.Model model) Returns the raw version of the model.static io.quarkus.maven.dependency.ArtifactCoordsgetStateArtifact(io.quarkus.maven.dependency.ArtifactCoords appArtifact) Returns the provisioning state artifact for the given application artifactstatic StringgetVersion(org.apache.maven.model.Model model) static booleanisUnresolvedVersion(String version) static voidpersistModel(Path pomFile, org.apache.maven.model.Model model) static org.apache.maven.model.ModelreadModel(InputStream stream) static org.apache.maven.model.Modelstatic io.quarkus.maven.dependency.ResolvedDependencyresolveAppArtifact(Path appJar) static StringresolveVersion(String rawVersion, org.apache.maven.model.Model rawModel)
-
Constructor Details
-
ModelUtils
public ModelUtils()
-
-
Method Details
-
getStateArtifact
public static io.quarkus.maven.dependency.ArtifactCoords getStateArtifact(io.quarkus.maven.dependency.ArtifactCoords appArtifact) Returns the provisioning state artifact for the given application artifact- Parameters:
appArtifact- application artifact- Returns:
- provisioning state artifact
-
resolveAppArtifact
public static io.quarkus.maven.dependency.ResolvedDependency resolveAppArtifact(Path appJar) throws IOException - Throws:
IOException
-
getGroupId
-
getRawVersion
Returns the raw version of the model. If the model does not include the version directly, it will return the version of the parent. The version is raw in a sense if it's a property expression, the expression will not be resolved.- Parameters:
model- POM- Returns:
- raw model
-
getVersion
-
isUnresolvedVersion
-
resolveVersion
-
applySystemProperties
public 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. -
readModel
- Throws:
IOException
-
readModel
- Throws:
IOException
-
persistModel
public static void persistModel(Path pomFile, org.apache.maven.model.Model model) throws IOException - Throws:
IOException
-