List<Artifact> artifacts = artifactContext.getArtifactsFor( dependency.getGroupId(),
dependency.getArtifactId(),
dependency.getVersion(), dependency.getType() );
try
{
NetExecutable netExecutable = netExecutableFactory.getNetExecutableFor(
Vendor.MICROSOFT.getVendorName(), "2.0.50727", "GACUTIL", getGacInstallCommandsFor( artifacts.get(
0 ) ), null );
netExecutable.execute();
getLog().info( "NPANDAY-1600-004: Installed Assembly into GAC: Assembly = " + artifacts.get(
0 ).getFile().getAbsolutePath() + ", Vendor = " + netExecutable.getVendor().getVendorName() );
}
catch ( ExecutionException e )
{
throw new MojoExecutionException( "NPANDAY-1600-005: Unable to execute gacutil:", e );
}