Search in sources :

Example 1 with MavenProducerBase

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;
}
Also used : MavenProducerBase(org.jboss.galleon.universe.maven.MavenProducerBase) MavenUniverseInstaller(org.jboss.galleon.universe.maven.MavenUniverseInstaller) MavenArtifact(org.jboss.galleon.universe.maven.MavenArtifact)

Aggregations

MavenArtifact (org.jboss.galleon.universe.maven.MavenArtifact)1 MavenProducerBase (org.jboss.galleon.universe.maven.MavenProducerBase)1 MavenUniverseInstaller (org.jboss.galleon.universe.maven.MavenUniverseInstaller)1