Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

The command "atlas-create-jira-plugin" creates error "Failed to execute goal com.atlassian.maven"

zaharovvv_suek_ru
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.
May 31, 2018

I am trying to develop Jira plugin using the following documentation:

https://developer.atlassian.com/server/framework/atlassian-sdk/create-a-helloworld-plugin-project/

However, after I've written the following command: 

atlas-create-jira-plugin

Then the above command was executing approximately 1 hour and then I saw the following error:

[ERROR] Failed to execute goal com.atlassian.maven.plugins:maven-jira-plugin:6.3
.15:create (default-cli) on project standalone-pom: Execution default-cli of goa
l com.atlassian.maven.plugins:maven-jira-plugin:6.3.15:create failed: Plugin com
.atlassian.maven.plugins:maven-jira-plugin:6.3.15 or one of its dependencies cou
ld not be resolved: Failed to collect dependencies at com.atlassian.maven.plugin
s:maven-jira-plugin:jar:6.3.15 -> com.atlassian.maven.archetypes:jira-plugin-arc
hetype:jar:6.3.15 -> org.twdata.maven:mojo-executor:jar:1.5.2 -> org.apache.mave
n:maven-artifact:jar:3.2.1 -> org.codehaus.plexus:plexus-utils:jar:3.0.17: Faile
d to read artifact descriptor for org.codehaus.plexus:plexus-utils:jar:3.0.17: C
ould not transfer artifact org.codehaus.plexus:plexus-utils:pom:3.0.17 from/to a
tlassian-public (https://maven.atlassian.com/repository/public): Connect to mave
n.atlassian.com:443 [maven.atlassian.com/104.192.142.93, maven.atlassian.com/104
.192.142.92, maven.atlassian.com/104.192.142.94] failed: Connection timed out: c
onnect -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[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 rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResoluti
onException

Guys, what can I do to solve this error and start writing a plugin?

4 answers

1 accepted

1 vote
Answer accepted
Dmitry Shinelev August 2, 2018

i can resolve this problem, it was simple enough, i should think better first))

I change address for maven environmental variable in system variables (i use windows 7 x64) to maven which had been installed with atlassian sdk. After that everything starts to work.

0 votes
Dmitry Shinelev August 2, 2018

Sorry, but i have similiar problem with test Hello, World plugin project.

So here are my errors:

[ERROR] Failed to execute goal com.atlassian.maven.plugins:maven-jira-plugin:6.3.15:jar (default-jar) on project myPlugin: Unable to execute mojo: Error assembling JAR: Problem creating jar: E:\_Projects\temp\myPlugin\target\myPlugin-1.0.0-SNAPSHOT: : 1.0.0-SNAPSHOT.jar (Синтаксическая ошибка в имени файла, имени папки или метке тома) (and the archive is probably corrupt but I could not delete it) -> [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

I can open this link from borowser https://maven.atlassian.com/repository/public

How can i resolve this problem?

zaharovvv_suek_ru
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 2, 2018

I haven't found solution for this problem and we started using ScriptRunner. It is really cool tool and support of the ScriptRunner is really great! :)

Dmitry Shinelev August 2, 2018

oh, you are lucky :) But, i haven't got such opportunity.

0 votes
Timothy
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.
May 31, 2018

maven.atlassian.com has been extremely slow today.. Else, you have a proxy or a connectivity issue.

zaharovvv_suek_ru
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.
June 1, 2018

I'ver tried today, but there is still the same error.

0 votes
Randy
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.
May 31, 2018

Check your proxy settings or network connection to https://maven.atlassian.com/repository/public

 

The error says it's having issues connecting to maven.atlassian.com

zaharovvv_suek_ru
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.
June 1, 2018

It is really interesting, however I can see this link

Randy
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.
June 1, 2018

you need to verify that you can also route to the link via the shell you're running the command from.  e.g. from the same place you are trying to run atlas-create-jira-plugin, try pinging maven.atlassian.com

Suggest an answer

Log in or Sign up to answer