At 11:06 PM -0700 12/1/05, Wendy Smoak wrote:
On 12/1/05, Joe Germuska <[EMAIL PROTECTED]> wrote:
I think we could publish nightly (or intermittent) snapshots to the
Apache repository (http://cvs.apache.org/repository/) I think that
the hope is to avoid people treating it like an ibiblio mirror (i.e.
we would only publish snapshots and things of lower interest) but
that it exists to fill that niche.
You can do this by configuring a set of properties like these:
# Apache repository
maven.repo.apache=scp://people.apache.org
maven.repo.apache.directory=/www/cvs.apache.org/repository
maven.repo.apache.group=apcvs
maven.repo.apache.username=germuska
maven.repo.apache.privatekey=/Users/germuska/.ssh/id_rsa
(which your username and path to private key adjusted as appropriate)
and then using maven jar:deploy -Dmaven.repo.list=apache
Brett answered within minutes. :) I didn't know this... if you have
"SNAPSHOT" in the version number, when you do as Joe suggests and
deploy the jar, that's when Maven inserts the date and timestamp.
I'm not sure if that's how it works; at least, the "preferred way" to
make a snapshot build is to use alternate goals, not just depend on
the version number.
That is, using "maven jar:deploy-snapshot", you can build and deploy
a SNAPSHOT library independent of the <version> in the POM.
Similarly with jar:install-snapshot, dist:deploy-snapshot, etc.
In short, it builds a JAR with a timestamped version (like
struts-core-20051106.203359.jar) and then makes a copy of it with the
name struts-core-SNAPSHOT.jar So for my team, if we are depending on
a nightly build, we use the timestamped version, not the SNAPSHOT, so
that there is no inconsistency. But in the actual POMs, we should
use SNAPSHOT so as to not need to repeatedly tweak the POM files and
deploy specific new snapshots (and to make automated nightly builds
truly depend upon the newest of each.)
If people don't like the repeated maven-checking-for-newer-snapshot,
they can use "maven -o" or they can use the "maven.jar.override"
property (along with some others) to specify specific non-SNAPSHOT
versions.
Joe
--
Joe Germuska
[EMAIL PROTECTED]
http://blog.germuska.com
"Narrow minds are weapons made for mass destruction" -The Ex
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]