Yes, there is methods isSnapshot() and isRelease() if you get the Artifact object. See [1].
/Anders [1] http://maven.apache.org/ref/3.1.1/maven-artifact/apidocs/index.html On Sun, Jan 19, 2014 at 4:43 PM, Graham Leggett <[email protected]> wrote: > Hi all, > > Does there exist a property in maven that will indicate in some fashion > whether the build is a snapshot build or a release build? > > I am aware that "-SNAPSHOT" appears in the version number, but that won't > do. I'm after a variable that has one of two discrete values, one > predictable value if it is a snapshot and another predictable value when it > is a release. Does anything like this exist? > > Regards, > Graham > -- > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
