use of org.jboss.galleon.universe.maven.MavenProducerBase in project galleon by wildfly.
the class MvnUniverse method install.
public MavenArtifact install() throws ProvisioningException {
final MavenArtifact universeArtifact = new MavenArtifact().setGroupId(TestConstants.GROUP_ID).setArtifactId(name).setVersion("1.0.0.Final");
final MavenUniverseInstaller installer = new MavenUniverseInstaller(repoManager, universeArtifact);
for (MavenProducerBase p : producers) {
installer.addProducer(p.getName(), p.getArtifact().setPath(null).setVersionRange("[1.0,)"));
}
installer.install();
return universeArtifact;
}
Aggregations