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 BaseMojoPlugin for filling empty gherkin tables with generated combinations
-
-
Field Summary
Fields Modifier and Type Field Description static StringWARN_MESSAGE-
Fields inherited from class de.gematik.BaseMojo
GENERATED_COMBINE_ITEMS_DIR
-
-
Constructor Summary
Constructors Constructor Description PrepareItemsMojo(ApiRequester apiRequester)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcheckExpressionSetCorrectly()voidexecute()static PrepareItemsMojogetInstance()static org.apache.maven.plugin.logging.LoggetPluginLog()protected voidrun()voidsetConfigFail(boolean configFail)Say if the build should break if at least one manual set Tag/Property does not match the found value on info endpoint.voidsetDefaultMatchStrategy(GroupMatchStrategyType defaultMatchStrategy)Default matching strategy.voidsetExcludedGroups(List<String> excludedGroups)Name of all groups of items in combine_items.json explicitly not to usevoidsetHardFail(boolean hardFail)Say if the build should break if at least one API is not reachable.voidsetInfoResourceLocation(String infoResourceLocation)Location to infostatic voidsetInstance(PrepareItemsMojo instance)voidsetItems(List<CombineItem> items)voidsetItemsCreator(ItemsCreator itemsCreator)voidsetPooler(Pooler pooler)voidsetPoolGroups(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 propertyvoidsetTagExpressions(List<TagExpression> tagExpressions)Expression and tag to set if expression is true-
Methods inherited from class de.gematik.BaseMojo
getClientCertStore, getClientCertStorePw, getCombineItemsFile, getTruststore, getTruststorePw, setClientCertStore, setClientCertStorePw, setCombineItemsFile, setTruststore, setTruststorePw
-
-
-
-
Field Detail
-
WARN_MESSAGE
public static final String WARN_MESSAGE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
PrepareItemsMojo
@Inject public PrepareItemsMojo(ApiRequester apiRequester)
-
-
Method Detail
-
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
public void setInfoResourceLocation(String infoResourceLocation)
Location to info
-
setTagExpressions
public void setTagExpressions(List<TagExpression> tagExpressions)
Expression and tag to set if expression is true
-
setPropertyExpressions
public void setPropertyExpressions(List<PropertyExpression> propertyExpressions)
List of Expressions that set as property
-
setHardFail
public void setHardFail(boolean hardFail)
Say if the build should break if at least one API is not reachable. If set to false it will generate a combine_items.json file without the not reachable API`s
-
setConfigFail
public void setConfigFail(boolean configFail)
Say if the build should break if at least one manual set Tag/Property does not match the found value on info endpoint.
-
setPoolGroups
public void setPoolGroups(List<PoolGroup> poolGroups)
Name a list of lists that should be used and how often.
-
setExcludedGroups
public void setExcludedGroups(List<String> excludedGroups)
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
public void setPoolGroupString(String poolGroupString)
This is another way to define poolGroups. Will override 'poolGroups' Pattern GroupPattern is mandatory. Amount == (0 || null) means all, Strategy == null -> default strategy ;| , , | , ,
-
setDefaultMatchStrategy
public void setDefaultMatchStrategy(GroupMatchStrategyType defaultMatchStrategy)
Default matching strategy. If no strategy is named in poolGroup this will be applied
-
setItemsCreator
public void setItemsCreator(ItemsCreator itemsCreator)
-
setItems
public void setItems(List<CombineItem> items)
-
setPooler
public void setPooler(Pooler pooler)
-
getInstance
public static PrepareItemsMojo getInstance()
-
setInstance
public static void setInstance(PrepareItemsMojo instance)
-
-