craft_parts.utils.maven package¶
Submodules¶
Module contents¶
Common Maven utilities.
- craft_parts.utils.maven.create_maven_settings(*, part_info, set_mirror)[source]¶
Create a Maven configuration file.
The settings file contains additional configuration for Maven, such as proxy parameters and a reference to the backstage repository.
- Parameters:
part_info (
PartInfo) – The part info for the part invoking Maven.set_mirror (
bool) – Whether to configure for a local build.
- Return type:
Path- Returns:
Returns a Path object to the newly created settings file.
- craft_parts.utils.maven.update_pom(*, part_info, deploy_to, self_contained, pom_file=None)[source]¶
Update the POM file of a Maven project.
- Parameters:
part_info (
PartInfo) – Information about the invoking part.deploy_to (
Path|None) – The path to configure the mvn deploy location. If None, no path is configured.self_contained (
bool) – Whether or not to patch version numbers with what is actually available.pom_file (
Path|None) – The optional Maven POM file to update. IfNone, the function will try to usepom.xmlon the part’s build subdir.
- Return type:
None