Package de.gematik.prepare
Class PrepareItemsMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
de.gematik.BaseMojo
de.gematik.prepare.PrepareItemsMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="prepare-items",
defaultPhase=GENERATE_TEST_SOURCES)
public class PrepareItemsMojo
extends BaseMojo
Plugin for filling empty gherkin tables with generated combinations
-
Field Summary
FieldsFields inherited from class de.gematik.BaseMojo
apiErrors, GENERATED_COMBINE_ITEMS_DIRFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidvoidexecute()Default matching strategy.static PrepareItemsMojostatic org.apache.maven.plugin.logging.LogName a list of lists that should be used and how often.protected voidrun()voidsetAcceptUnknownInfo(boolean acceptUnknownInfo) Fields not known to the info API will be evaluated as false, instead of null and leading to an error.voidsetConfig(PrepareItemsConfig config) voidsetDefaultMatchStrategy(GroupMatchStrategyType defaultMatchStrategy) Default matching strategy.voidsetEnvVarFormat(String envVarFormat) Parameter to decide what format the environment variables should havevoidsetExcludedGroups(List<String> excludedGroups) Name of all groups of items in combine_items.json explicitly not to usevoidsetInfoResourceLocation(String infoResourceLocation) Location to infostatic voidsetInstance(PrepareItemsMojo instance) voidsetItems(List<CombineItem> items) voidsetItemsCreator(ItemsCreator itemsCreator) voidvoidsetPoolGroups(List<PoolGroup> poolGroups) Name a list of lists that should be used and how often.voidsetPoolGroupString(String poolGroupString) This is another way to define poolGroups.voidsetPoolSize(int poolSize) Size of to use different groupsvoidsetPropertyExpressions(List<PropertyExpression> propertyExpressions) List of Expressions that set as propertyvoidsetSkipPrep(boolean skipPrep) Parameter to decide if prepare-execution should be runvoidsetTagExpressions(List<TagExpression> tagExpressions) Expression and tag to set if expression is trueMethods inherited from class de.gematik.BaseMojo
getAcceptedResponseFamilies, getAllowedResponseCodes, getApiErrors, getClientCertStore, getClientCertStorePw, getCombineItemsFile, getProxyHost, getProxyPort, getTruststore, getTruststorePw, isBreakOnContextError, isBreakOnFailedRequest, isSkip, setAcceptedResponseFamilies, setAllowedResponseCodes, setBreakOnContextError, setBreakOnFailedRequest, setClientCertStore, setClientCertStorePw, setCombineItemsFile, setProxyHost, setProxyPort, setSkip, setTruststore, setTruststorePwMethods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
FAILED_REQ_WARN_MESSAGE
- See Also:
-
CONFIG_FAIL_WARN_MESSAGE
- See Also:
-
USED_GROUPS_PATH
-
-
Constructor Details
-
PrepareItemsMojo
-
-
Method Details
-
getPluginLog
public static org.apache.maven.plugin.logging.Log getPluginLog() -
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException- Throws:
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureException
-
checkExpressionSetCorrectly
protected void checkExpressionSetCorrectly() throws org.apache.maven.plugin.MojoExecutionException- Throws:
org.apache.maven.plugin.MojoExecutionException
-
run
protected void run() throws org.apache.maven.plugin.MojoExecutionException- Throws:
org.apache.maven.plugin.MojoExecutionException
-
setInfoResourceLocation
Location to info -
setTagExpressions
Expression and tag to set if expression is true -
setPropertyExpressions
List of Expressions that set as property -
setPoolGroups
Name a list of lists that should be used and how often. -
setExcludedGroups
Name of all groups of items in combine_items.json explicitly not to use -
setPoolSize
public void setPoolSize(int poolSize) Size of to use different groups -
setPoolGroupString
This is another way to define poolGroups. Will override 'poolGroups' Pattern GroupPattern is mandatory. Amount == (0 || null) means all, Strategy == null -> default strategy ;| , , | , , -
setDefaultMatchStrategy
Default matching strategy. If no strategy is named in poolGroup this will be applied -
setSkipPrep
public void setSkipPrep(boolean skipPrep) Parameter to decide if prepare-execution should be run -
setEnvVarFormat
Parameter to decide what format the environment variables should have -
setAcceptUnknownInfo
public void setAcceptUnknownInfo(boolean acceptUnknownInfo) Fields not known to the info API will be evaluated as false, instead of null and leading to an error. -
setItemsCreator
-
setItems
-
setPooler
-
setConfig
-
getInstance
-
setInstance
-
getPoolGroups
Name a list of lists that should be used and how often. -
getDefaultMatchStrategy
Default matching strategy. If no strategy is named in poolGroup this will be applied
-