Hi Fred,

No it works. Thanks for the tip and sorry for the dumb question :(

Regards,
  Ricardo



freddy33 wrote:
> 
> Hi,
> 
> You just need to repeat yourself :) The DRY principle does not really
> apply
> in Maven...
> Every repository declaration with ID needs its corresponding server
> declaration. So adding:
> <server>
>      <id>central</id>
>      <username>user1</username>
>      <password><here the password encrypted></password>
> </server>
> <server>
>      <id>snapshots</id>
>      <username>user1</username>
>      <password><here the password encrypted></password>
> </server>
> 
> to your list of server should solve your issue.
> HTH,
> Fred.
> 
> On Wed, Apr 14, 2010 at 8:45 AM, Ricardo Borillo <[email protected]>
> wrote:
> 
>>
>> Hi all,
>>
>> I'm new to artifactory and i think this is a trivial problem, but i can't
>> find the solution ...
>>
>> I follow this steps to configure security in artifactory 2.2.2:
>>
>> *. I create an admin user (user1) in artifactory.
>> *. I give all permissions to user1.
>> *. In "security general configuration" i uncheck "allow anonymous access"
>> (password encryption policy is in "supported" state).
>> *. In my maven 2.2.1 settings.xml file, i add this section:
>>
>>  <servers>
>>    <server>
>>      <id>PTY118b26</id>
>>      <username>user1</username>
>>      <password><here the password encrypted></password>
>>    </server>
>>  </servers>
>>
>>  <mirrors>
>>    <mirror>
>>      <mirrorOf>*</mirrorOf>
>>      <name>repo</name>
>>      <url>http://<myhost>/artifactory/repo</url>
>>      <id>artifactory</id>
>>    </mirror>
>>  </mirrors>
>>
>> *. My project pom.xml have this information relative to artifactory:
>>
>>  <repositories>
>>    <repository>
>>      <snapshots>
>>        <enabled>false</enabled>
>>      </snapshots>
>>      <id>central</id>
>>      <name>repo</name>
>>      <url>http://<myhost>/artifactory/repo</url>
>>    </repository>
>>    <repository>
>>      <snapshots />
>>      <id>snapshots</id>
>>      <name>repo</name>
>>      <url>http://<myhost>/artifactory/repo</url>
>>    </repository>
>>  </repositories>
>>  <pluginRepositories>
>>    <pluginRepository>
>>      <snapshots>
>>        <enabled>false</enabled>
>>      </snapshots>
>>      <id>central</id>
>>      <name>plugins-releases</name>
>>      <url>http://<myhost>/artifactory/plugins-releases</url>
>>    </pluginRepository>
>>    <pluginRepository>
>>      <snapshots />
>>      <id>snapshots</id>
>>      <name>plugins-snapshots</name>
>>      <url>http://<myhost>/artifactory/plugins-snapshots</url>
>>    </pluginRepository>
>>  </pluginRepositories>
>>
>>  <distributionManagement>
>>    <repository>
>>      <id>PTY118b26</id>
>>      <name>PTY118b26-releases</name>
>>      <url>http://<myhost>/artifactory/libs-releases-local</url>
>>    </repository>
>>  </distributionManagement>
>>
>> And when i execute "mvn clean package" i get this error:
>>
>> [WARNING] repository metadata for: 'snapshot
>> com.db4o:db4o-full-java5:7.13-SNAPSHOT' could not be retrieved from
>> repository: snapshots due to an error: Authorization failed: Access
>> denied
>> to:
>> http://
>> <myhost>/artifactory/repo/com/db4o/db4o-full-java5/7.13-SNAPSHOT/maven-metadata.xml
>> [INFO] Repository 'snapshots' will be blacklisted
>>
>> When i try to access this URL through the browser, the browser ask me for
>> a
>> basic auth and it works perfect using artifcatory user1 and password ...
>>
>> What i'm missing??
>>
>> Thanks a lot,
>>  Ricardo
>> --
>> View this message in context:
>> http://old.nabble.com/Authorization-failed---Access-denied-tp28238554p28238554.html
>> Sent from the Artifactory-Users mailing list archive at Nabble.com.
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Download Intel&#174; 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
>>
> 
> 
> 
> -- 
> Co. Founder and Chief Architect
> JFrog Ltd
> http://www.jfrog.org/
> http://twitter.com/freddy33
> 
> ------------------------------------------------------------------------------
> Download Intel&#174; 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
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Authorization-failed---Access-denied-tp28238554p28246856.html
Sent from the Artifactory-Users mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Download Intel&#174; 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

Reply via email to