throws IOException, NPandayArtifactResolutionException
{
//Check that the list of dependencies matches the first level RDF Repo
//If not, resolve missing dependencies and add to repo or delete additional dependencies from repo
Project project = new Project();
project.setGroupId( mavenProject.getGroupId() );
project.setArtifactId( mavenProject.getArtifactId() );
project.setVersion( mavenProject.getVersion() );
project.setArtifactType(
( mavenProject.getArtifact() != null ) ? mavenProject.getArtifact().getType() : "dotnet-library" );
project.setPublicKeyTokenId(
( mavenProject.getArtifact() != null ) ? mavenProject.getArtifact().getClassifier() : null );
for ( Dependency dependency : dependencies )
{
ProjectDependency projectDependency = new ProjectDependency();
projectDependency.setGroupId( dependency.getGroupId() );
projectDependency.setArtifactId( dependency.getArtifactId() );
projectDependency.setVersion( dependency.getVersion() );
projectDependency.setPublicKeyTokenId( dependency.getClassifier() );
projectDependency.setArtifactType( dependency.getType() );
projectDependency.setScope(dependency.getScope());
projectDependency.setSystemPath(dependency.getSystemPath());
project.addProjectDependency( projectDependency );
}
ProjectDao dao = (ProjectDao) daoRegistry.find( "dao:project" );
dao.init( artifactFactory, artifactResolver );
dao.openConnection();