Class AbstractPlatformModelMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
ai.timefold.solver.tools.maven.AbstractPlatformModelMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Direct Known Subclasses:
ConfigureMojo, DeployModelMojo, UndeployModelMojo

public abstract class AbstractPlatformModelMojo extends org.apache.maven.plugin.AbstractMojo
  • Field Details

    • PROP_DRY_RUN

      public static final String PROP_DRY_RUN
      See Also:
    • PROP_PLATFORM_URL

      protected static final String PROP_PLATFORM_URL
      See Also:
    • PROP_MODEL_KEY

      protected static final String PROP_MODEL_KEY
      See Also:
    • PROP_MODEL_TENANTS

      protected static final String PROP_MODEL_TENANTS
      See Also:
    • PROP_MODEL_SUBS

      protected static final String PROP_MODEL_SUBS
      See Also:
    • session

      @Parameter(defaultValue="${session}", readonly=true) protected org.apache.maven.execution.MavenSession session
    • buildDirectory

      @Parameter(defaultValue="${project.build.directory}", required=false) protected String buildDirectory
      URL to the platform that model should be deployed to
    • platformUrl

      @Parameter(property="timefold.platformUrl", required=true) protected String platformUrl
      URL to the platform that model should be deployed to
    • key

      @Parameter(property="timefold.model.key", required=true) protected String key
      Unique key used to register model with - used also when unregistering
    • handleSubscription

      @Parameter(property="timefold.model.handleSubscription", required=false, defaultValue="false") protected boolean handleSubscription
      Determines if the model registration should automatically subscribe/unsubscribe to the registered model
    • mapper

      protected com.fasterxml.jackson.databind.ObjectMapper mapper
    • httpClient

      protected HttpClient httpClient
  • Constructor Details

    • AbstractPlatformModelMojo

      public AbstractPlatformModelMojo()
  • Method Details

    • configureHttpRequest

      protected void configureHttpRequest(HttpRequest.Builder builder)
    • validate

      protected void validate()
    • readModelDescriptor

      protected com.fasterxml.jackson.databind.node.ObjectNode readModelDescriptor(Path modelDescriptorArchivePath) throws IOException
      Throws:
      IOException
    • getPropertyOrParameter

      protected <T> T getPropertyOrParameter(String propertyName, T parameter)
    • getTenants

      public List<String> getTenants()