[NPANDAY-599] line up keys properly

Caching wasn't taking because wrong ID was being used (and PDB using the wrong artifact)

git-svn-id: https://svn.apache.org/repos/asf/incubator/npanday/trunk@1619665 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/components/dotnet-executable/src/main/java/npanday/resolver/NPandayResolutionCache.java b/components/dotnet-executable/src/main/java/npanday/resolver/NPandayResolutionCache.java
index 4a67984..323c5aa 100644
--- a/components/dotnet-executable/src/main/java/npanday/resolver/NPandayResolutionCache.java
+++ b/components/dotnet-executable/src/main/java/npanday/resolver/NPandayResolutionCache.java
@@ -44,7 +44,7 @@
     }

 

     public Boolean applyTo(Artifact artifact){

-        String key = artifact.getArtifactId();

+        String key = artifact.getId();

         if (cache.containsKey(key)){

            File resolvedFile = cache.get(key);

            if (resolvedFile != null){

diff --git a/components/dotnet-executable/src/main/java/npanday/resolver/resolvers/PdbAssemblyResolver.java b/components/dotnet-executable/src/main/java/npanday/resolver/resolvers/PdbAssemblyResolver.java
index 12c8439..0702b81 100644
--- a/components/dotnet-executable/src/main/java/npanday/resolver/resolvers/PdbAssemblyResolver.java
+++ b/components/dotnet-executable/src/main/java/npanday/resolver/resolvers/PdbAssemblyResolver.java
@@ -96,7 +96,7 @@
                 throw new ArtifactNotFoundException(e.getMessage(), artifact);

             }

 

-            cache.put(artifact);

+            cache.put(pdbArtifact);

         }

         if (pdbArtifact.isResolved()){

             additionalDependenciesCollector.add(pdbArtifact);