We're working in Agile, and QA needs to know what version number their working 
against. Since they're QAing about every day, I'd like to have them know 
exactly which version they're hitting without forcing the developers to change 
the version number manually every day. We'd only be using this number below the 
major.minor in our version, and only for SNAPSHOTs, so I don't see the harm in 
using it for that. A release build will be an agreed-up, solid number. 

When I tried it, the output from "install" looked like the following: 

     [INFO] Installing PROJECT/artifact-0.1.334-SNAPSHOT.swc to
~.m2/repository/PROJECT/artifact/0.1.${buildNumber}-SNAPSHOT/artifact-0.1.${buildNumber}-SNAPSHOT.swc

Obviously, ${buildNumber} shoulda been "334"



----- Original Message ----
From: Wendy Smoak <[email protected]>
To: Maven Users List <[email protected]>
Sent: Fri, April 2, 2010 2:17:08 PM
Subject: Re: Using variables in POM's version field

On Fri, Apr 2, 2010 at 5:14 PM, Scott Susslin <[email protected]> wrote:

> Why?
>
> Also, is it possible?

What happened when you tried it?

What are you trying to accomplish?  Snapshots are already timestamped
with a build number...

-- 
Wendy

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]


      


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to