Hi,
I’m building a plugin use atlassian-plugin-sdk 9.1.1. The plugin should be running in JSM10. And I’ve upgraded to the following package:
com.atlassian.plugins.rest
atlassian-rest-v2-api
8.2.0
provided
But I encountered a new problem, the error message says below:
— jira:9.1.1:validate-banned-dependencies (default-validate-banned-dependencies) @ jira-workflow-migrator —
[INFO] validate banned dependencies
[INFO] Dependencies excluded from banning:
[INFO] Platform version range: ‘[0,)’
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:24 min
[INFO] Finished at: 2025-11-05T11:42:50+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.atlassian.maven.plugins:jira-maven-plugin:9.1.1:validate-banned-dependencies (default-validate-banned-dependencies) on project jira-workflow-migrator: Execution default-validate-banned-dependencies of goal com.atlassian.maven.plugins:jira-maven-plugin:9.1.1:validate-banned-dependencies failed: Cannot invoke “org.eclipse.aether.version.Version.toString()” because the return value of “org.eclipse.aether.resolution.VersionRangeResult.getHighestVersion()” is null → [Help 1]
Could anyone kindly help on this issue?
Regards,
Yaoqi Huang
Advise to use the pom.xml setup example from the jira-plugin-starter repository, especially the dependencyManagement configuration. This way, you won’t need to explicitly specify dependencies on Jira libraries.
<dependencyManagement>
<dependencies>
<dependency>
<groupId>com.atlassian.jira</groupId>
<artifactId>jira-project</artifactId>
<version>${jira.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
1 Like
Hi @mashintsev,
Not all packages are allowed so we have to fix the dependencies and versions. Could you kindly help me on how to fix the build error?
Regards,
Yaoqi Huang
Run package with debug to view all messages about exception.
atlas-package --debug
How does your jira-maven-plugin configuration look in pom.xml? Is there a snapshot version for dependencies?
Hi @mashintsev,
No, there is no snapshot version, the pom looks like below:
<plugin>
<groupId>com.atlassian.maven.plugins</groupId>
<artifactId>jira-maven-plugin</artifactId>
<version>${amps.version}</version>
<extensions>true</extensions>
<configuration>
<productVersion>${jira.version}</productVersion>
<productDataVersion>${jira.version}</productDataVersion>
<enableQuickReload>true</enableQuickReload>
<instructions>
<Atlassian-Plugin-Key>${atlassian.plugin.key}</Atlassian-Plugin-Key>
<Export-Package>com.company.team.api,</Export-Package>
<Import-Package>org.springframework.osgi.*;resolution:="optional", org.eclipse.gemini.blueprint.*;resolution:="optional", !com.awnaba.projectconfigurator.*, *</Import-Package>
<DynamicImport-Package>com.awnaba.projectconfigurator.*</DynamicImport-Package>
<Spring-Context>*</Spring-Context>
</instructions>
<applications>
<application>
<applicationKey>jira-servicedesk</applicationKey>
<version>${jira.servicedesk.application.version}</version>
</application>
</applications>
</configuration>
</plugin>
Regards,
Yaoqi Huang
If you share the pom.xml, I can give you a recommendation on what to fix. It’s not clear from the current settings what the problem is.