--- org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/index/nexus/NexusIndexManager.java.orig 2013-08-21 22:40:34.509604755 +0100
+++ org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/index/nexus/NexusIndexManager.java 2013-08-21 22:55:01.052976833 +0100
@@ -69,7 +69,6 @@
import org.apache.maven.index.NexusIndexer;
import org.apache.maven.index.SearchType;
import org.apache.maven.index.artifact.Gav;
-import org.apache.maven.index.artifact.IllegalArtifactCoordinateException;
import org.apache.maven.index.context.IndexCreator;
import org.apache.maven.index.context.IndexingContext;
import org.apache.maven.index.creator.JarFileContentsIndexCreator;
@@ -640,13 +639,13 @@
ai.packaging = facade.getPackaging();
File pomFile = facade.getPomFile();
File artifactFile = (pomFile != null) ? pomFile.getParentFile() : null;
- try {
+ //try {
Gav gav = new Gav(key.getGroupId(), key.getArtifactId(), key.getVersion());
return new ArtifactContext(pomFile, artifactFile, null, ai, gav);
- } catch(IllegalArtifactCoordinateException ex) {
- throw new CoreException(new Status(IStatus.ERROR, IMavenConstants.PLUGIN_ID, -1,
- Messages.NexusIndexManager_error_unexpected, ex));
- }
+ //} catch(IllegalArtifactCoordinateException ex) {
+ // throw new CoreException(new Status(IStatus.ERROR, IMavenConstants.PLUGIN_ID, -1,
+ // Messages.NexusIndexManager_error_unexpected, ex));
+ //}
}
protected void scheduleIndexUpdate(final IRepository repository, final boolean force) {
@@ -1319,3 +1318,9 @@
}
}
}
+
+class IllegalArtifactCoordinateException extends Exception {
+ public IllegalArtifactCoordinateException(String message) {
+ super(message);
+ }
+}