code: void install(final File file, final Artifact artifact, final ArtifactRepository repo) 
              throws MojoExecutionException {
          File destFile = new File(repo.getBasedir() + File.separator
              + repo.getLayout().pathOf(artifact));
          destFile.getParentFile().mkdirs();
          try {
              FileUtils.copyFile(file, destFile);
          } catch (IOException e) {
              throw new MojoExecutionException(e.getMessage(), e);
          }
      }
docs: The actual copy.
  
  @param file The actual file packaged by the Maven project
  @param artifact The artifact to be installed
  @param repo The Ceylon repository to install to
  @throws MojoExecutionException In case of IO error