Install Plugin: Upload failed[401]: Unauthorized

Sorin Sbarnea (Citrix)
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 15, 2012
Why I cannot install plugins on a running jira? Username/password are valid.

Executing: /Users/sorin/dev/jira/jira-libs.hg/sdk/apache-maven/bin/mvn com.atlassian.maven.plugins:maven-amps-dispatcher-plugin:3.9.3:install  -Dhttp.port='8080' -Dcontext.path='/' -Dusername='admin' -Dpassword='admin' -Datlassian.plugin.key='com.atlassian.jira.plugin.workflow.updatestatus'
[INFO] Scanning for projects...
[INFO] Reactor build order: 
[INFO]   crosslink
[INFO]   Unnamed - com.citrix:jiraPlugins:pom:1.1
[INFO] ------------------------------------------------------------------------
[INFO] Building crosslink
[INFO]    task-segment: [com.atlassian.maven.plugins:maven-amps-dispatcher-plugin:3.9.3:install]
[INFO] ------------------------------------------------------------------------
[INFO] [amps-dispatcher:install]
[INFO] [jira:install {execution: virtual-execution}]
[INFO] [atlassian-pdk:install]
[INFO] Install Plugin: Couldn't get the token from upm. Headers. Falling back to legacy upload.
log4j:WARN No appenders could be found for logger (org.apache.commons.httpclient.HttpClient).
log4j:WARN Please initialize the log4j system properly.
[INFO] Install Plugin: Uploading 'crosslink-1.0-SNAPSHOT.jar' to server: http://localhost:8080/
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Unable to execute mojo

Install Plugin: Upload failed[401]: Unauthorized
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 13 seconds
[INFO] Finished at: Mon Jul 16 13:10:39 BST 2012
[INFO] Final Memory: 43M/123M
[INFO] ------------------------------------------------------------------------

3 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Answer accepted
Sorin Sbarnea (Citrix)
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 26, 2012

It's seems that if you have any $ signs in your password this will not work. Escaping them does not work.

1 vote
Carsten A.
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 25, 2012
  1. Are you using atlassian-plugin-sdk?
  2. Did you try to install plugin (or updated plugin) via command prompt or via GUI upload at JIRA administration page?
    (If first: a workaround for now would be using "atlas-mvn package" (on a second command prompt) and uploading the built jar via JRIA GUI.)
0 votes
Chong Ming Wang August 3, 2012

did u set plugins-version="2" in atlassian-plugin.xml

Roger Weinheimer
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 20, 2012

I'm seeing identical error on confluence plugin install. Could you please elaborate on this answer? There currently is no element by that name in my atlassian-plugin.xml.

Sorin Sbarnea (Citrix)
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 25, 2012

This has nothing to do with plugins-version=2.

TAGS
AUG Leaders

Atlassian Community Events