[jbosstools-commits] JBoss Tools SVN: r43987 - trunk/maven/plugins/org.jboss.tools.maven.conversion.ui/src/org/jboss/tools/maven/conversion/ui/internal/jobs.
jbosstools-commits at lists.jboss.org
jbosstools-commits at lists.jboss.org
Tue Sep 25 06:22:19 EDT 2012
Author: fbricon
Date: 2012-09-25 06:22:19 -0400 (Tue, 25 Sep 2012)
New Revision: 43987
Modified:
trunk/maven/plugins/org.jboss.tools.maven.conversion.ui/src/org/jboss/tools/maven/conversion/ui/internal/jobs/IdentificationJob.java
Log:
JBIDE-12707 : be quiet about unresolved dependencies
Modified: trunk/maven/plugins/org.jboss.tools.maven.conversion.ui/src/org/jboss/tools/maven/conversion/ui/internal/jobs/IdentificationJob.java
===================================================================
--- trunk/maven/plugins/org.jboss.tools.maven.conversion.ui/src/org/jboss/tools/maven/conversion/ui/internal/jobs/IdentificationJob.java 2012-09-25 10:00:13 UTC (rev 43986)
+++ trunk/maven/plugins/org.jboss.tools.maven.conversion.ui/src/org/jboss/tools/maven/conversion/ui/internal/jobs/IdentificationJob.java 2012-09-25 10:22:19 UTC (rev 43987)
@@ -94,6 +94,7 @@
if (monitor.isCanceled()) {
return;
}
+ resolvable = Boolean.FALSE;
String groupId = dependency.getGroupId();
String artifactId = dependency.getArtifactId();
String version = dependency.getVersion();
@@ -102,7 +103,12 @@
IMaven maven = MavenPlugin.getMaven();
List<ArtifactRepository> artifactRepositories = maven.getArtifactRepositories();
- Artifact a = maven.resolve(groupId , artifactId , version , type , classifier , artifactRepositories , monitor);
+ Artifact a = null;
+ try {
+ a = maven.resolve(groupId , artifactId , version , type , classifier , artifactRepositories , monitor);
+ } catch (CoreException e) {
+ //Expected
+ }
resolvable = (a != null && a.isResolved());
}
More information about the jbosstools-commits
mailing list