@SuppressWarnings("rawtypes")
	public static boolean modifyPomVersion(String dirPath, String versionNo) {
		if (dirPath.indexOf(versionNo) > -1) {
			return false;
		}
		String pomXML = dirPath + File.separator + "pom.xml";
		SAXReader saxReader = new SAXReader();
		Document document = null;
		try {
			document = saxReader.read(pomXML);
		} catch (DocumentException e) {
			e.printStackTrace();
		}
		
		if (null != document) {
			boolean isWrite = false;
			List list = document.selectNodes("//project");
			Iterator iter = list.iterator();
			while (iter.hasNext()) {
				Element element = (Element)iter.next();
				Iterator iterator = element.elementIterator("version");
				while (iterator.hasNext()) {
					Element versionElement = (Element)iterator.next();
					if (!versionElement.getText().equals(versionNo)) {
						versionElement.setText(versionNo);
						isWrite = true;
					}
				}
			}
			
			if (isWrite) {
				XMLWriter output;
				try {
					output = new XMLWriter(new FileWriter(new File(pomXML)));
					output.write(document);
					output.close();
				} catch (IOException e) {
					e.printStackTrace();
				}
				return true;
			}
		}
		return false;
	}