Class PomArtifactVersionResolver
- java.lang.Object
-
- org.apache.sling.maven.slingstart.PomArtifactVersionResolver
-
- All Implemented Interfaces:
org.apache.sling.provisioning.model.ModelUtility.ArtifactVersionResolver
public class PomArtifactVersionResolver extends Object implements org.apache.sling.provisioning.model.ModelUtility.ArtifactVersionResolver
Provisioning artifact resolver that tries to resolve artifacts in provisioning file without version (LATEST) against the dependencies defined in the maven project. The following sections in the Maven project are considered during resolving the version:- The project's artifact itself
- The project's dependencies
- The project's dependencyManagement
-
-
Constructor Summary
Constructors Constructor Description PomArtifactVersionResolver(org.apache.maven.project.MavenProject project, boolean allowUnresolvedPomDependencies)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringresolve(org.apache.sling.provisioning.model.Artifact artifact)
-
-
-
Method Detail
-
resolve
public String resolve(org.apache.sling.provisioning.model.Artifact artifact)
- Specified by:
resolvein interfaceorg.apache.sling.provisioning.model.ModelUtility.ArtifactVersionResolver
-
-