You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Herve Boutemy (JIRA)" <ji...@codehaus.org> on 2007/11/21 22:30:57 UTC

[jira] Closed: (MANTTASKS-98) NPE if user settings file doesn't exist

     [ http://jira.codehaus.org/browse/MANTTASKS-98?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Herve Boutemy closed MANTTASKS-98.
----------------------------------

         Assignee: Herve Boutemy
       Resolution: Fixed
    Fix Version/s: 2.0.8

fixed, thank you

> 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
>            Assignee: Herve Boutemy
>             Fix For: 2.0.8
>
>         Attachments: MANTTASKS-98.patch
>
>
> 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