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 ) ; } }
The actual copy .