HK2Factory.initialize();
MavenProjectRepository repo = new MavenProjectRepository(
project, artifactResolver, localRepository, artifactFactory);
repo.initialize();
PackageAnalyser analyser = new PackageAnalyser(repo, logger);
Collection<PackageAnalyser.Wire> wires = analyser.analyseWirings();
StringBuilder sb = new StringBuilder("Wiring details are given below:\n");
for (PackageAnalyser.Wire w : wires) {
sb.append(w + "\n");
}
sb.append("Total number of wires = " + wires.size() + "\n");