Interface MavenModelBuilder.MavenProfileBuilder
- Enclosing interface:
- MavenModelBuilder
public static interface MavenModelBuilder.MavenProfileBuilder
Builder to add a new Profile to the
MavenPomModel-
Method Summary
Modifier and TypeMethodDescriptionaddDependency(BundleDependency bundleDependency) Adds a new dependency to the profileaddRepository(String id, String name, String url) Adds a repository to the profilevoidbuild()Adds the profile to theMavenPomModelsetActivationByJdk(String jdk) Specifies for which JAVA version this profile will be activated.setActiveByDefault(boolean activeByDefault) If set to true, this profile will be active unless another profile in this pom is activated.
-
Method Details
-
setActiveByDefault
If set to true, this profile will be active unless another profile in this pom is activated.- Parameters:
activeByDefault-
-
setActivationByJdk
Specifies for which JAVA version this profile will be activated.- Parameters:
jdk- the JAVA version.
-
addRepository
Adds a repository to the profile- Parameters:
id- the repository idname- the repository nameurl- the repository URL
-
addDependency
Adds a new dependency to the profile- Parameters:
bundleDependency- dependency bundle descriptor.
-
build
void build()Adds the profile to theMavenPomModel
-