If I have a Maven repo that requires authentication, how do I specify
the credentials for that repo when using mvn archetype:generate?

You can specify the URL of the repo using the archetypeRepository
parameter - but I can see no way of tying that up that up with the
credentials specified in settings.xml that is used to supply
credentials. The <server> tag in settings.xml doesn't take a URL, and
archetype:generate doesn't take a server id.

As a result, I can't generate a new project from an archetype in a
password protected repo, as I just get 401 unauthorised.

Thanks for any advice,

Greg

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to