org.apache.maven.index.artifact
Class DefaultArtifactPackagingMapper
java.lang.Object
org.codehaus.plexus.logging.AbstractLogEnabled
org.apache.maven.index.artifact.DefaultArtifactPackagingMapper
- All Implemented Interfaces:
- ArtifactPackagingMapper, org.codehaus.plexus.logging.LogEnabled
@Component(role=ArtifactPackagingMapper.class)
public class DefaultArtifactPackagingMapper
- extends org.codehaus.plexus.logging.AbstractLogEnabled
- implements ArtifactPackagingMapper
A very simple artifact packaging mapper, that has everything for quick-start wired in this class. Also, it takes into
account the "${nexus-work}/conf/packaging2extension-mapping.properties" file into account if found. To override the
"defaults" in this class, simply add lines to properties file with same keys.
- Author:
- cstamas
Methods inherited from class org.codehaus.plexus.logging.AbstractLogEnabled |
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MAPPING_PROPERTIES_FILE
public static final String MAPPING_PROPERTIES_FILE
- See Also:
- Constant Field Values
DefaultArtifactPackagingMapper
public DefaultArtifactPackagingMapper()
setPropertiesFile
public void setPropertiesFile(File propertiesFile)
- Description copied from interface:
ArtifactPackagingMapper
- Sets the file to source the user provided mappings from, and resets the mappings, forcing it to reload the file.
- Specified by:
setPropertiesFile
in interface ArtifactPackagingMapper
getPackaging2extensionMapping
public Map<String,String> getPackaging2extensionMapping()
setPackaging2extensionMapping
public void setPackaging2extensionMapping(Map<String,String> packaging2extensionMapping)
getDefaults
public Map<String,String> getDefaults()
getExtensionForPackaging
public String getExtensionForPackaging(String packaging)
- Description copied from interface:
ArtifactPackagingMapper
- Returns the extension belonging to given packaging, like "jar" for "jar", "jar" for "ear", etc.
- Specified by:
getExtensionForPackaging
in interface ArtifactPackagingMapper
- Returns:
Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.