On Thu, Sep 4, 2008 at 6:06 AM,  <[EMAIL PROTECTED]> wrote:

> From intuitive feeling I would say: there is a reference to a defined 
> repository in settings.xml, so Maven will find the missing attributes, but no 
> it does not, it does like this:
...
> not very helpful this error message. It seems that I have to force my 
> developers to define the URL two times in their settings.xml: First in the 
> repositories/repository tag, second in the distributionManagement/repository 
> tag. Not very convenient.

I agree there should be a better error message and not a NPE.

However the urls for repositories and distribution management are
usually different-- file:// urls may be the only time they could be
shared.  For example, you may pull from a repository as http:// , but
publish to it with dav:http:// or scp:// .

Further, distributionManagement is often set once, up in an
organization level pom, and repositories can go in a shared
conf/settings.xml, neither of which developers need to maintain.

HTH,
-- 
Wendy

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to