java.lang.IllegalArgumentException: Null value not allowed as an environment variable: M2_HOME

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Jenkins JIRA by Pawel Gronkiewicz, 1 year ago
Null value not allowed as an environment variable: M2_HOME
via Jenkins JIRA by Jesse Glick, 1 year ago
via Jenkins JIRA by Jesse Glick, 1 year ago
via Jenkins JIRA by Pawel Gronkiewicz, 1 year ago
Null value not allowed as an environment variable: M2_HOME
via Jenkins JIRA by Sankara Subramanian Hariharakumar, 1 year ago
Null value not allowed as an environment variable: M2_HOME
via Jenkins JIRA by Sankara Subramanian Hariharakumar, 1 year ago
Null value not allowed as an environment variable: M2_HOME
java.lang.IllegalArgumentException: Null value not allowed as an environment variable: M2_HOME
at hudson.EnvVars.put(EnvVars.java:172)
at hudson.maven.MavenModuleSetBuild.getEnvironment(MavenModuleSetBuild.java:172)
at hudson.scm.SubversionSCM.compareRemoteRevisionWith(SubversionSCM.java:1230)
at hudson.scm.SCM._compareRemoteRevisionWith(SCM.java:356)
at hudson.scm.SCM.poll(SCM.java:373)
at hudson.model.AbstractProject._poll(AbstractProject.java:1521)
at hudson.model.AbstractProject.poll(AbstractProject.java:1446)
at hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:439)
at hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:468)
at hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:118)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago

Know the solutions? Share your knowledge to help other developers to debug faster.