The first question is: why?
Sorry, for jumping in here, but a common reason is to guarantee
reproducible builds over a fairly long period of time. For example, the
systems I´m engaged with have a typical lifetime of 15-20 years. When
the software is considered stable after initial development, a team of
maintenance developers will implement enhancements and fix bugs. These
guys are typically responsible for several systems and have no time to
hassle around with build tools. So the build process simply should work.
You cannot guarantee this, if your build relies on any form of external
resource that is not under your direct control. Even if I use explicit
version numbering for plugins and dependencies, the corresponding
artifacts simply may disappear on iblio in five years from now. Or,
another scenario, maybe the repository layout changes in Maven 3 or 4
and "legacy" Maven 2 repositories are only supported until 2010. At this
time it is to expensive and risky to upgrade the build process for a
running mission-critical system to a completely new version of Maven.
Nobody will fund this.
So, the only way to prevent this is to use strictly internal
repositories. This means additional effort, of course, and only pays off
if you really have use case for it. But these use cases certainly exist.
CU,
Gunther
Barrie Treloar schrieb:
On 4/13/06, EJ Ciramella <[EMAIL PROTECTED]> wrote:
All I'm attempting to do is prevent builds from going to the maven repository.
I have set up one machine (build.corp.upromise.com) that has everything from my
.m2/repository directory (I copied it there).
The first question is: why?
Maven manages your build dependencies. Use version numbers in your pom
dependencies to lock down what should be used instead of restricting
access to central.
---------------------------------------------------------------------
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]