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

This widget could not be displayed.
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
Community showcase
Published Aug 22, 2018 in Marketplace Apps

How a Marketplace app tech team is achieving gender diversity

Hello! My name is Genevieve Blanch, and I'm the Marketing Manager at RefinedWiki, creators of apps to give teams the tools to customize Atlassian platforms. Currently, 44% of the tech team at Re...

513 views 3 18
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