atlas-package throws error

HI All,

I am trying to write a simple plugin using the Listener tutorial from Atlassian site. I successfully created the project and imported to eclipse. When I try to compile, it's compiling. But when I try to run atlas-package, it's throwing the error. The repositories (both my organization's internal and atlassian's external) repositories don't have the maven-amps-plugin-4.2-SNAPSHOT.jar. Then why is it trying to download. Somebody please help me. I have attached the error below. Thanks in advance.

Regards,

Hari

D:\DEVELOPMENT\ListenerPlugin\new-listener-plugin>atlas-package
Executing: "D:\Applns\atlassian-plugin-sdk-4.0\apache-maven\bin\mvn.bat" package
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building new-listener-plugin
[INFO] task-segment: [package]
[INFO] ------------------------------------------------------------------------
Downloading: http://repo.myorg.com/artifactory/repo/com/atlassian/maven/plugins/maven-amps-plugin/4.2-SNAPSHOT/maven-amps-plugin-4.2-SNAPSHOT.pom
[INFO] Unable to find resource 'com.atlassian.maven.plugins:maven-amps-plugin:pom:4.2-SNAPSHOT' in repository atlassian-public (https://m2proxy.atlassian.com/repository/public)
Downloading: http://repo.myorg.com/artifactory/repo/com/atlassian/maven/plugins/maven-amps-plugin/4.2-SNAPSHOT/maven-amps-plugin-4.2-SNAPSHOT.jar
[INFO] Unable to find resource 'com.atlassian.maven.plugins:maven-amps-plugin:maven-plugin:4.2-SNAPSHOT' in repository atlassian-public (https://m2proxy.atlassian.com/repository/public)

[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

Try downloading the file manually from the project website.

Then, install it using the command:
mvn install:install-file -DgroupId=com.atlassian.maven.plugins -DartifactId=maven-amps-plugin -Dversion=4.2-SNAPSHOT -Dpackaging=maven-plugin -Dfile=/path/to/file

Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=com.atlassian.maven.plugins -DartifactId=maven-amps-plugin -Dversion=4.2-SNAPSHOT -Dpackaging=maven-plugin -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]


com.atlassian.maven.plugins:maven-amps-plugin:maven-plugin:4.2-SNAPSHOT

from the specified remote repositories:
repo (http://repo.myorg.com/artifactory/repo)


com.atlassian.maven.plugins:maven-amps-plugin:maven-plugin:4.2-SNAPSHOT

from the specified remote repositories:
repo (http://repo.myorg.com/artifactory/repo)


[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5 seconds
[INFO] Finished at: Tue Feb 05 13:07:09 IST 2013
[INFO] Final Memory: 6M/15M
[INFO] ------------------------------------------------------------------------

1 answer

0 vote
Yilin Mo Atlassian Team Feb 04, 2013

It should go to find the "comm.atlassian.maven.plugins:maven-amps-dispatcher-plugin:<sdk version>" instead, which version of SDK are you using? maybe you can try to install the latest SDK 4.1.4 for a check?

Hi All,

I still have no clue on what exactly was the problem. But one of our technical architect fixed the issue for me. Thre are no changes in my side. He fixed something in the remote maven repository which we use in our organization.

@ MOMO [Atlassian]... Thanks for the suggestion. But I did not try it out. May be if the issue occur again, I will try that out.

Regards,

Hari

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Jul 10, 2018 in Marketplace Apps

If you’re an Atlassian app developer, you’ll want to know about Atlas Camp!

This September 6-7, hundreds of Atlassian App developers will flock to Barcelona Spain to build skills, discover product roadmaps, meet face-to-face with the Atlassian team, and learn how to extend t...

165 views 0 4
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you