for(org.apache.maven.artifact.Artifact artifact : project.getArtifacts()) {
if(artifact.getGroupId().equals(moduleGroupId)) {
DefaultArtifact aetherArtifact = new DefaultArtifact(artifact.getGroupId(),artifact.getArtifactId(), artifact.getType(), artifact.getVersion());
Dependency rootDependency = new Dependency(aetherArtifact, "runtime");
try {
CollectRequest collectRequest = new CollectRequest();
collectRequest.setRoot(rootDependency);
collectRequest.setRepositories(projectRepos);