Try mvn help:effective-settings to see your settings as maven sees them. Are you sure your server id is the same as your repository/mirror id?
With regards, Nick Stolwijk ~Senior Java Developer~ iPROFS Wagenweg 208 2012 NM Haarlem T +31 23 547 6369 F +31 23 547 6370 I www.iprofs.nl On Thu, Mar 24, 2011 at 10:11 PM, Wayne Fay <[email protected]> wrote: >> When I run "mvn deploy" it seems to be ignoring the <server> credentials in >> the >> ~/.m2/settings.xml file. I have verified this in the Nexus logs. Nexus >> receives >> no credentials, thus tries to upload as user 'anonymous' and fails, >> returning 401. >> >> Any ideas why maven is apparently not defaulting as it should? Note, this >> is Maven 2.2.1. > > Try with Maven 3.0.3 and use -X which should tell you more useful > information about the configuration files that are being seen/used by > Maven during its execution. > > Wayne > > --------------------------------------------------------------------- > 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]
