Hi,

For solving your issue you have the following solutions:
- Configure an Indexer job as service running as a cron:
http://wiki.jfrog.org/confluence/display/RTF/Exposing+Nexus+Indexes this job
will run as admin and so will not have permission issue to override indexes.
- You can give anonymous delete permissions to only the include pattern
".index/" on all remote repos, and so limit the override permission to a
minimum.

Hope this helps,
Fred.

On Thu, Oct 21, 2010 at 6:25 PM, mjremijan <[email protected]> wrote:

>
> When Maven tries to resolve dependencies, I'm often running into a
> permission
> problem on the server. Maven tries to hit this Artifactory URL and
> failes...
>
>
> http://testservices01:8080/artifactory/remote-repos/.index/nexus-maven-repository-index.gz
>
> If I plug this into a browser, I get this permission error:
>
> java.io.IOException: Not enough permissions to overwrite artifact
> 'repo1-cache:.index/nexus-maven-repository-index.gz' (user 'anonymous'
> needs
> DELETE permission).
>
> I typically need to login to Artifactory as admin, hit the URL again to
> rebuild the index, then Maven doesn't complain for a while.
>
> I do not think Maven is trying to deploy to the repo. Maven is trying to
> get
> the index file for it's local cache and what I think is happening is
> Artifactory wants to try and rebuild the index file before returning it,
> however, because the user is anonymous, Artifactory cannot delete and
> rebuild the index. I'd prefer not to give anonymous delete priviledges.
>
> How can I fix this?
> --
> View this message in context:
> http://forums.jfrog.org/Why-would-I-have-a-permission-problem-getting-an-index-tp5659345p5659345.html
> Sent from the Artifactory - Users mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> Nokia and AT&T present the 2010 Calling All Innovators-North America
> contest
> Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
> $10 million total in prizes - $4M cash, 500 devices, nearly $6M in
> marketing
> Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store
> http://p.sf.net/sfu/nokia-dev2dev
> _______________________________________________
> Artifactory-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/artifactory-users
>



-- 
Chief Architect
JFrog Ltd
http://www.jfrog.org/
http://twitter.com/freddy33
------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
Artifactory-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/artifactory-users

Reply via email to