[ http://jira.codehaus.org/browse/MNG-4865?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
eric zhu closed MNG-4865. ------------------------- Resolution: Fixed Fix Version/s: 2.2.1 I have found the root cause. I added one line in m2.conf set MAVEN_OPTS=-Xmx1024m -XX:MaxPermSize=256m > mvn fails because of null property > ---------------------------------- > > Key: MNG-4865 > URL: http://jira.codehaus.org/browse/MNG-4865 > Project: Maven 2 & 3 > Issue Type: Bug > Components: Command Line > Affects Versions: 2.2.1 > Environment: windows vista32 > Reporter: eric zhu > Fix For: 2.2.1 > > > I downloaded maven and ran 'maven -version' under > 'C:\workplace\apache-maven-2.2.1\bin' > Got the error: > 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) > I ran the same on another XP PC with the same source, everything worked fine -- 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