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 Details

  • Constructor Details

    • PrepareItemsMojo

      @Inject public PrepareItemsMojo(ApiRequester apiRequester)
  • 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.MojoExecutionException
      org.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
    • 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
    • setSkipPrep

      public void setSkipPrep(boolean skipPrep)
      Parameter to decide if prepare-execution should be run
    • setEnvVarFormat

      public void setEnvVarFormat(String envVarFormat)
      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

      public void setItemsCreator(ItemsCreator itemsCreator)
    • setItems

      public void setItems(List<CombineItem> items)
    • setPooler

      public void setPooler(Pooler pooler)
    • setConfig

      public void setConfig(PrepareItemsConfig config)
    • getInstance

      public static PrepareItemsMojo getInstance()
    • setInstance

      public static void setInstance(PrepareItemsMojo instance)
    • getPoolGroups

      public List<PoolGroup> getPoolGroups()
      Name a list of lists that should be used and how often.
    • getDefaultMatchStrategy

      public GroupMatchStrategyType getDefaultMatchStrategy()
      Default matching strategy. If no strategy is named in poolGroup this will be applied