Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIgor Fedorenko2013-04-06 16:29:37 -0400
committerIgor Fedorenko2013-04-09 23:04:05 -0400
commite785c92f39db302625921db7476aefaa1073fbaf (patch)
tree88647389f02b41cb6a8ba4fc68f233809ce456b9
parent15d8af596ac2c6b2cc6c25e183ae33b91af07aeb (diff)
downloadm2e-core-e785c92f39db302625921db7476aefaa1073fbaf.tar.gz
m2e-core-e785c92f39db302625921db7476aefaa1073fbaf.tar.xz
m2e-core-e785c92f39db302625921db7476aefaa1073fbaf.zip
405087 use correct MavenMetadataCache when flushing project caches
Signed-off-by: Igor Fedorenko <igor@ifedorenko.com>
-rw-r--r--m2e-maven-runtime/org.eclipse.m2e.maven.runtime/pom.xml1
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/project/EclipseMavenMetadataCache.java3
2 files changed, 4 insertions, 0 deletions
diff --git a/m2e-maven-runtime/org.eclipse.m2e.maven.runtime/pom.xml b/m2e-maven-runtime/org.eclipse.m2e.maven.runtime/pom.xml
index 0789ccca..3984c00b 100644
--- a/m2e-maven-runtime/org.eclipse.m2e.maven.runtime/pom.xml
+++ b/m2e-maven-runtime/org.eclipse.m2e.maven.runtime/pom.xml
@@ -193,6 +193,7 @@
org.sonatype.plexus.*,
org.sonatype.aether.*,
com.google.inject.*,
+ javax.inject.*,
org.sonatype.maven.wagon.*,
</_exportcontents>
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/project/EclipseMavenMetadataCache.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/project/EclipseMavenMetadataCache.java
index c46dacf7..3abaf83a 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/project/EclipseMavenMetadataCache.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/project/EclipseMavenMetadataCache.java
@@ -15,6 +15,8 @@ import java.util.Iterator;
import java.util.List;
import java.util.Map.Entry;
+import javax.inject.Singleton;
+
import org.eclipse.core.resources.IFile;
import org.apache.maven.artifact.Artifact;
@@ -31,6 +33,7 @@ import org.eclipse.m2e.core.embedder.ArtifactKey;
*
* @author igor
*/
+@Singleton
public class EclipseMavenMetadataCache extends DefaultMavenMetadataCache implements MavenMetadataCache, IManagedCache {
public void put(Artifact artifact, boolean resolveManagedVersions, ArtifactRepository localRepository,

Back to the top