question: 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 ) ; } }
target:  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).