List newEntries = new ArrayList(Arrays.asList(entries));
newEntries.add(newEntry);
entries = (IClasspathEntry[]) newEntries
.toArray(new IClasspathEntry[newEntries.size()]);
project.setRawClasspath(entries, project.getOutputLocation(), null);
ivycp.launchResolve(false, true, null);
} catch (JavaModelException e) {
IvyPlugin.log(e);
return false;
} catch (IOException e) {
IvyPlugin.log(IStatus.ERROR, "", e);