bw-maven-plugin/src/main/java/fr/fastconnect/factory/tibco/bw/maven/compile/UpdateAliasesLibsMojo.java
public void processFile(File f) throws MojoExecutionException {
		try {
			RepositoryModel repositoryModel = new RepositoryModel(f);

			ArrayList<HashMap<String, Object>> aliases = readXMLBean(repositoryModel, f);

			// reset old references
			if (!keepOriginalAliasLib) {
				aliases.clear();
			}

			// adding the JAR dependencies
			for (Dependency dependency : jarDependencies) {
				addAlias(aliases, getJarAlias(dependency, false));
			}

			writeXMLBean(repositoryModel, f, aliases);
		} catch (Exception e) {
			throw new MojoExecutionException(e.getMessage(), e);
		}
	}
public void processFile(File f) throws MojoExecutionException {
		try {
			RepositoryModel repositoryModel = new RepositoryModel(f);

			ArrayList<HashMap<String, Object>> aliases = readXMLBean(repositoryModel, f);

			// reset old references
			if (!keepOriginalAliasLib) {
				aliases.clear();
			}

			// adding the JAR dependencies
			for (Dependency dependency : jarDependencies) {
				addAlias(aliases, getJarAlias(dependency, false));
			}

			writeXMLBean(repositoryModel, f, aliases);
		} catch (Exception e) {
			throw new MojoExecutionException(e.getMessage(), e);
		}
	}
This method adds the JAR aliases to a ".aliaslib" file

@param f, the ".aliaslib" file to update
@throws MojoExecutionException