You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by ji...@codehaus.org on 2004/04/13 21:58:39 UTC

[jira] Created: (MNG-6) npe in createArtifacts

Message:

  A new issue has been created in JIRA.

---------------------------------------------------------------------
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: Tue, 13 Apr 2004 3:56 PM

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: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org