[ http://jira.codehaus.org/browse/MNG-4343?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=190125#action_190125 ]
Igor Fedorenko commented on MNG-4343: ------------------------------------- Forgot to mention, the solution should improve performance over maven jvm restarts, i.e. m2e should not need to access all remote repositories for missing artifacts after restart. I believe local repository needs to cache per-repository artifact availability status to solve this properly. Implementation will likely need to use update policy to missing artifacts periodically. Meaning of "-U" cli parameter will likely need to include missing release artifacts, too. > maven always checks missing release artifacts > --------------------------------------------- > > Key: MNG-4343 > URL: http://jira.codehaus.org/browse/MNG-4343 > Project: Maven 2 > Issue Type: Bug > Components: Artifacts and Repositories > Affects Versions: 3.0 > Reporter: Igor Fedorenko > > 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 -- 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