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] ------------------------------------------------------------------------
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.