[EMAIL PROTECTED] wrote:
Brian Ewins <[EMAIL PROTECTED]> wrote on 08/07/2003 09:30:28 PM:
Maximilian A. Ott wrote:
on the bleeding edge, but is there a way to declare the "latest on
that
development branch", or in other words the "1.2.x" where "x" denotes
the
latest revision of the 1.2 series.Yes and no. You can declare a dependency on version "1.2-SNAPSHOT", but you can't build something that looks like that!
Ok, you can sortof, via ugly hacks.
Ugly hack #1: put part of the version number in the artifact name. ie artifactid = foo-1.2, install-snapshot will now produce 'foo-1.2-20030708.094617.jar' (or something like that). Not quite what you wanted.
???
jar:install-snapshot creates a -SNAPSHOT jar in the local repo.
What's wrong with that?
Not a huge amount. I called it an ugly hack because it moves version information out of the version id and into the artifact id...you can't be 100% comfortable with that[1]? I said it wasnt quite what Max wanted because the version number isn't quite what he asked for, as its not of the form 1.2.x . Trivial I know; but thats why I mentioned foo-1.2-20030708.094617.jar, I didn't mean to imply that foo-1.2-SNAPSHOT.jar wouldn't be built as well.
-Baz
[1] And you can't simultaneously say 'I want the latest foo', 'I want the latest foo version 1', 'I want the latest foo version 1.2' with this hack... the others do offer this option.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
