The following comment has been added to this issue:

     Author: Jason van Zyl
    Created: Thu, 15 Apr 2004 10:41 AM
       Body:
Gilles, I exposed MavenProject handling from the Maven facade so you can safely build 
projects with that now.
---------------------------------------------------------------------
View this comment:
  http://jira.codehaus.org/secure/ViewIssue.jspa?key=MNG-6&page=comments#action_18648

---------------------------------------------------------------------
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:41 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