241242243244245246247248249250251
builder = getContainer().lookup(ProjectBuilder.class); } catch (Exception e) { throw new ProjectModelException( "Could not initialize Maven", e); } finally { /*
237238239240241242243244
} return result; } catch (Exception e) { throw new ProjectModelException("Unable to resolve an artifact", e); } }
279280281282283284285286
return new DependencyMetadataImpl(d, results); } catch (Exception e) { throw new ProjectModelException("Unable to resolve any artifacts for query [" + query + "]", e); } }
386387388389390391392393
VersionRangeResult rangeResult = maven.resolveVersionRange(session, rangeRequest); return rangeResult; } catch (Exception e) { throw new ProjectModelException("Failed to look up versions for [" + dep + "]", e); } }
331332333334335336337338339
fireResourceModified(); } catch (IOException e) { throw new ProjectModelException(e); } return (T) this; }
356357358359360361362363
} return false; } catch (IOException e) { throw new ProjectModelException(e); } }
374375376377378379380381
fireTempResourceCreated(result); return result; } catch (IOException e) { throw new ProjectModelException(e); } }
135136137138139140141142
tempFile.delete(); return createFrom(tempFile); } catch (IOException e) { throw new ProjectModelException(e); } }
187188189190191192193194195196197
javaSourcePlugin.setConfiguration(dom); } catch (Exception e) { throw new ProjectModelException(e); } } build.addPlugin(javaSourcePlugin); pom.setBuild(build);
294295296297298299300301302303304
System.out.println("Wrote " + getFullyQualifiedName()); } catch (IOException e) { throw new ProjectModelException(e); } finally { if (temp != null) {