protected void addAllTransitiveJars(WarArchiveMerger wam) throws MojoExecutionException {
  DependencyCalculator dc=new DependencyCalculator(artifactFactory,resolver,localRepository,remoteRepositories,mavenProject,mavenProjectBuilder,installer,container);
  try {
    for (    File f : dc.execute()) {
      wam.addMergeItem(f);
    }
  }
 catch (  Exception ex) {
    throw new MojoExecutionException("Problem merging dependent JAR files",ex);
  }
}

protected void addAllTransitiveJars ( WarArchiveMerger wam ) throws MojoExecutionException { DependencyCalculator dc = new DependencyCalculator ( artifactFactory , resolver , localRepository , remoteRepositories , mavenProject , mavenProjectBuilder , installer , container ) ; try { for ( File f : dc . execute ( ) ) { wam . addMergeItem ( f ) ; } } catch ( Exception ex ) { throw new MojoExecutionException ( "Problem merging dependent JAR files" , ex ) ; } }
add all jar files into the war file , calculated transitively and resolved in the normal ' maven ' way ( i . e if 2 war files contain different versions , resolve to using only * 1 version ) .
