[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.

git-svn-id: https://svn.apache.org/repos/asf/incubator/npanday/trunk@1619669 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/components/dotnet-executable/src/main/java/npanday/resolver/NPandayDependencyResolution.java b/components/dotnet-executable/src/main/java/npanday/resolver/NPandayDependencyResolution.java
index 603e88a..fde80cd 100644
--- a/components/dotnet-executable/src/main/java/npanday/resolver/NPandayDependencyResolution.java
+++ b/components/dotnet-executable/src/main/java/npanday/resolver/NPandayDependencyResolution.java
@@ -42,7 +42,7 @@
  * resolver logic for GAC, e.g.
  *
  * @author <a href="mailto:me@lcorneliussen.de>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
diff --git a/components/dotnet-executable/src/main/resources/META-INF/plexus/components.xml b/components/dotnet-executable/src/main/resources/META-INF/plexus/components.xml
index 618902c..0d8e273 100644
--- a/components/dotnet-executable/src/main/resources/META-INF/plexus/components.xml
+++ b/components/dotnet-executable/src/main/resources/META-INF/plexus/components.xml
@@ -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>