docs: private List copyDependencies( File javaDirectory )
          throws MojoExecutionException
      {
  
          ArtifactRepositoryLayout layout = new DefaultRepositoryLayout();
  
          List list = new ArrayList();
  
          File repoDirectory = new File(javaDirectory, "repo");
          repoDirectory.mkdirs();
  
          // First, copy the project's own artifact
          File artifactFile = project.getArtifact().getFile();
          list.add( repoDirectory.getName() +"/" +layout.pathOf(project.getArtifact()));
  
          try
          {
              FileUtils.copyFile( artifactFile, new File(repoDirectory, layout.pathOf(project.getArtifact())) );
          }
          catch ( IOException e )
          {
              throw new MojoExecutionException( "Could not copy artifact file " + artifactFile + " to " + javaDirectory );
          }
  
          Set artifacts = project.getArtifacts();
  
          Iterator i = artifacts.iterator();
  
          while ( i.hasNext() )
          {
              Artifact artifact = (Artifact) i.next();
  
              File file = artifact.getFile();
              File dest = new File(repoDirectory, layout.pathOf(artifact));
  
              getLog().debug( "Adding " + file );
  
              try
              {
                  FileUtils.copyFile( file, dest);
              }
              catch ( IOException e )
              {
                  throw new MojoExecutionException( "Error copying file " + file + " into " + javaDirectory, e );
              }
  
              list.add( repoDirectory.getName() +"/" + layout.pathOf(artifact) );
          }
  
          return list;
  
      }