public interface Mapping
Modifier and Type | Field and Description |
---|---|
static String |
ARTIFACT_ID_PROPERTY |
static String |
DESCRIPTION_PROPERTY |
static String |
GROUP_ID_PROPERTY |
static String |
NAME_PROPERTY |
static String |
PACKAGING_PROPERTY |
static String |
PROPERTY_PREFIX |
static String |
URL_PROPERTY |
static String |
VERSION_PROPERTY |
Modifier and Type | Method and Description |
---|---|
boolean |
accept(Map<String,?> options)
Tests weather this mapping accepts the given option
|
default Properties |
getEnhancementProperties(Map<String,?> options)
A properties object can enhance the returned polyglot model by e.g.
|
String |
getFlavour() |
float |
getPriority()
get the priority of this mapping, higher priorities are given precedence over those with lower priority, the default priority is 0
|
org.apache.maven.model.io.ModelReader |
getReader() |
org.apache.maven.model.io.ModelWriter |
getWriter() |
File |
locatePom(File dir)
Locates the pom in the given directory
|
static final String NAME_PROPERTY
static final String DESCRIPTION_PROPERTY
static final String URL_PROPERTY
static final String PACKAGING_PROPERTY
static final String VERSION_PROPERTY
static final String GROUP_ID_PROPERTY
static final String ARTIFACT_ID_PROPERTY
static final String PROPERTY_PREFIX
File locatePom(File dir)
dir
- the directory to locate the pom fornull
if none was found by this mappingboolean accept(Map<String,?> options)
options
- the options to usetrue
if options are accepted, false
otherwiseorg.apache.maven.model.io.ModelReader getReader()
ModelReader
responsible for reading poms returned by the locatePom(File)
methodorg.apache.maven.model.io.ModelWriter getWriter()
ModelWriter
responsible for writing poms returned by the locatePom(File)
methodfloat getPriority()
String getFlavour()
default Properties getEnhancementProperties(Map<String,?> options)
ARTIFACT_ID_PROPERTY
, empty property will be interpreted as not givenGROUP_ID_PROPERTY
, empty property will be interpreted as not givenVERSION_PROPERTY
, empty property will be interpreted as not givenPACKAGING_PROPERTY
, empty property will be interpreted as not givenNAME_PROPERTY
, empty property will be interpreted as not givenDESCRIPTION_PROPERTY
, empty property will be interpreted as not givenURL_PROPERTY
, empty property will be interpreted as not givenPROPERTY_PREFIX
it will be interpreted as an enhancement to the properties of the model by removing the prefix and using its value as-is.null
if no properties exitsCopyright © 2020. All rights reserved.