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

maven always checks missing release artifacts

    XMLWordPrintableJSON

    Details

      Description

      As I tried to explain in MARTIFACT-25, maven always checks for missing release artifacts and even though this does not have noticeable performance impact on regular maven cli builds (unless, -fn, I guess), this does cause significant performance problems in embedding applications like m2e in some scenarios.

      To demonstrate the problem, I've added new (and currently disable) testResolveMissingArtifact to P001EmbedderTest performance regression test suite. On my development machine, running doTestResolveMissingArtifact(delay=false) takes ~2ms on average. Running doTestResolveMissingArtifact(delay=true), on the other hand, takes ~202ms, which means that remote repository is accessed twice during each doTestResolveMissingArtifact(delay=true) call.

      https://svn.sonatype.org/m2eclipse/sandbox/trunk/maven-performance-tests/src/test/java/org/apache/maven/performance/tests/p001/P001EmbedderTest.java

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: