Uploaded image for project: 'Maven Plugin Testing'
  1. Maven Plugin Testing
  2. MPLUGINTESTING-77

Mojo returned from AbstractMojoTestCase.lookupMojo always returns null for project.getRemoteProjectRepositories()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Invalid
    • 3.3.0
    • None
    • plugin-testing-harness
    • None

    Description

      The injected mojo's project (leveraging expression "${project}") returns

      [       id: central
            url: https://repo.maven.apache.org/maven2
         layout: default
      snapshots: [enabled => true, update => always]
       releases: [enabled => true, update => always]
      ]
      
      

      for its getRemoteArtifactRepositories() but returns null for getRemoteProjectRepositories().

      For consistency reasons either both should return null or both should return the central repository.

      Attachments

        Activity

          People

            Unassigned Unassigned
            kwin Konrad Windszus
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: