Class GenerateBrokerMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
de.iip_ecosphere.platform.tools.maven.python.AbstractLoggingMojo
de.iip_ecosphere.platform.configuration.maven.AbstractConfigurationMojo
de.iip_ecosphere.platform.configuration.maven.GenerateBrokerMojo
- All Implemented Interfaces:
DependencyResolver.Caller,de.iip_ecosphere.platform.tools.maven.python.Logger,org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="generateBroker",
defaultPhase=PACKAGE)
public class GenerateBrokerMojo
extends AbstractConfigurationMojo
Generates the default/testing broker.
- Author:
- Holger Eichelberger, SSE
-
Field Summary
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringadjustOutputDir(String outputDir) Adjusts the output directory if necessary.protected booleanCalled byAbstractConfigurationMojo.execute()to figure out whether the instantiation shall take place.Returns the start rule name.Methods inherited from class de.iip_ecosphere.platform.configuration.maven.AbstractConfigurationMojo
checkChanged, execute, findGenParent, getFallbackResourcesDirectory, getMaxLastModified, getMetaModelDirectory, getModel, getModelDirectory, getOutputDirectory, getProject, getProjectBuilder, getRepoSystem, getResourcesDirectory, getSession, getTracingLevel, getUnpackForce, isModelDirectoryValid, modelNewerThanOut, recordExecutionTimeMethods inherited from class de.iip_ecosphere.platform.tools.maven.python.AbstractLoggingMojo
error, error, info, warnMethods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContextMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.iip_ecosphere.platform.configuration.maven.DependencyResolver.Caller
getLog, getRemoteRepos, getRepoSession
-
Constructor Details
-
GenerateBrokerMojo
public GenerateBrokerMojo()
-
-
Method Details
-
getStartRule
Description copied from class:AbstractConfigurationMojoReturns the start rule name.- Specified by:
getStartRulein classAbstractConfigurationMojo- Returns:
- the start rule name
-
adjustOutputDir
Description copied from class:AbstractConfigurationMojoAdjusts the output directory if necessary.- Overrides:
adjustOutputDirin classAbstractConfigurationMojo- Parameters:
outputDir- the output directory- Returns:
- the adjusted output directory, by default just
outputDir
-
enableRun
Description copied from class:AbstractConfigurationMojoCalled byAbstractConfigurationMojo.execute()to figure out whether the instantiation shall take place. By default, instantiation will be enabled if IVML files inmodelDirare newer than files inoutput directoryor if output directory is empty or missing.- Overrides:
enableRunin classAbstractConfigurationMojo- Parameters:
metaModelDir- the meta model directorymodelDir- the model directoryoutputDir- the output directory- Returns:
truefor instantiation,falsefor no instantiation
-