Atlas-run for HelloWorld plugin is trying to download amps-dispatcher-maven-plugin version [m[K8.0.2 url encoded as %1B%5Bm%1B%5BK8.0.2

I’m trying the HelloWorld plugin at https://developer.atlassian.com/server/framework/atlassian-sdk/create-a-helloworld-plugin-project/

The atlas-run command fails because maven cannot download the amps-dispatcher-maven-plugin JAR file.

I see it sitting in both the atlassian-public repository and the atlassian-plugin-sdk repository that got installed on my drive when I installed the plugin SDK.

I think the problem is that it is trying to load version [m[K8.0.2 instead of version 8.0.2. I can see a directory “[m[K8.0.2” getting created in my global repository .m2/repository/com/atlassian/maven/plugins/amps-dispatcher-maven-plugin.

I don’t know what is setting the weird/corrupted version for amps-dispatcher-maven-plugin. It is not directly in pom.xml

A square bracket that is URL encoded is %5B. Here is what the failed operation looks like:

Downloading from atlassian-public: https://maven.atlassian.com/repository/public/com/atlassian/maven/plugins/amps-dispatcher-maven-plugin/%1B%5Bm%1B%5BK8.0.2/amps-dispatcher-maven-plugin-%1B%5Bm%1B%5BK8.0.2.jar
Downloading from atlassian-plugin-sdk: file:///usr/local/Cellar/atlassian-plugin-sdk/8.0.16/libexec/repository/com/atlassian/maven/plugins/amps-dispatcher-maven-plugin/%1B%5Bm%1B%5BK8.0.2/amps-dispatcher-maven-plugin-%1B%5Bm%1B%5BK8.0.2.jar
Downloading from central: https://repo.maven.apache.org/maven2/com/atlassian/maven/plugins/amps-dispatcher-maven-plugin/%1B%5Bm%1B%5BK8.0.2/amps-dispatcher-maven-plugin-%1B%5Bm%1B%5BK8.0.2.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.164 s
[INFO] Finished at: 2019-11-03T13:37:37-07:00
[INFO] ------------------------------------------------------------------------
[ERROR] Plugin com.atlassian.maven.plugins:amps-dispatcher-maven-plugin:8.0.2 or one of its dependencies could not be resolved: Could not find artifact com.atlassian.maven.plugins:amps-dispatcher-maven-plugin:jar:8.0.2 in atlassian-public (https://maven.atlassian.com/repository/public) -> [Help 1]

Any hints appreciated. Thanks!

version info:

$atlas-version

ATLAS Version:    8.0.16
ATLAS Home:       /usr/local/Cellar/atlassian-plugin-sdk/8.0.16/libexec
ATLAS Scripts:    /usr/local/Cellar/atlassian-plugin-sdk/8.0.16/libexec/bin
ATLAS Maven Home: /usr/local/Cellar/atlassian-plugin-sdk/8.0.16/libexec/apache-maven-3.5.4
AMPS Version:     8.0.2
--------
[INFO] Project POM found
Executing: /usr/local/Cellar/atlassian-plugin-sdk/8.0.16/libexec/apache-maven-3.5.4/bin/mvn --version -gs /usr/local/Cellar/atlassian-plugin-sdk/8.0.16/libexec/apache-maven-3.5.4/conf/settings.xml
Apache Maven 3.5.4 (1edded0938998edf8bf061f1ceb3cfdeccf443fe; 2018-06-17T12:33:14-06:00)
Maven home: /usr/local/Cellar/atlassian-plugin-sdk/8.0.16/libexec/apache-maven-3.5.4
Java version: 1.8.0_221, vendor: Oracle Corporation, runtime: /Library/Java/JavaVirtualMachines/jdk1.8.0_221.jdk/Contents/Home/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "mac os x", version: "10.13.6", arch: "x86_64", family: "mac"

I worked around this by forcing the AMPS version with -u for my atlas-run command.

-u [value], --maven-plugin-version [value]
Maven AMPS plugin version to use (default is 8.0.2)

>atlas-run -u 8.0.2

I decided to try forcing the version w/ the -u switch even though I have the amps.version property specified as 8.0.2 in pom.xml. I decided to do this because I’ve run into other problems on other projects where atlas-debug failed and said I needed to use another AMPS version and did not respond to me changing the version in pom.xml. I forced it with -u.