atlas-create-jira-plugin - Not able to download repositories

DeepakBhatia January 23, 2012

Hi I have updated the (settings.xml.txt) with proxy settngs, but I am not able to download the repositories.

C:\test>atlas-create-jira-plugin
A new plugin structure is required for JIRA 5 plugins due to significant changes in the APIs.
Create a plugin for?
1) Shiny new JIRA 5
2) Regular 'ol JIRA 4 (or earlier)
#?2
Executing: "C:\atlassian-plugin-sdk-3.7.2\apache-maven\bin\mvn.bat" com.atlassian.maven.plugins:maven-jira-plugin:3.7.2:create_v4
[INFO] Scanning for projects...
Downloading: https://m2proxy.atlassian.com/repository/public/com/atlassian/maven/plugins/maven-jira-plugin/3.7.2/maven-jira-plugin-3.7.2.jar
[WARNING]
Unable to get resource 'com.atlassian.maven.plugins:maven-jira-plugin:maven-plugin:3.7.2' from repository atlassian-public (https://m2p
roxy.atlassian.com/repository/public):
Error transferring file: Connection refused: connect
Downloading: http://repo1.maven.org/maven2/com/atlassian/maven/plugins/maven-jira-plugin/3.7.2/maven-jira-plugin-3.7.2.jar
[INFO]
Unable to find resource 'com.atlassian.maven.plugins:maven-jira-plugin:maven-plugin:3.7.2' in repository central (http://repo1.maven.org/m<img< a=""> alt="" src="../../upfiles/File.JPG">aven2)
[INFO] Cannot find mojo descriptor for: 'com.atlassian.maven.plugins:maven-jira-plugin:3.7.2:create_v4' - Treating as non-aggregator.
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Default Project
[INFO] task-segment: [com.atlassian.maven.plugins:maven-jira-plugin:3.7.2:create_v4]
[INFO] ------------------------------------------------------------------------
Downloa...
https://m2proxy.atlassian.com/repository/public/com/atlassian/maven/plugins/maven-jira-plugin/3.7.2/maven-jira-plugin-3.7.2.jar
[WARNING]
Unable to get resource 'com.atlassian.maven.plugins:maven-jira-plugin:maven-plugin:3.7.2' from repository atlassian-public (https://m2p
roxy.atlassian.com/repository/public):
Error transferring file: Connection refused: connect
Downloading: http://repo1.maven.org/maven2/com/atlassian/maven/plugins/maven-jira-plugin/3.7.2/maven-jira-plugin-3.7.2.jar
[INFO]
Unable to find resource 'com.atlassian.maven.plugins:maven-jira-plugin:maven-plugin:3.7.2' in repository central (http://repo1.maven.org/m
aven2)
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] A required plugin was not found: Plugin could not be found - check that the goal name is correct: Unable to download the artifact from any
repository

2 answers

1 accepted

1 vote
Answer accepted
David at David Simpson Apps
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
January 23, 2012

Have you had difficulty in the past?

Can you access this file in a browser?
https://m2proxy.atlassian.com/repository/public/com/atlassian/maven/plugins/maven-jira-plugin/3.7.2/maven-jira-plugin-3.7.2.jar

Check your proxy is enabled in settings.xml

See the example referenced here:

https://answers.atlassian.com/questions/20079/plugin-sdk-does-not-use-http-proxy

DeepakBhatia January 23, 2012

Hi I was putting protocol as http but atlas-create command is using https.....Thanks it worked.

1 vote
Ramiro Pointis
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.
February 27, 2012

After searching a lot I found a workaround:

You have to add

-Dhttps.proxyHost=my_proxy_host and -Dhttps.proxyPort=my_proxy_port

to

\<path to sdk>\apache-maven\bin\mvn.bat as described in

http://jira.codehaus.org/browse/MRM-1413

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events