}
public void install(String coordinate, String file) throws InstallationException{
LocalRepositoryManager lrm = session.getLocalRepositoryManager();
Artifact artifact = new DefaultArtifact(coordinate);
File dstFile = new File( lrm.getRepository().getBasedir(), lrm.getPathForLocalArtifact( artifact ) );
if (!dstFile.exists() ){
artifact = artifact.setFile(new File(file));
InstallRequest request = new InstallRequest();
request.addArtifact(artifact);
installer.install(session, request);
}
}