-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Mar 15, 2005, at 09:20, Stéphane Nicoll wrote:
Milos,
I always considered this a legitimate approach, rather than workaround.
the snapshot goals do convert the SNAPSHOT string into a timestamp whcih
you rarely want.
Well, if I have my project with current version set to 1.5.0, I would expect the jar:install-snapshot to generate a ABC-1.5.0-SNAPSHOT.jar, not ABC-SNAPSHOT.jar (that's why I call this a workaround).
I agree with Milos that this can be standard operating procedure instead of a workaround. The key is that you use jar:install, not jar:install-snapshot.
Once upon a time I added a request to JIRA asking for some way to set an "in development" flag in the POM. If the flag were set, plugins would run (for instance) "install-snapshot" instead when "install" was requested. We use a number of "shorthand" goals in maven.xml (for building with CruiseControl, for instance) and I didn't want to worry about changing all instances of "install" to "install-snapshot" when we started working on a new version of a project.
Then someone told me about how adding "-SNAPSHOT" to the version string has the same effect. I haven't used a "*-snapshot" goal since. The issue in JIRA has also been closed. I say good riddance. :-)
- -- Craig S. Cottingham [EMAIL PROTECTED] OpenPGP key available from: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x7977F79C -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (Darwin)
iD8DBQFCNwLoEJLQ3Hl395wRAhoTAJwLi96NC1lCsO+VD4kvc9GO9QKAcACg2s1a Pu2adnwtRKhIMzaS+TXpj44= =y00M -----END PGP SIGNATURE-----
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]