Hi,
You're right, maven first tries to communicate with no permissions
(anonymous user on Artifactory side) and will only send credentials if
requested by Artifactory.
So, if Artifactory is configured to allow anonymous access it will allow
anonymous access to it according to the security settings. In your case, the
anonymous
has permissions to read, but not to deploy (we tread caching artifacts as
deploy) and this is why it fails. The simple solution (and the default that
Artifactory is shipped with)
if you wish to allow anonymous access, is to setup a permission target to
"Any Remote" and granting the anonymous user with deploy+annotate+read
permissions.
Yossi
On Thu, Feb 25, 2010 at 7:10 PM, CrocodileShoes <[email protected]>wrote:
>
> Hello,
>
> I'm not convinced this is an Artifactory problem or a Maven problem so I'll
> try in both mailing lists :)
>
> My problem is when I run Maven goals that require access to Artifactory it
> seems to use the anonymous user. Anonymous access is enabled in
> Artifactory
> for reading only so if the server needs to grab an artefact and cache it,
> an
> error is thrown due to deploy permissions.
>
> The Artifactory server in question is set up in my Maven settings.xml
> files.
> Furthermore, if I disable anonymous access in the Artifactory settings,
> Maven will happily begin to login with the user details specified in the
> settings.xml.
>
> The only thing I can thing of is that anonymous is somehow checked first
> instead of the user.
>
> Thanks in advance for any suggestions/solutions.
> --
> View this message in context:
> http://old.nabble.com/Maven-using-anonymous-user-even-though-artifactory-server-setup-in-the-settings.xml-tp27714481p27714481.html
> Sent from the Artifactory-Users mailing list archive at Nabble.com.
>
>
>
> ------------------------------------------------------------------------------
> Download Intel® Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> Artifactory-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/artifactory-users
>
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Artifactory-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/artifactory-users