The following comment has been added to this issue:

     Author: Jason van Zyl
    Created: Thu, 15 Apr 2004 10:34 AM
       Body:
You shouldn't be creating MavenProjects by directly, it should be taken care of by the 
Maven facade which uses the MavenProjectBuilder under the covers to make sure the 
MavenProject is intact before getting it back.
---------------------------------------------------------------------
View this comment:
  http://jira.codehaus.org/secure/ViewIssue.jspa?key=MNG-6&page=comments#action_18647

---------------------------------------------------------------------
View the issue:
  http://jira.codehaus.org/secure/ViewIssue.jspa?key=MNG-6

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: MNG-6
    Summary: npe in createArtifacts
       Type: Bug

     Status: Unassigned
   Priority: Major

 Original Estimate: Unknown
 Time Spent: Unknown
  Remaining: Unknown

    Project: m2

   Assignee: 
   Reporter: gilles dodinet

    Created: Tue, 13 Apr 2004 3:56 PM
    Updated: Thu, 15 Apr 2004 10:34 AM

Description:
DefaultMavenArtifactFactory.createArtifacts(MavenProject) throws NPE if properties not 
set (see stacktrace below). a workaround that works for me is to call 
mavenProject.setProperties(new HashMap()) before creating artifacts. perhaps i just 
build the project in a wrong way : 

Model model = xpp3Reader.read(reader);
project.setModel(model);


java.lang.NullPointerException 
        at org.apache.maven.project.MavenProject.getProperty(MavenProject.java:714)
        at 
org.apache.maven.artifact.factory.DefaultMavenArtifactFactory.createArtifacts(DefaultMavenArtifactFactory.java:37)
        at 
org.mevenide.ui.eclipse.sync.model.MavenProjectNode.initializeArtifacts(MavenProjectNode.java:63)


---------------------------------------------------------------------
JIRA INFORMATION:
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

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to