org.ops4j.pax.exam.options.MavenUrlReference Java Examples
The following examples show how to use
org.ops4j.pax.exam.options.MavenUrlReference.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: AbstractKarafIntegrationTest.java From jbpm-work-items with Apache License 2.0 | 5 votes |
protected static String getKarafVersion() { String karafVersion = System.getProperty(PROP_KARAF_VERSION); if (karafVersion == null) { if (System.getProperty(PROP_KARAF_DISTRIBUTION_FILE) != null) { throw new RuntimeException("When you are running against custom container " + "it is necessary to define Karaf version by defining system property karaf.version."); } // set the Karaf version defined by Maven MavenUrlReference.VersionResolver versionResolver = MavenUtils.asInProject(); karafVersion = versionResolver.getVersion(KARAF_GROUP_ID, KARAF_ARTIFACT_ID); } return karafVersion; }
Example #2
Source File: SouthboundIT.java From ovsdb with Eclipse Public License 1.0 | 5 votes |
@Override public MavenUrlReference getFeatureRepo() { return maven() .groupId("org.opendaylight.ovsdb") .artifactId("southbound-features") .classifier("features") .type("xml") .versionAsInProject(); }
Example #3
Source File: HwvtepSouthboundIT.java From ovsdb with Eclipse Public License 1.0 | 5 votes |
@Override public MavenUrlReference getFeatureRepo() { return maven() .groupId("org.opendaylight.ovsdb") .artifactId("hwvtepsouthbound-features") .classifier("features") .type("xml") .versionAsInProject(); }
Example #4
Source File: LibraryIntegrationTestBase.java From ovsdb with Eclipse Public License 1.0 | 5 votes |
@Override public MavenUrlReference getFeatureRepo() { return maven() .groupId("org.opendaylight.ovsdb") .artifactId("library-features") .classifier("features") .type("xml") .versionAsInProject(); }
Example #5
Source File: NexusPaxExamSupport.java From nexus-public with Eclipse Public License 1.0 | 4 votes |
/** * @return Pax-Exam option to change the Nexus edition using the given feature XML and name */ public static Option nexusEdition(final MavenUrlReference featureXml, final String name) { return composite(features(featureXml), editConfigurationFilePut(NEXUS_PROPERTIES_FILE, "nexus-edition", name)); }
Example #6
Source File: NexusPaxExamSupport.java From nexus-public with Eclipse Public License 1.0 | 4 votes |
/** * @return Pax-Exam option to install a Nexus plugin from the given feature XML and name */ public static Option nexusFeature(final MavenUrlReference featureXml, final String name) { return composite(features(featureXml), editConfigurationFileExtend(NEXUS_PROPERTIES_FILE, "nexus-features", name)); }
Example #7
Source File: TestBase.java From Karaf-Cassandra with Apache License 2.0 | 4 votes |
private MavenUrlReference karafStandardFeature() { return maven().groupId("org.apache.karaf.features").artifactId("standard").type("xml").classifier("features") .version(asInProject()); }
Example #8
Source File: CarbonDistributionOption.java From carbon-kernel with Apache License 2.0 | 4 votes |
/** * Set the carbon distribution maven url and carbon runtime name options. * * @return an option to set the path to distribution. */ public static CarbonDistributionBaseOption carbonDistribution(MavenUrlReference mavenUrlReference, String runtimeName) { return new CarbonDistributionBaseOption().distributionMavenURL(mavenUrlReference) .carbonRuntimeName(runtimeName); }
Example #9
Source File: CarbonDistributionBaseOption.java From carbon-kernel with Apache License 2.0 | 4 votes |
public MavenUrlReference getDistributionMavenURL() { return distributionMavenURL; }
Example #10
Source File: CarbonDistributionOption.java From carbon-kernel with Apache License 2.0 | 2 votes |
/** * Set the carbon distribution maven url option. * * @return an option to set the path to distribution. */ public static CarbonDistributionBaseOption carbonDistribution(MavenUrlReference mavenUrlReference) { return new CarbonDistributionBaseOption().distributionMavenURL(mavenUrlReference); }