private boolean pomUsesSwitchYardBOM() { final MavenProject project = _switchYardProject.getMavenProject(); DependencyManagement depMgmt = null; if (project != null && project.getOriginalModel() != null) { final Model originalModel = project.getOriginalModel(); depMgmt = originalModel.getDependencyManagement(); } else if (project != null && project.getModel() != null) { final Model originalModel = project.getOriginalModel(); depMgmt = originalModel.getDependencyManagement(); } if (depMgmt != null && !depMgmt.getDependencies().isEmpty()) { Iterator<Dependency> depIter = depMgmt.getDependencies().iterator(); while (depIter.hasNext()) { Dependency tempDep = depIter.next(); if (tempDep.getArtifactId().equals(M2EUtils.SWITCHYARD_BOM_ARTIFACT_ID)) { return true; // } else if (tempDep.getArtifactId().equals("fuse-integration-bom")) { // return true; } } } return false; }
private boolean pomDefinesKieVersion() { return _switchYardProject.getMavenProject().getProperties().containsKey(M2EUtils.KIE_VERSION); }
private boolean pomDefinesIntegrationVersion() { return _switchYardProject .getMavenProject() .getProperties() .containsKey(M2EUtils.INTEGRATION_VERSION); }