vijeyanidhi opened a new issue, #11574:
URL: https://github.com/apache/maven/issues/11574

   ### Affected version
   
   3.9.12
   
   ### Bug description
   
   I am getting the following exception when trying to build a maven project.
   
   ```
   [main] ERROR org.apache.maven.cli.MavenCli - Cannot invoke 
"java.util.List.forEach(java.util.function.Consumer)" because 
"this.prerequisitesCheckers" is null
   java.lang.NullPointerException: Cannot invoke 
"java.util.List.forEach(java.util.function.Consumer)" because 
"this.prerequisitesCheckers" is null
       at 
org.apache.maven.plugin.internal.DefaultMavenPluginManager.checkPrerequisites 
(DefaultMavenPluginManager.java:290)
       at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
(MojoExecutor.java:187)
       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:919)
       at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:285)
       at org.apache.maven.cli.MavenCli.main (MavenCli.java:207)
       at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
       at jdk.internal.reflect.NativeMethodAccessorImpl.invoke 
(NativeMethodAccessorImpl.java:77)
       at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke 
(DelegatingMethodAccessorImpl.java:43)
       at java.lang.reflect.Method.invoke (Method.java:575)
       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)
   ```
   
   but this occurs only when running it in the jenkins pipeline with 
Artifactory integration.
   when building the same project in local (with maven 3.9.12) there is no 
issues, the build is successful.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to