craft_parts.utils.maven.common module¶
Utilities for Maven projects and settings.
- craft_parts.utils.maven.common.create_maven_settings(*, part_info)[source]¶
Create a Maven configuration file.
The settings file contains additional configuration for Maven, such as proxy parameters.
If it detects that no configuration is necessary, it will return None and do nothing.
- Parameters:
part_info (
PartInfo
) – The part info for the part invoking Maven.- Return type:
Path
|None
- Returns:
Returns a Path object to the settings file if one is created, otherwise None.