Uploaded image for project: 'Archiva (Retired)'
  1. Archiva (Retired)
  2. MRM-1833

Nullpointer when browsing artifacts which have dependencies with scope "import"

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.1
    • 2.1.0
    • None
    • None

    Description

      When browsing artifacts with dependencies with scope "import" the following NPE occurs.

      Caused by: java.lang.NullPointerException
      at org.apache.archiva.metadata.repository.storage.maven2.RepositoryModelResolver.resolveModel(RepositoryModelResolver.java:129) ~[maven2-repository-2.0.1.jar:?]
      at org.apache.maven.model.building.DefaultModelBuilder.readParentExternally(DefaultModelBuilder.java:813) ~[maven-model-builder-3.0.5.jar:3.0.5]

      This seems to be caused by the RepositoryModelResolver.newCopy() method, which uses the "small" constructor instead of the full constructor.

      Attachments

        Activity

          People

            olamy Olivier Lamy
            svogt Sascha Vogt
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: