This is a brand new setup with both Maven and Nexus OSS in my local PC,
everything new and there is nothing in Nexus yet. All settings are default
and I haven't changed anything in Nexus. The user "deployment" should have
full access to all repositories.

I was running "mvn deploy" and expect the result show in Nexus OSS. Is it
trying to downloading as the message show or uploading?


[INFO]
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ my-app ---
[INFO] Building jar: C:\my-app\target\my-app-1.0-SNAPSHOT.jar
[INFO]
[INFO] --- maven-install-plugin:2.4:install (default-install) @ my-app ---
[INFO] Installing C:\my-app\target\my-app-1.0-SNAPSHOT.jar to C:\Documents
and
Settings\jhu06\.m2\repository\com\mycompany\app\my-app\1.0-SNAPSHOT\my-app-1.0-SNAPSHOT.jar
[INFO] Installing C:\my-app\pom.xml to C:\Documents and
Settings\jhu06\.m2\repository\com\mycompany\app\my-app\1.0-SNAPSHOT\my-app-1.0-SNAPSHOT.pom
[INFO]
[INFO] --- maven-deploy-plugin:2.7:deploy (default-deploy) @ my-app ---
*Downloading:
http://localhost:8081/nexus/content/repositories/snapshots/com/mycompany/app/my-app/1.0-SNAPSHOT/maven-metadata.xml
*[WARNING] Could not transfer metadata
com.mycompany.app:my-app:1.0-SNAPSHOT/maven-metadata.xml from/to snapshots
(http:/
/localhost:8081/nexus/content/repositories/snapshots): Access denied to:
http://localhost:8081/nexus/content/repositorie
s/snapshots/com/mycompany/app/my-app/1.0-SNAPSHOT/maven-metadata.xml ,
ReasonPhrase:Forbidden.
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 2.312s
[INFO] Finished at: Mon Jan 20 15:54:15 EST 2014
[INFO] Final Memory: 11M/29M
[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on
project my-ap
p: Failed to retrieve remote metadata
com.mycompany.app:my-app:1.0-SNAPSHOT/maven-metadata.xml: Could not transfer
metad
ata com.mycompany.app:my-app:1.0-SNAPSHOT/maven-metadata.xml from/to
snapshots (http://localhost:8081/nexus/content/repo
sitories/snapshots): Access denied to:
http://localhost:8081/nexus/content/repositories/snapshots/com/mycompany/app/my-a
pp/1.0-SNAPSHOT/maven-metadata.xml , ReasonPhrase:Forbidden. -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please
read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
C:\my-app>


*I have this in the default settings.xml:*

    </server>
    -->
        
        <server>
            <id>snapshots</id>
            <username>deployment</username>
            <password>deployment123</password>
        </server>
        <server>
            <id>releases</id>
            <username>deployment</username>
            <password>deployment123</password>
        </server>
        <server>
            <id>thirdparty</id>
            <username>deployment</username>
            <password>deployment123</password>
        </server>
    </servers>
</settings>

*and this in the project pom.xml:*

  <distributionManagement>
    <repository>
        <id>releases</id>
                <name>Internal Releases</name>
        <url>http://localhost:8081/nexus/content/repositories/releases</url>
    </repository>
 
    <snapshotRepository>
        <id>snapshots</id>
        <name>Internal Snapshots</name>
       
<url>http://localhost:8081/nexus/content/repositories/snapshots</url>
    </snapshotRepository>
</distributionManagement>




--
View this message in context: 
http://maven.40175.n5.nabble.com/Deploy-to-Nexus-OSS-failed-with-error-ReasonPhrase-Forbidden-tp5781962.html
Sent from the Maven - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to