public class BuildQualifierAggregatorMojo extends BuildQualifierMojo
Timestamp of included bundles and features is determined by parsing their respective version qualifiers. Qualifiers that cannot be parsed are silently ignored, which can result in old version qualifier used even when aggregator project contents actually changed. In this case aggregator project timestamp will have to be increased manually, using artificial SCM commit for example.
Qualifier aggregation is enabled only for projects with custom timestamp provider, i.e. <timestampProvider> is set in pom.xlm to a value other than "default". The default build timestamp provider uses build start time as build timestamp, which should be newer or equal than timestamp of any included bundle/feature project, which makes qualifier aggregation redundant.
baseDir, BUILD_QUALIFIER_PROPERTY, buildPropertiesParser, execution, forceContextQualifier, format, session, timestampProvider, timestampProviders, UNQUALIFIED_VERSION_PROPERTY
packaging, project, projectTypes
Constructor and Description |
---|
BuildQualifierAggregatorMojo() |
Modifier and Type | Method and Description |
---|---|
protected Date |
getBuildTimestamp() |
execute, setFormat
getOSGiId, getOSGiVersion
protected Date getBuildTimestamp() throws org.apache.maven.plugin.MojoExecutionException
getBuildTimestamp
in class BuildQualifierMojo
org.apache.maven.plugin.MojoExecutionException
Copyright © 2008-2013 Eclipse Foundation. All Rights Reserved.