-Maven version: 2.2.1
-Nexus Version: 1.8.0.1
-Using self signed cert - SSL
-Can get successfully log in from the browser

Getting an Authorization failed: Access denied from the command line from
maven. 

Looked through the other posts and see similar issues, but can't see to get
this working based on the guidance. 

 Unable to get resource 'org.apache:apache:pom:4' from repository central
(https://central): Authorization failed: Access denied to:
https://HOST/content/groups/public/org/apache/apache/4/apache-4.pom

settings.xml:

<settings>
−
<mirrors>
−
<mirror>
<!--This sends everything else to public -->
<id>nexus</id>
<mirrorOf>*</mirrorOf>
<url>https://HOST/content/groups/public</url>
</mirror>
</mirrors>
−
<profiles>
−
<profile>
<id>nexus</id>
−
<!--
Enable snapshots for the built in central repo to direct 
-->
<!--all requests to nexus via the mirror -->
−
<repositories>
−
<repository>
<id>central</id>
<url>https://central</url>
−
<releases>
<enabled>true</enabled>
</releases>
−
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
−
<pluginRepositories>
−
<pluginRepository>
<id>central</id>
<url>https://central</url>
−
<releases>
<enabled>true</enabled>
</releases>
−
<snapshots>
<enabled>true</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>
</profile>
</profiles>
−
<activeProfiles>
<!--make the profile active all the time -->
<activeProfile>nexus</activeProfile>
</activeProfiles>
<!-- add ability to do remote deployments -->
−
<servers>
−
<server>
<id>releases</id>
<username>admin</username>
<password>PASSWORD</password>
</server>
−
<server>
<id>central</id>
<username>admin</username>
<password>PASSWORD</password>
</server>
−
<server>
<id>snapshots</id>
<username>admin</username>
<password>PASSWORD</password>
</server>
−
<server>
<id>thirdparty</id>
<username>admin</username>
<password>PASSWORD</password>
</server>
</servers>
</settings>


distribution management from
pom.xml

        
        <distributionManagement>
                <repository>
                        <id>releases</id>
                        <name>Internal Releases</name>
                        <url>https://HOST/content/repositories/releases/</url>
                </repository>
                <snapshotRepository>
                        <id>snapshots</id>
                        <name>Internal Snapshots</name>
                        <url>https://HOST/content/repositories/snapshots</url>
                </snapshotRepository>
        </distributionManagement>

I have tried the deployment user as is shipped with nexus with the default
roles / privs, this doesn't work either.  Not sure if it matters but I had
to import a self signed cert in your local truststore per the instructions
here:

http://ahoehma.wordpress.com/2009/11/17/maven-https-repository-with-self-signed-ssl-certificate/

After I did that I was able to successfully get to the repo with the anon
user.  Without anonymous access, I still can't log get in.  

Any thoughts on where to look?



-- 
View this message in context: 
http://maven.40175.n5.nabble.com/Authorization-failed-Access-denied-maven-build-tp3293496p3293496.html
Sent from the Maven - Users mailing list archive at Nabble.com.

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

Reply via email to