NPE if user settings file doesn't exist ---------------------------------------
Key: MANTTASKS-98 URL: http://jira.codehaus.org/browse/MANTTASKS-98 Project: Maven 2.x Ant Tasks Issue Type: Bug Components: POM Integration Affects Versions: 2.0.8 Environment: 2.0.08-SNAPSHOT from 18-Nov-2007 Reporter: Pete Muir When running <artifact:install file="/path/to/file.jar"> <pom file="/path/to/pom.xml" /> <remoteRepository refId="repo" /> </artifact:install> you get, if ~/.m2/settings.xml is missing, java.lang.NullPointerException at org.apache.maven.settings.SettingsUtils.merge(SettingsUtils.java:110) at org.apache.maven.artifact.ant.AbstractArtifactTask.initSettings(Abstr actArtifactTask.java:264) at org.apache.maven.artifact.ant.AbstractArtifactTask.execute(AbstractAr tifactTask.java:643) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288) at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) -- 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