You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by snesbitt <st...@theplatform.com> on 2007/12/28 02:50:28 UTC

[Q] How to access the timestamp-buldnumber assigned to a deployed snapshot?

All:

For purposes of a non-maven deployment tool I need to be able to capture
the timestamp and build id maven assigns to a SNAPSHOT artifact for
purposes of deploying the artifact in the repository.

For example, I have an artifact foo-1.0.0.jar. When I ask maven to
deploy it into the repository it changes the name to something of the
form: foo-1.0.0-<timestamp>-<?>.jar. How do I ask maven -presumably in a
plugin - to give me the value of <timestamp>-<?>?

Or even better, is there any way that I can influence <timestamp>-<?> ?

This is with maven2

Thx,

-steve

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: [Q] How to access the timestamp-buldnumber assigned to a deployed snapshot?

Posted by Wendy Smoak <ws...@gmail.com>.
On Dec 27, 2007 6:50 PM, snesbitt <st...@theplatform.com> wrote:

> For example, I have an artifact foo-1.0.0.jar. When I ask maven to
> deploy it into the repository it changes the name to something of the
> form: foo-1.0.0-<timestamp>-<?>.jar. How do I ask maven -presumably in a
> plugin - to give me the value of <timestamp>-<?>?
>
> Or even better, is there any way that I can influence <timestamp>-<?> ?

There's not enough info here for me to tell, but setting
<uniqueVersion>false</uniqueVersion> might help....

Do you really need the timestamp, or would it be easier if the file
was always named the same thing?  (IOW, what problem are you trying to
solve by doing this?)

-- 
Wendy

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org