Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Failed to execute goal com.atlassian.maven.plugins:jira-maven-plugin:9.0.2:validate-banned-dependenc

Xianhua Liu
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 27, 2025

[ERROR] Failed to execute goal com.atlassian.maven.plugins:jira-maven-plugin:9.0.2:validate-banned-dependencies (default-validate-banned-dependencies) on project testPlug: Execution default-validate-banned-dependencies of goal com.atlassian.maven.plugins:jira-maven-plugin:9.0.2:validate-banned-dependencies failed.: NullPointerException -> [Help 1]

org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.atlassian.maven.plugins:jira-maven-plugin:9.0.2:validate-banned-dependencies (default-validate-banned-dependencies) on project testPlug: Execution default-validate-banned-dependencies of goal com.atlassian.maven.plugins:jira-maven-plugin:9.0.2:validate-banned-dependencies failed.

    at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:333)

    at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:316)

    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:212)

    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:174)

    at org.apache.maven.lifecycle.internal.MojoExecutor.access$000 (MojoExecutor.java:75)

    at org.apache.maven.lifecycle.internal.MojoExecutor$1.run (MojoExecutor.java:162)

    at org.apache.maven.plugin.DefaultMojosExecutionStrategy.execute (DefaultMojosExecutionStrategy.java:39)

    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:159)

    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:105)

    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:73)

    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:53)

    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:118)

    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:261)

    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:173)

    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:101)

    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:903)

    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:280)

    at org.apache.maven.cli.MavenCli.main (MavenCli.java:203)

    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)

    at java.lang.reflect.Method.invoke (Method.java:498)

    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:255)

    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:201)

    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:361)

    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:314)

Caused by: org.apache.maven.plugin.PluginExecutionException: Execution default-validate-banned-dependencies of goal com.atlassian.maven.plugins:jira-maven-plugin:9.0.2:validate-banned-dependencies failed.

    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:133)

    at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:328)

    at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:316)

    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:212)

    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:174)

    at org.apache.maven.lifecycle.internal.MojoExecutor.access$000 (MojoExecutor.java:75)

    at org.apache.maven.lifecycle.internal.MojoExecutor$1.run (MojoExecutor.java:162)

    at org.apache.maven.plugin.DefaultMojosExecutionStrategy.execute (DefaultMojosExecutionStrategy.java:39)

    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:159)

    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:105)

    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:73)

    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:53)

    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:118)

    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:261)

    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:173)

    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:101)

    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:903)

    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:280)

    at org.apache.maven.cli.MavenCli.main (MavenCli.java:203)

    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)

    at java.lang.reflect.Method.invoke (Method.java:498)

    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:255)

    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:201)

    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:361)

    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:314)

Caused by: java.lang.NullPointerException

    at com.atlassian.maven.plugins.amps.PlatformDependenciesProviderImpl.determineArtifact (PlatformDependenciesProviderImpl.java:85)

    at com.atlassian.maven.plugins.amps.PlatformDependenciesProviderImpl.readSingleArtifact (PlatformDependenciesProviderImpl.java:60)

    at com.atlassian.maven.plugins.amps.PlatformDependenciesProviderImpl.getDependencies (PlatformDependenciesProviderImpl.java:52)

    at com.atlassian.maven.plugins.amps.BannedDependenciesImpl.resolveDependencies (BannedDependenciesImpl.java:97)

    at com.atlassian.maven.plugins.amps.BannedDependenciesImpl.getBannedElements (BannedDependenciesImpl.java:45)

    at com.atlassian.maven.plugins.amps.MavenGoals.validateBannedDependencies (MavenGoals.java:339)

    at com.atlassian.maven.plugins.amps.ValidateBannedDependenciesExecutor.execute (ValidateBannedDependenciesExecutor.java:42)

    at com.atlassian.maven.plugins.amps.ValidateBannedDependenciesMojo.execute (ValidateBannedDependenciesMojo.java:44)

    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:126)

    at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:328)

    at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:316)

    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:212)

    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:174)

    at org.apache.maven.lifecycle.internal.MojoExecutor.access$000 (MojoExecutor.java:75)

    at org.apache.maven.lifecycle.internal.MojoExecutor$1.run (MojoExecutor.java:162)

    at org.apache.maven.plugin.DefaultMojosExecutionStrategy.execute (DefaultMojosExecutionStrategy.java:39)

    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:159)

    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:105)

    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:73)

    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:53)

    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:118)

    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:261)

    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:173)

    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:101)

    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:903)

    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:280)

    at org.apache.maven.cli.MavenCli.main (MavenCli.java:203)

    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)

    at java.lang.reflect.Method.invoke (Method.java:498)

    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:255)

    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:201)

    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:361)

    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:314)

1 answer

0 votes
Tuncay Senturk _Snapbytes_
Community Champion
October 1, 2025

Hi @Xianhua Liu 

You're getting NullPointerException while validating dependencies (checking the banned dependency list). I suppose it may be because you did not provide the product or product version in your pom.xml. Check your pom.xml and make sure that you have the jira-maven-plugin configured similar to the below (version and the product may change due to your app)

 

<properties>
<amps.version>9.0.2</amps.version>
<jira.version>10.3.4</jira.version>
</properties>

<build>
<plugins>
<plugin>
<groupId>com.atlassian.maven.plugins</groupId>
<artifactId>jira-maven-plugin</artifactId>
<version>${amps.version}</version>
<extensions>true</extensions>
<configuration>
<product>jira</product>
<productVersion>${jira.version}</productVersion>
</configuration>
</plugin>
</plugins>
</build>

 

Suggest an answer

Log in or Sign up to answer