Running Maven 2.2.1 in Linux gives nullpointerexception
-------------------------------------------------------
Key: MNG-4924
URL: http://jira.codehaus.org/browse/MNG-4924
Project: Maven 2 & 3
Issue Type: Bug
Components: Command Line
Affects Versions: 2.2.1
Environment: Linux, Maven 2.2.1, Hudson, 1.362, JDK 1.6.0_14,
Reporter: Debanjan Chakraborty
Attachments: mvnjira.zip
Our requirement is to be able to invoke application builds using Maven. The
invokation would be done from Hudson (running as a webapp on Glassfish App
Server). We have been able to get this config up and running in Windows XP
using a sample project. However, when we try to do the same thing in Linux, we
get the following stacktrace (both when I try to run MVN install from BASH as
well as from Hudson Console). In fact, we get the stacktrace even when we try
to verify the Maven version from command line (using "mvn --version")
Started by user anonymous
[workspace] $ /home/vn39238/apache-maven-2.2.1/bin/mvn -f
/home/vn39238/PATWITHMAVEN/PATEJB/pom.xml install
java.lang.NullPointerException: key can't be null
at java.lang.System.checkKey(System.java:771)
at java.lang.System.getProperty(System.java:647)
at
org.codehaus.classworlds.Configurator.configure(Configurator.java:240)
at org.codehaus.classworlds.Launcher.configure(Launcher.java:156)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:426)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Finished: FAILURE
The M2_HOME (/home/vn39238/apache-maven-2.2.1) and
JAVA_HOME(/usr/java/jdk1.6.0_14) have been set in the environment. In spite of
that, this error occurs.
I was looking for some more info on troubleshooting and came across this thread:
http://jira.codehaus.org/browse/MNG-4865?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
However, in spite of doing this, the problem still remains. Attached is the
m2.conf and the mvn file.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira