You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org> on 2011/09/27 16:58:17 UTC

[jira] Closed: (MNG-5073) ProjectBuilder.build(File,ProjectBuildingRequest) returns null project if dependency version info is missing

     [ https://jira.codehaus.org/browse/MNG-5073?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benjamin Bentmann closed MNG-5073.
----------------------------------

       Resolution: Fixed
    Fix Version/s: 3.0.4
         Assignee: Benjamin Bentmann

Fixed in [r1176414|http://svn.apache.org/viewvc?view=revision&revision=1176414]. The {{ProjectBuildingException}} can now be queried for the partial {{ProjectBuildingResult}} and its {{MavenProject}}.

> ProjectBuilder.build(File,ProjectBuildingRequest) returns null project if dependency version info is missing
> ------------------------------------------------------------------------------------------------------------
>
>                 Key: MNG-5073
>                 URL: https://jira.codehaus.org/browse/MNG-5073
>             Project: Maven 2 & 3
>          Issue Type: Improvement
>          Components: Embedding
>    Affects Versions: 3.0.2
>            Reporter: Igor Fedorenko
>            Assignee: Benjamin Bentmann
>             Fix For: 3.0.4
>
>
> ProjectBuilder.build(File,ProjectBuildingRequest) returns null MavenProject instance for the following pom.xml even when using ModelBuildingRequest.VALIDATION_LEVEL_MINIMAL. Expected/desired behaviour is to return MavenProject instance populated with all good/resolved dependencies and information about all bad/missing dependencies in MavenExecutionResult.getExceptions and/or MavenExecutionResult.getDependencyResolutionResult.
> {noformat} 
> <project>
>   <modelVersion>4.0.0</modelVersion>
>   <groupId>xxx</groupId>
>   <artifactId>m01</artifactId>
>   <version>0.0.1-SNAPSHOT</version>
>   <dependencies>
>     <dependency>
>       <groupId>junit</groupId>
>       <artifactId>junit</artifactId>
>     </dependency>
>   </dependencies>
> </project>
> {noformat} 
> Original m2e bugreport https://bugs.eclipse.org/bugs/show_bug.cgi?id=343568

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira