use of org.jboss.galleon.universe.maven.MavenArtifact in project galleon by wildfly.
the class FpDepPluginVersionOverrideTestCase method createFeaturePacks.
@Override
protected void createFeaturePacks(FeaturePackCreator creator) throws ProvisioningException {
final MavenArtifact fp1Plugin = installPluginArtifact(new MavenArtifact().setGroupId("org.jboss.galleon.plugin.test").setArtifactId("fp1-plugin").setVersion("1"), Fp1Plugin1.class);
final MavenArtifact plugin1 = installPluginArtifact(new MavenArtifact().setGroupId("org.jboss.galleon.plugin.test").setArtifactId("test-plugin").setVersion("1"), TestPlugin1.class);
final MavenArtifact plugin2 = installPluginArtifact(new MavenArtifact().setGroupId("org.jboss.galleon.plugin.test").setArtifactId("test-plugin").setVersion("2"), TestPlugin2.class);
fp1 = newFpl("prod1", "1", "1.0.0.Final");
creator.newFeaturePack(fp1.getFPID()).addPlugin("test-plugin", plugin1.getCoordsAsString()).addPlugin("fp1-plugin", fp1Plugin.getCoordsAsString());
fp2 = newFpl("prod2", "1", "1.0.0.Final");
creator.newFeaturePack(fp2.getFPID()).addDependency(fp1).addPlugin("test-plugin", plugin2.getCoordsAsString());
}
use of org.jboss.galleon.universe.maven.MavenArtifact in project galleon by wildfly.
the class FpListPluginVersionOverrideTestCase method createFeaturePacks.
@Override
protected void createFeaturePacks(FeaturePackCreator creator) throws ProvisioningException {
final MavenArtifact fp1Plugin = installPluginArtifact(new MavenArtifact().setGroupId("org.jboss.galleon.plugin.test").setArtifactId("fp1-plugin").setVersion("1"), Fp1Plugin1.class);
final MavenArtifact plugin1 = installPluginArtifact(new MavenArtifact().setGroupId("org.jboss.galleon.plugin.test").setArtifactId("test-plugin").setVersion("1"), TestPlugin1.class);
final MavenArtifact plugin2 = installPluginArtifact(new MavenArtifact().setGroupId("org.jboss.galleon.plugin.test").setArtifactId("test-plugin").setVersion("2"), TestPlugin2.class);
fp1 = newFpl("prod1", "1", "1.0.0.Final");
creator.newFeaturePack(fp1.getFPID()).addPlugin("test-plugin", plugin1.getCoordsAsString()).addPlugin("fp1-plugin", fp1Plugin.getCoordsAsString());
fp2 = newFpl("prod2", "1", "1.0.0.Final");
creator.newFeaturePack(fp2.getFPID()).addPlugin("test-plugin", plugin2.getCoordsAsString());
}
use of org.jboss.galleon.universe.maven.MavenArtifact in project galleon by wildfly.
the class SimplePluginPatchTestCase method createFeaturePacks.
@Override
protected void createFeaturePacks(FeaturePackCreator creator) throws ProvisioningException {
final MavenArtifact fp1Plugin = installPluginArtifact(new MavenArtifact().setGroupId("org.jboss.galleon.plugin.test").setArtifactId("fp1-plugin").setVersion("1"), Fp1Plugin1.class);
final MavenArtifact plugin1 = installPluginArtifact(new MavenArtifact().setGroupId("org.jboss.galleon.plugin.test").setArtifactId("test-plugin").setVersion("1"), TestPlugin1.class);
final MavenArtifact plugin2 = installPluginArtifact(new MavenArtifact().setGroupId("org.jboss.galleon.plugin.test").setArtifactId("test-plugin").setVersion("2"), TestPlugin2.class);
fp1 = newFpl("prod1", "1", "1.0.0.Final");
creator.newFeaturePack(fp1.getFPID()).addPlugin("test-plugin", plugin1.getCoordsAsString()).addPlugin("fp1-plugin", fp1Plugin.getCoordsAsString());
fp1Patch1 = newFpl("prod1", "1", "1.0.0.Patch1.Final");
creator.newFeaturePack(fp1Patch1.getFPID()).setPatchFor(fp1.getFPID()).addPlugin("test-plugin", plugin2.getCoordsAsString());
}
use of org.jboss.galleon.universe.maven.MavenArtifact in project galleon by wildfly.
the class MavenProducerInstallTestCase method doInit.
@Override
protected void doInit() {
producerArtifact = new MavenArtifact();
producerArtifact.setGroupId(GROUP_ID);
producerArtifact.setArtifactId("test-producer");
producerArtifact.setVersion("1.0.0.Final");
}
use of org.jboss.galleon.universe.maven.MavenArtifact in project galleon by wildfly.
the class MavenUniverseInstallTestCase method doInit.
@Override
protected void doInit() throws Exception {
universeArtifact = new MavenArtifact();
universeArtifact.setGroupId(GROUP_ID);
universeArtifact.setArtifactId("test-universe");
universeArtifact.setVersion("1.0.0.Final");
MavenArtifact artifact = new MavenArtifact();
artifact.setGroupId(GROUP_ID);
artifact.setArtifactId("producer1");
artifact.setVersion("1.0.0.Final");
MavenProducerInstaller producerInstaller = new MavenProducerInstaller("producer1", repo, artifact);
producerInstaller.addFrequencies("alpha", "beta");
producerInstaller.install();
artifact = new MavenArtifact();
artifact.setGroupId(GROUP_ID);
artifact.setArtifactId("producer2");
artifact.setVersion("3.0.0.Final");
producerInstaller = new MavenProducerInstaller("producer2", repo, artifact);
producerInstaller.addFrequencies("alpha", "beta");
producerInstaller.install();
}
Aggregations