ProjectBuilder.build(File,ProjectBuildingRequest) returns null project if
dependency version info is missing
------------------------------------------------------------------------------------------------------------
Key: MNG-5073
URL: http://jira.codehaus.org/browse/MNG-5073
Project: Maven 2 & 3
Issue Type: Improvement
Components: Embedding
Affects Versions: 3.0.2
Reporter: Igor Fedorenko
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.
-
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