Package org.apache.maven.index.artifact
Interface ArtifactPackagingMapper
- All Known Implementing Classes:
DefaultArtifactPackagingMapper
public interface ArtifactPackagingMapper
A utility component that resolves POM packaging to artifact extension. Different implementations may provide
different means to do it.
- Author:
- cstamas
-
Method Summary
Modifier and TypeMethodDescriptiongetExtensionForPackaging
(String packaging) Returns the extension belonging to given packaging, like "jar" for "jar", "jar" for "ear", etc.void
setPropertiesFile
(File file) Sets the file to source the user provided mappings from, and resets the mappings, forcing it to reload the file.
-
Method Details
-
getExtensionForPackaging
Returns the extension belonging to given packaging, like "jar" for "jar", "jar" for "ear", etc.- Parameters:
packaging
-- Returns:
-
setPropertiesFile
Sets the file to source the user provided mappings from, and resets the mappings, forcing it to reload the file.- Parameters:
file
-
-