I used Atlassian Plugin SDK 8 and run ‘atlas-integration-test’ command on two projects where amps=8.0.0 and amps=6.3.21 but builds has failed with the following stacktrace:
[ERROR] Plugin com.atlassian.maven.plugins:maven-amps-plugin:8.0.0 or one of its dependencies could not be resolved: Could not find artifact com.atlassian.maven.plugins:maven-amps-plugin:jar:8.0.0 in atlassian-public (https://maven.atlassian.com/repository/public) → [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] PluginResolutionException - Apache Maven - Apache Software Foundation
I believe this is a bug with the deb install of the Atlassian SDK. If you open /usr/bin/atlas-integration-test and go to line 189 it will look like this:
Thanks, @pbogacz, this has been raised a few days ago, kindly check ATLASSDK-161. You should try @pgesek’s suggestion since the AMPS maven plugin names have changed in version 8 (see ATLASSDK-147).
Thanks for the tip, that worked well. However, now when I run atlas-integration-test the SDK doesn’t find any tests to run anymore. Have you seen this before?
Comment the line @rem set MVN_COMMAND=com.atlassian.maven.plugins:maven-amps-plugin:%AMPS_PLUGIN_VERSION_STRIPPED%:integration-test
Add the new line changing the values maven-amps-plugin to amps-maven-plugin
set MVN_COMMAND=com.atlassian.maven.plugins:amps-maven-plugin:%AMPS_PLUGIN_VERSION_STRIPPED%:integration-test