Interface MavenModelBuilderProvider
public interface MavenModelBuilderProvider
API to find the implementation for the
MavenModelBuilder- Since:
- 2.0
-
Method Summary
Modifier and TypeMethodDescriptioncreateMavenModelBuilder(String groupId, String artifactId, String version, Optional<String> modelVersion, Optional<String> packaging) Creates a newMavenModelBuilderwith the given parameterscreateMavenModelBuilder(Path path) Creates a newMavenModelBuilderfrom a file.static MavenModelBuilderProviderDiscovers an availableMavenModelBuilderProvider.
-
Method Details
-
createMavenModelBuilder
MavenModelBuilder createMavenModelBuilder(String groupId, String artifactId, String version, Optional<String> modelVersion, Optional<String> packaging) Creates a newMavenModelBuilderwith the given parameters- Parameters:
groupId- the groupId of the ModelartifactId- the artifactId of the Modelversion- the version of the ModelmodelVersion- the modelVersion of the Modelpackaging- the packaging of the model- Returns:
- a
MavenModelBuilder
-
createMavenModelBuilder
Creates a newMavenModelBuilderfrom a file. This file could be a folder containing a POM, a file pointing to a POM or a JAR.- Parameters:
path- thePathof the pom.- Returns:
- a
MavenModelBuilder
-
discoverProvider
Discovers an availableMavenModelBuilderProvider.- Returns:
- a new client configured with the provided maven configuration.
-