Problem deploying artifact to nexus

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Problem deploying artifact to nexus

Simon Trudeau
I am trying to deploy an artifact to my local nexus (version 1.0 beta 2) repository but I keep gettting the following error which has to do with access denied. Could anyone explain to me what is this about (I don't remember setting any restriction on deployment). Also what is weird is that I have previously managed to deploy jar artifact without any problems.
 
Thanks for your help,
 
Simon
 
F:\workspace\Trunk>mvn deploy:deploy-file -DgroupId=org.apache.mina -DartifactId=build -Dversion=2.0.0-M2-SNAPSHOT -Dpackaging=pom
 -Dfile=F:\Libs\mina\pom.xml -Durl=http://localhost:8081/nexus/content/repositories/Foo-internal-release-repository -
DrepositoryId=Foo-internal-release-repository
[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO]   PARENT application
[INFO]   PARENT lib
[INFO]   BlueVue Group Firmware
[INFO]   BlueVue Group COMM
[INFO]   BlueVue Group Constants
[INFO]   PARENT database
[INFO]   BlueVue Group Persistency
[INFO]   BlueVue Group Commons Persistency
[INFO]   BlueVue Group Messaging
[INFO]   BlueVue Group Modemlib
[INFO]   BlueVue Group Utils
[INFO]   PARENT app
[INFO]   BlueVue Group Server
[INFO] Searching repository for plugin with prefix: 'deploy'.
[INFO] ----------------------------------------------------------------------------
[INFO] Building PARENT application
[INFO]    task-segment: [deploy:deploy-file] (aggregator-style)
[INFO] ----------------------------------------------------------------------------
[INFO] [deploy:deploy-file]
[INFO] Retrieving previous build number from Foo-internal-release-repository
Uploading: http://localhost:8081/nexus/content/repositories/Foo-internal-release-repository/org/apache/mina/build/2.0
.0-M2-SNAPSHOT/build-2.0.0-M2-20080610.154544-14.pom
15K uploaded
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error deploying artifact: Authorization failed: Access denied to: http://localhost:8081/nexus/content/repositories/BlueTree
Wireless-internal-release-repository/org/apache/mina/build/2.0.0-M2-SNAPSHOT/build-2.0.0-M2-20080610.154544-14.pom
 
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1 second
[INFO] Finished at: Tue Jun 10 11:45:44 EDT 2008
[INFO] Final Memory: 3M/6M
[INFO] ------------------------------------------------------------------------
 
 
Reply | Threaded
Open this post in threaded view
|

RE: Problem deploying artifact to nexus

Simon Trudeau
Sorry, my bad, I was deploying a snapshot artifact to a release repository, that is why it failed. I released to a snapshot repository and it worked fine.
 
Simon
 


From: Simon Trudeau [mailto:[hidden email]]
Sent: June-10-08 11:53 AM
To: [hidden email]
Subject: [nexus-user] Problem deploying artifact to nexus

I am trying to deploy an artifact to my local nexus (version 1.0 beta 2) repository but I keep gettting the following error which has to do with access denied. Could anyone explain to me what is this about (I don't remember setting any restriction on deployment). Also what is weird is that I have previously managed to deploy jar artifact without any problems.
 
Thanks for your help,
 
Simon
 
F:\workspace\Trunk>mvn deploy:deploy-file -DgroupId=org.apache.mina -DartifactId=build -Dversion=2.0.0-M2-SNAPSHOT -Dpackaging=pom
 -Dfile=F:\Libs\mina\pom.xml -Durl=http://localhost:8081/nexus/content/repositories/Foo-internal-release-repository -
DrepositoryId=Foo-internal-release-repository
[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO]   PARENT application
[INFO]   PARENT lib
[INFO]   BlueVue Group Firmware
[INFO]   BlueVue Group COMM
[INFO]   BlueVue Group Constants
[INFO]   PARENT database
[INFO]   BlueVue Group Persistency
[INFO]   BlueVue Group Commons Persistency
[INFO]   BlueVue Group Messaging
[INFO]   BlueVue Group Modemlib
[INFO]   BlueVue Group Utils
[INFO]   PARENT app
[INFO]   BlueVue Group Server
[INFO] Searching repository for plugin with prefix: 'deploy'.
[INFO] ----------------------------------------------------------------------------
[INFO] Building PARENT application
[INFO]    task-segment: [deploy:deploy-file] (aggregator-style)
[INFO] ----------------------------------------------------------------------------
[INFO] [deploy:deploy-file]
[INFO] Retrieving previous build number from Foo-internal-release-repository
Uploading: http://localhost:8081/nexus/content/repositories/Foo-internal-release-repository/org/apache/mina/build/2.0
.0-M2-SNAPSHOT/build-2.0.0-M2-20080610.154544-14.pom
15K uploaded
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error deploying artifact: Authorization failed: Access denied to: http://localhost:8081/nexus/content/repositories/BlueTree
Wireless-internal-release-repository/org/apache/mina/build/2.0.0-M2-SNAPSHOT/build-2.0.0-M2-20080610.154544-14.pom
 
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1 second
[INFO] Finished at: Tue Jun 10 11:45:44 EDT 2008
[INFO] Final Memory: 3M/6M
[INFO] ------------------------------------------------------------------------
 
 
Reply | Threaded
Open this post in threaded view
|

RE: Problem deploying artifact to nexus

Tamas Cservenak
Yes,
Nexus responds to requests like these (deploying a snapshot to release repo and vice versa) with HTTP 403 Forbidden currently.

~t~

On Tue, 2008-06-10 at 11:55 -0400, Simon Trudeau wrote:
Sorry, my bad, I was deploying a snapshot artifact to a release repository, that is why it failed. I released to a snapshot repository and it worked fine.
 
Simon
 



From: Simon Trudeau [mailto:[hidden email]]
Sent: June-10-08 11:53 AM
To: [hidden email]
Subject: [nexus-user] Problem deploying artifact to nexus



I am trying to deploy an artifact to my local nexus (version 1.0 beta 2) repository but I keep gettting the following error which has to do with access denied. Could anyone explain to me what is this about (I don't remember setting any restriction on deployment). Also what is weird is that I have previously managed to deploy jar artifact without any problems.
 
Thanks for your help,
 
Simon
 
F:\workspace\Trunk>mvn deploy:deploy-file -DgroupId=org.apache.mina -DartifactId=build -Dversion=2.0.0-M2-SNAPSHOT -Dpackaging=pom
 -Dfile=F:\Libs\mina\pom.xml -Durl=http://localhost:8081/nexus/content/repositories/Foo-internal-release-repository -
DrepositoryId=Foo-internal-release-repository
[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO]   PARENT application
[INFO]   PARENT lib
[INFO]   BlueVue Group Firmware
[INFO]   BlueVue Group COMM
[INFO]   BlueVue Group Constants
[INFO]   PARENT database
[INFO]   BlueVue Group Persistency
[INFO]   BlueVue Group Commons Persistency
[INFO]   BlueVue Group Messaging
[INFO]   BlueVue Group Modemlib
[INFO]   BlueVue Group Utils
[INFO]   PARENT app
[INFO]   BlueVue Group Server
[INFO] Searching repository for plugin with prefix: 'deploy'.
[INFO] ----------------------------------------------------------------------------
[INFO] Building PARENT application
[INFO]    task-segment: [deploy:deploy-file] (aggregator-style)
[INFO] ----------------------------------------------------------------------------
[INFO] [deploy:deploy-file]
[INFO] Retrieving previous build number from Foo-internal-release-repository
Uploading: http://localhost:8081/nexus/content/repositories/Foo-internal-release-repository/org/apache/mina/build/2.0
.0-M2-SNAPSHOT/build-2.0.0-M2-20080610.154544-14.pom
15K uploaded
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error deploying artifact: Authorization failed: Access denied to: http://localhost:8081/nexus/content/repositories/BlueTree
Wireless-internal-release-repository/org/apache/mina/build/2.0.0-M2-SNAPSHOT/build-2.0.0-M2-20080610.154544-14.pom
 
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1 second
[INFO] Finished at: Tue Jun 10 11:45:44 EDT 2008
[INFO] Final Memory: 3M/6M
[INFO] ------------------------------------------------------------------------