public class VersionFactory extends Object
| Constructor and Description |
|---|
VersionFactory() |
| Modifier and Type | Method and Description |
|---|---|
static Version |
create(String versionOverride,
org.apache.maven.model.Model model,
org.codehaus.plexus.logging.Logger logger)
create and return the version strategy, which is either a static value in case the version is given as
system property (-Dversion.override=1.0) or it's a generated version in case the version override feature is
enabled (-Dversion.override) but no static value is given.
|
public static Version create(String versionOverride, org.apache.maven.model.Model model, org.codehaus.plexus.logging.Logger logger) throws IOException
versionOverride - a static version or an empty stringmodel - the maven modellogger - a maven loggerIOExceptionCopyright © 2015. All rights reserved.