bw-maven-plugin/src/main/java/fr/fastconnect/factory/tibco/bw/maven/compile/IncludeDependenciesInEARMojo.java
private void copyRuntimeJARsInEAR(File ear) throws IOException, JDOMException {
		Fileset fileSet = new Fileset();
		fileSet.setDirectory(buildLibDirectory.getAbsolutePath());

		for (Dependency dependency : this.getJarDependencies()) {
			String jarName = getJarName(dependency, false);
			
			fileSet.addInclude(jarName); // using jarName because files are all in buildLibDirectory
		}
		
		String ouptutDirectory = ear.getAbsolutePath() + File.separator + "lib.zip" + File.separator + "WEB-INF" + File.separator + "lib";
        fileSet.setOutputDirectory(ouptutDirectory);        
        
        if (fileSet.getIncludes() != null && !fileSet.getIncludes().isEmpty()) {
        	truezip.copy(fileSet);
        }
		truezip.sync();
		
		if (removeVersionFromFileNames) {
			removeVersionFromFileNames(ouptutDirectory, ear);

			truezip.sync();
		}
	}
private void copyRuntimeJARsInEAR(File ear) throws IOException, JDOMException {
		Fileset fileSet = new Fileset();
		fileSet.setDirectory(buildLibDirectory.getAbsolutePath());

		for (Dependency dependency : this.getJarDependencies()) {
			String jarName = getJarName(dependency, false);
			
			fileSet.addInclude(jarName); // using jarName because files are all in buildLibDirectory
		}
		
		String ouptutDirectory = ear.getAbsolutePath() + File.separator + "lib.zip" + File.separator + "WEB-INF" + File.separator + "lib";
        fileSet.setOutputDirectory(ouptutDirectory);        
        
        if (fileSet.getIncludes() != null && !fileSet.getIncludes().isEmpty()) {
        	truezip.copy(fileSet);
        }
		truezip.sync();
		
		if (removeVersionFromFileNames) {
			removeVersionFromFileNames(ouptutDirectory, ear);

			truezip.sync();
		}
	}
<p>
This methods copies the transitive JAR dependencies of the project inside
the "WEB-INF/lib" folder of the "lib.zip" subarchive of the TIBCO
BusinessWorks EAR archive.
</p>

@param ear, the TIBCO BusinessWorks EAR archive file
@throws IOException
@throws JDOMException
@throws JaxenException