On 05/10/2018 02:39 AM, Mukul Gandhi wrote:
Hi Dave,
On Thu, May 10, 2018 at 11:23 AM, Dave Brosius
<dbros...@mebigfatguy.com <mailto:dbros...@mebigfatguy.com>> wrote:
Yes, but if i want to publish an artifact to maven, and my
artifact depends on xerces, are you expecting all the users of my
artifact to do the same? And if someone else creates an artifact
based on my artifact, etc, etc.?
As far as I know, Maven provides following ways to fetch build
dependencies:
1) Get dependencies from a global Maven repository. This requires a
connection to internet. Some environments prohibit an internet
connection. Also on slow internet connections, getting tons of
artifacts from the global Maven repository during the build may be
difficult.
2) Get dependencies from a Maven repository on an Intranet server.
3) Get dependencies from a Maven repository on the local host.
You & people in favor of your point seems to say that 1) above is the
best/only method. But clearly, 2) is also another method. Of course,
3) above is also yet another method for fetching Maven dependencies.
Your company can also run its own maven repo server (such as Nexus),
that can hold both your company's internal maven artifacts and proxy to
external maven repos like maven central. Then when you need a 3rd party
artifact that is not in maven central, you can simply load it once to
this repo and none of your developers need to do anything.