Atlassian-SDK Build Error, Unresolveable build extension: Plugin com.atlassian.maven.plugins:jira-maven-plugin:8.0.1 or one of its dependencies could not be resolved

Issue with building Maven project using Atlassian SDK

I am encountering an error while trying to build my Maven project, the project is a Jira plugin packaged as a JAR file using Atlassian SDK.
The error message is as follows when I try to run any atlas command on the project:

[ERROR] Some problems were encountered while processing the POMs:
[ERROR] Unresolvable build extension: Plugin com.atlassian.maven.plugins:jira-maven-plugin:8.0.1 or one of its dependencies could not be resolved.
Failed to collect dependencies at com.atlassian.maven.plugins:jira-maven-plugin:jar:8.0.1 → com.atlassian.maven.archetypes:jira-plugin-archetype:jar:8.0.1 → org.twdata.maven:mojo-executor:jar:2.3.0 → org.apache.maven:maven-core:jar:3.5.4 → org.apache.maven:maven-model:jar:3.5.4 → org.apache.commons:commons-lang3:jar:3.8.1 @
@
[ERROR] The build could not read 1 project → [Help 1]
[ERROR]
[ERROR] The project ca.on.gov.edu.jira:attachment-encryption-plugin:1.0-SNAPSHOT (C:\UserApps\MedeirEth\sfa\Prototype\pom.xml) has 1 error
[ERROR] Unresolvable build extension: Plugin com.atlassian.maven.plugins:jira-maven-plugin:8.0.1 or one of its dependencies could not be resolved: Failed to collect dependencies at com.atlassian.maven.plugins:jira-maven-plugin:jar:8.0.1 → com.atlassian.maven.archetypes:jira-plugin-archetype:jar:8.0.1 → org.twdata.maven:mojo-executor:jar:2.3.0 → org.apache.maven:maven-core:jar:3.5.4 → org.apache.maven:maven-model:jar:3.5.4 → org.apache.commons:commons-lang3:jar:3.8.1: Failed to read artifact descriptor for org.apache.commons:commons-lang3:jar:3.8.1: Could not transfer artifact org.apache.commons:commons-lang3:pom:3.8.1 from/to atlassian-public (Index of maven-external/): Received fatal alert: protocol_version → [Help 2]
[ERROR]

Here are the details of my environment:

  • Operating System: Windows 10
  • Java Version: javac 1.8.0_371
  • Maven Version: Apache Maven: 3.5.4
  • Atlassian SDK Version: ATLAS Version: 8.2.7

Steps I’ve already taken to troubleshoot the issue:

1.Checked my internet connection to ensure that I can access external repositories.
2. Checked my proxy settings and attempted to build with and without proxy as well as company VPN, but the issue persists
3. Verified that my project’s POM file is correctly configured.

I don’t believe it’s a networking issue, as just trying to run ‘atlas-clean’ comes up with the same error.

Any support would be greatly appreciated, Thanks.

This part is interesting, it’s something I’d expect from Java 7 or earlier.
I wonder if you have other (older) Java versions on your system, what’s your JAVA_HOME variable?

1 Like

That was the issue, I had changed my JAVA_HOME for system variables but not for my user variables. Once I changed that the build was successful. Thanks so much for the help!

1 Like