Dne 19.2.2011 20:29, Ondřej Světlík napsal(a):
Hello,

I went through all manuals and my configuration should be all right. But
it doesn't work.

I have a repository that uses HTTP authentication. I have created
~/.m2/settings-security.xml:
<?xml version="1.0" encoding="UTF-8"?>
<settingsSecurity>
<master>{...}</master>
</settingsSecurity>

With my master password.

I have a section in my ~/.m2/settings.xml:
<server>
<id>MyRepo</id>
<username>someUser</username>
<password>{...}</password>
</server>

With my own encrypted password.

In parent project pom.xml, there is:
<repositories>
<repository>
<id>MyRepo</id>
<url>https://www.example.com/maven/</url>
</repository>
</repositories>

I can access the repository using my browser with the same
username/password.

Maven doesn't even try. It tries only request without authentication.

When I try to build a project that depends on anything that is available
in my repository, I get Access denied:

[WARNING] Could not transfer metadata
com.example.data:data:1.0-SNAPSHOT/maven-metadata.xml from/to MyRepo
(https://www.example.com/maven/): Access denied to:
https://www.example.com/maven/com/example/data/data/1.0-SNAPSHOT/maven-metadata.xml


Did I miss something? Please help.

Regards,

Ondrej

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org


Another interesting thing is that I get Access denied when I use

mvn -U

When I use only mvn, I get

[WARNING] Could not transfer metadata com.example.data:data:1.0-SNAPSHOT/maven-metadata.xml from/to MyRepo (https://www.example.com/maven/): Error transferring file: Authentication failure

I'm really lost.

Regards,

Ondrej

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to