Author: brett
Date: Fri Aug 22 05:37:15 2014
New Revision: 1619669

URL: http://svn.apache.org/r1619669
Log:
[NPANDAY-598] re-instate previous fix

This is probably not the ideal way to address this issue - it seems like
the "cache" are actually collectors that should be scoped to the
resolution request, and are storing instead of saving computation. The
resolve cache is safe as it is only used to intersect with the resolved
artifacts, but the dependency cache will grow as highlighted in this
issue. These could be adjusted in future as a listener, or a processor on
the resolved artifacts, or something passed in to the resolution request,
allowing these to become singleton objects again.

Modified:
    
incubator/npanday/trunk/components/dotnet-executable/src/main/java/npanday/resolver/NPandayDependencyResolution.java
    
incubator/npanday/trunk/components/dotnet-executable/src/main/resources/META-INF/plexus/components.xml

Modified: 
incubator/npanday/trunk/components/dotnet-executable/src/main/java/npanday/resolver/NPandayDependencyResolution.java
URL: 
http://svn.apache.org/viewvc/incubator/npanday/trunk/components/dotnet-executable/src/main/java/npanday/resolver/NPandayDependencyResolution.java?rev=1619669&r1=1619668&r2=1619669&view=diff
==============================================================================
--- 
incubator/npanday/trunk/components/dotnet-executable/src/main/java/npanday/resolver/NPandayDependencyResolution.java
 (original)
+++ 
incubator/npanday/trunk/components/dotnet-executable/src/main/java/npanday/resolver/NPandayDependencyResolution.java
 Fri Aug 22 05:37:15 2014
@@ -42,7 +42,7 @@ import java.util.Set;
  * resolver logic for GAC, e.g.
  *
  * @author <a href="mailto:[email protected]>Lars Corneliussen, Faktum 
Software</a>
- * @plexus.component role="npanday.resolver.NPandayDependencyResolution"
+ * @plexus.component role="npanday.resolver.NPandayDependencyResolution" 
instantiation-strategy="per-lookup"
  */
 public class NPandayDependencyResolution
     extends AbstractLogEnabled

Modified: 
incubator/npanday/trunk/components/dotnet-executable/src/main/resources/META-INF/plexus/components.xml
URL: 
http://svn.apache.org/viewvc/incubator/npanday/trunk/components/dotnet-executable/src/main/resources/META-INF/plexus/components.xml?rev=1619669&r1=1619668&r2=1619669&view=diff
==============================================================================
--- 
incubator/npanday/trunk/components/dotnet-executable/src/main/resources/META-INF/plexus/components.xml
 (original)
+++ 
incubator/npanday/trunk/components/dotnet-executable/src/main/resources/META-INF/plexus/components.xml
 Fri Aug 22 05:37:15 2014
@@ -22,6 +22,7 @@
     <component>
       <role>npanday.resolver.NPandayArtifactResolver</role>
       
<implementation>npanday.resolver.DefaultNPandayArtifactResolver</implementation>
+      <instantiation-strategy>per-lookup</instantiation-strategy>
       <requirements>
         <requirement>
           <role>org.apache.maven.artifact.resolver.ArtifactResolver</role>


Reply via email to