Class GenerateAppsMojo
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.AbstractAppsConfigurationMojo
de.iip_ecosphere.platform.configuration.maven.GenerateAppsMojo
- 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="generateApps",
defaultPhase=PACKAGE)
public class GenerateAppsMojo
extends AbstractAppsConfigurationMojo
Generates the configured applications including dependencies to the implementing services.
- Author:
- Holger Eichelberger, SSE
-
Field Summary
FieldsFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanCalled byAbstractConfigurationMojo.execute()to figure out whether the instantiation shall take place.Returns the start rule name.protected voidrecordExecutionTime(long time) Called to record the execution time.Methods inherited from class de.iip_ecosphere.platform.configuration.maven.AbstractAppsConfigurationMojo
executeMethods inherited from class de.iip_ecosphere.platform.configuration.maven.AbstractConfigurationMojo
adjustOutputDir, checkChanged, findGenParent, getFallbackResourcesDirectory, getMaxLastModified, getMetaModelDirectory, getModel, getModelDirectory, getOutputDirectory, getProject, getProjectBuilder, getRepoSystem, getResourcesDirectory, getSession, getTracingLevel, getUnpackForce, isModelDirectoryValid, modelNewerThanOutMethods 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
-
Field Details
-
checkChanged
@Parameter(property="configuration.checkChanged", required=false, defaultValue="false") private boolean checkChanged
-
-
Constructor Details
-
GenerateAppsMojo
public GenerateAppsMojo()
-
-
Method Details
-
getStartRule
Description copied from class:AbstractConfigurationMojoReturns the start rule name.- Specified by:
getStartRulein classAbstractConfigurationMojo- Returns:
- the start rule name
-
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
-
recordExecutionTime
protected void recordExecutionTime(long time) Called to record the execution time.- Overrides:
recordExecutionTimein classAbstractConfigurationMojo- Parameters:
time- the passed time in ms
-