/** * @return Pax-Exam option to install a Nexus plugin based on groupId and artifactId */ public static Option nexusFeature(final String groupId, final String artifactId) { return nexusFeature(maven(groupId, artifactId).versionAsInProject().classifier("features").type("xml"), artifactId); }
/** * @return Pax-Exam option to change the Nexus edition based on groupId and artifactId */ public static Option nexusEdition(final String groupId, final String artifactId) { return nexusEdition(maven(groupId, artifactId).versionAsInProject().classifier("features").type("xml"), artifactId); }
/** * To test a different version set the 'it.nexus.bundle.version' system property.<br> * You can also override the 'groupId', 'artifactId', and 'classifier' the same way. * * @return Pax-Exam option to install a Nexus distribution based on groupId, artifactId and classifier */ public static Option nexusDistribution(final String groupId, final String artifactId, final String classifier) { return nexusDistribution(maven(groupId, artifactId).classifier(classifier).versionAsInProject().type("zip")); }
/** * Method to directly register Karaf standard features. * * @param features a list of features which should be loaded from the Karaf standard feature file. * @return a pax-exam option */ public static FeaturesScannerProvisionOption loadKarafStandardFeatures(String... features) { return scanFeatures( maven().groupId("org.apache.karaf.assemblies.features").artifactId("standard").type("xml") .classifier("features").versionAsInProject(), features); }
/** * Create an option to install the test support bundle inside the PAX Exam container */ public static FeaturesScannerProvisionOption installProvisionrTestSupportBundle() { return scanFeatures( maven().groupId("org.apache.provisionr").artifactId("provisionr-test-support") .type("xml").classifier("features").versionAsInProject(), "provisionr-test-support" ); }
/** * Method to directly register Karaf enterprise features. * * @param features a list of features which should be loaded from the Karaf enterprise feature file. * @return a pax-exam option */ public static FeaturesScannerProvisionOption loadKarafEnterpriseFeatures(String... features) { return scanFeatures( maven().groupId("org.apache.karaf.assemblies.features").artifactId("enterprise").type("xml") .classifier("features").versionAsInProject(), features); }
/** * Create an option to install all the requested Provisionr features inside the PAX Exam container */ public static FeaturesScannerProvisionOption installProvisionrFeatures(String... features) { return scanFeatures( maven().groupId("org.apache.provisionr").artifactId("provisionr-features") .type("xml").classifier("features").versionAsInProject(), features ); } }
private Option getKarafFeatureOptions() { return features( maven() .groupId("org.apache.karaf.features") .artifactId("standard") .version(DependencyVersionResolver.resolver()) .classifier("features") .type("xml"), "standard"); }
/** * Adds a new {@link Option} for the features listed and contained in the features.xml file * identified by the Maven coordinates provided. * * @param groupId Maven group ID of the features.xml file * @param artifactId Maven artifact ID of the features.xml file * @param featureNames names of the features to install from the features.xml file identified by * the Maven coordinates provided * @return this {@link FeatureOption} */ public FeatureOption addFeatures(String groupId, String artifactId, String... featureNames) { options = composite( options, features( maven(groupId, artifactId) .version(DependencyVersionResolver.resolver()) .classifier("features") .type("xml"), featureNames)); return this; }
/** * Adds a new {@link Option} for the feature contained in the feature file identified by the * Maven coordinates and file name provided. * * @param groupId Maven group ID of the feature file * @param artifactId Maven artifact ID of the feature file * @param featureFileName name of the feature file without the extension * @param featureName names of the features to install from the feature file identified by the * Maven coordinates and file name provided * @return this {@link FeatureOption} */ public FeatureOption addFeatureFrom( String groupId, String artifactId, String featureFileName, String featureName) { options = composite( options, features( maven(groupId, artifactId) .version(DependencyVersionResolver.resolver()) .classifier(featureFileName) .type("xml"), featureName)); return this; }
.groupId( "org.apache.karaf.features" ) .artifactId( "standard" ) .classifier( "features" ) .type( "xml" ) .versionAsInProject(); .groupId( "org.hibernate" ) .artifactId( "hibernate-osgi" ) .classifier( "karaf" ) .type( "xml" ) .versionAsInProject(); .groupId( "org.hibernate" ) .artifactId( "hibernate-search-integrationtest-osgi-features" ) .classifier( "features" ) .type( "xml" ) .versionAsInProject();
@Configuration public Option[] config() throws Exception { return new Option[] { KarafDistributionOption .karafDistributionConfiguration() .unpackDirectory(new File("target/pax")) .frameworkUrl( maven().groupId("org.apache.karaf").artifactId("apache-karaf").type("tar.gz") .version(KARAF_VERSION)).karafVersion(KARAF_VERSION), KarafDistributionOption.features(maven().groupId("org.infinispan").artifactId("infinispan-remote") .type("xml").classifier("features").versionAsInProject(), "infinispan-remote"), KarafDistributionOption.features(new RawUrlReference("file:///" + RESOURCES_DIR.replace("\\", "/") + "/test-features.xml"), "query-sample-domain"), KarafDistributionOption.editConfigurationFileExtend("etc/jre.properties", "jre-1.7", "sun.misc"), KarafDistributionOption.editConfigurationFileExtend("etc/jre.properties", "jre-1.6", "sun.misc"), KarafDistributionOption.keepRuntimeFolder(), localRepoForPAXUrl() }; }
.versionAsInProject().classifier("features").type("xml"), "scr"), features(maven().groupId("org.apache.activemq").artifactId("activemq-karaf") .version(activemqVersion).classifier("features").type("xml")), features(maven().groupId("org.apache.jena").artifactId("jena-osgi-features") .version(jenaVersion).classifier("features").type("xml")), .version(springFeatureVersion).classifier("features").type("xml"), "spring"), features(maven().groupId("org.trellisldp").artifactId("trellis-karaf") .type("xml").classifier("features").versionAsInProject(), "trellis-io-jena"),