Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-5073

ProjectBuilder.build(File,ProjectBuildingRequest) returns null project if dependency version info is missing

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0.2
    • 3.0.4
    • Embedding
    • None

    Description

      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.

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

      Original m2e bugreport https://bugs.eclipse.org/bugs/show_bug.cgi?id=343568

      Attachments

        Activity

          People

            bentmann Benjamin Bentmann
            igorf Igor Fedorenko
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: