@Configuration public Option[] config() { return options( junitBundles(), bundle("file:" + System.getProperty("caffeine.osgi.jar")), bundle("file:" + System.getProperty("caffeine-jcache.osgi.jar")), mavenBundle("com.typesafe", "config", System.getProperty("config.osgi.version")), mavenBundle("javax.cache", "cache-api", System.getProperty("jcache.osgi.version"))); }
@Configuration public Option[] config() { return options( junitBundles(), bundle("file:" + System.getProperty("caffeine.osgi.jar")), bundle("file:" + System.getProperty("caffeine-guava.osgi.jar")), mavenBundle("com.google.guava", "guava", System.getProperty("guava.osgi.version"))); }
/** * Base configuration for a Karaf container running the specified Ignite features. * * @return The configuration. */ public Option[] baseConfig() { return options( // Specify which version of Karaf to use. karafDistributionConfiguration() .frameworkUrl(maven().groupId("org.apache.karaf").artifactId("apache-karaf").type("tar.gz") .versionAsInProject()) .karafVersion(System.getProperty("karafVersion")) .useDeployFolder(false) .unpackDirectory(new File("target/paxexam/unpack")), // Add JUnit bundles. junitBundles(), // Add the additional JRE exports that Ignite requires. editConfigurationFileExtend("etc/jre.properties", "jre-1.7", "sun.nio.ch"), editConfigurationFileExtend("etc/jre.properties", "jre-1.8", "sun.nio.ch"), // Make log level INFO. logLevel(LogLevelOption.LogLevel.INFO), // Add our features repository. features(mavenBundle() .groupId("org.apache.ignite").artifactId("ignite-osgi-karaf") .version(System.getProperty("projectVersion")).type("xml/features"), featuresToInstall().toArray(new String[0])), // Propagate the projectVersion system property. systemProperty("projectVersion").value(System.getProperty("projectVersion")) ); }
public static CompositeOption slingBootstrapBundles() { return new DefaultCompositeOption( mavenBundle("org.apache.felix", "org.apache.felix.http.jetty", "2.2.0"), // TODO: why is this needed? mavenBundle("org.apache.sling", "org.apache.sling.launchpad.api", "1.1.0") ); }
public Option felixGogoShellOption() { return CoreOptions.composite( CoreOptions.mavenBundle("org.apache.felix", "org.apache.felix.gogo.runtime", "0.16.2"), // the shell causes ugly VM crashes in tests -> "the forked JVM terminated without properly saying goodbye" // CoreOptions.mavenBundle("org.apache.felix", "org.apache.felix.gogo.shell", "1.0.0"), CoreOptions.mavenBundle("org.apache.felix", "org.apache.felix.gogo.command", "0.16.0")); }
public Option felixGogoShellOption() { return CoreOptions.composite( CoreOptions.mavenBundle("org.apache.felix", "org.apache.felix.gogo.runtime", "1.0.4"), // the shell causes ugly VM crashes in tests -> "the forked JVM terminated without properly saying goodbye" // CoreOptions.mavenBundle("org.apache.felix", "org.apache.felix.gogo.shell", "1.0.0"), CoreOptions.mavenBundle("org.apache.felix", "org.apache.felix.gogo.command", "1.0.2")); }
public Option wicketGuiOption() { return CoreOptions.composite( CoreOptions.mavenBundle("org.apache.servicemix.bundles", "org.apache.servicemix.bundles.cglib", "2.2_2") .start(), CoreOptions.mavenBundle("org.apache.servicemix.bundles", "org.apache.servicemix.bundles.javax-inject", "1_1").start(), CoreOptions.mavenBundle("org.apache.wicket", "wicket-util", "6.23.0"), CoreOptions.mavenBundle("org.apache.wicket", "wicket-request", "6.23.0"), CoreOptions.mavenBundle("org.apache.wicket", "wicket-core", "6.23.0"), CoreOptions.mavenBundle("org.ogema.tools", "wicket-gui").version(ogemaVersion), CoreOptions.mavenBundle("org.ogema.tools", "wicket-gui-impl").version(ogemaVersion).start()); }
public Option wicketGuiOption() { return CoreOptions.composite( CoreOptions.mavenBundle("org.apache.servicemix.bundles", "org.apache.servicemix.bundles.cglib", "2.2_2") .start(), CoreOptions.mavenBundle("org.apache.servicemix.bundles", "org.apache.servicemix.bundles.javax-inject", "1_1").start(), CoreOptions.mavenBundle("org.apache.wicket", "wicket-util", "6.23.0"), CoreOptions.mavenBundle("org.apache.wicket", "wicket-request", "6.23.0"), CoreOptions.mavenBundle("org.apache.wicket", "wicket-core", "6.23.0"), CoreOptions.mavenBundle("org.ogema.tools", "wicket-gui").version(ogemaVersion), CoreOptions.mavenBundle("org.ogema.tools", "wicket-gui-impl").version(ogemaVersion).start()); }
/** * Create an provisioning option for the specified maven artifact * (groupId and artifactId), using the version found in the list * of dependencies of this maven project. * * @param groupId the groupId of the maven bundle * @param artifactId the artifactId of the maven bundle * @return the provisioning option for the given bundle */ public static MavenArtifactProvisionOption mavenBundle(String groupId, String artifactId) { return CoreOptions.mavenBundle(groupId, artifactId).versionAsInProject(); }
/** * Create an provisioning option for the specified maven artifact * (groupId and artifactId), using the version found in the list * of dependencies of this maven project. * * @param groupId the groupId of the maven bundle * @param artifactId the artifactId of the maven bundle * @return the provisioning option for the given bundle */ protected static MavenArtifactProvisionOption mavenBundle(String groupId, String artifactId) { return CoreOptions.mavenBundle(groupId, artifactId).versionAsInProject(); }
public static Option baseModelBundles() { return new DefaultCompositeOption( // mavenBundle(MDSAL+".model", "yang-ext").versionAsInProject(), mavenBundle(MDSAL_MODELS, "ietf-type-util").versionAsInProject(), mavenBundle(MDSAL_MODELS, "ietf-inet-types").versionAsInProject(), mavenBundle(MDSAL_MODELS, "ietf-yang-types").versionAsInProject(), mavenBundle(MDSAL_MODELS, "opendaylight-l2-types").versionAsInProject() ); }
public static Option protocolFrameworkBundles() { return new DefaultCompositeOption( mavenBundle("io.netty", "netty-common").versionAsInProject(), // mavenBundle("io.netty", "netty-buffer").versionAsInProject(), // mavenBundle("io.netty", "netty-handler").versionAsInProject(), // mavenBundle("io.netty", "netty-codec").versionAsInProject(), // mavenBundle("io.netty", "netty-transport").versionAsInProject(), // mavenBundle(CONTROLLER, "netty-config-api").versionAsInProject(), // mavenBundle(CONTROLLER, "protocol-framework").versionAsInProject() ); }
public Option ogemaWebFrontentOption() { return CoreOptions.composite( // CoreOptions.mavenBundle("de.twentyeleven.skysail", "org.json-osgi", "20080701"), // CoreOptions.mavenBundle("org.json", "json", "20160212"), CoreOptions.mavenBundle("commons-fileupload", "commons-fileupload", "1.3.1"), CoreOptions.mavenBundle("org.ogema.ref-impl", "framework-administration").version(ogemaVersion).start()); // CoreOptions.mavenBundle("commons-codec", "commons-codec").version("1.10").start()); }
public Option ogemaWebFrontentOption() { return CoreOptions.composite( CoreOptions.mavenBundle("commons-fileupload", "commons-fileupload", "1.3.3"), CoreOptions.mavenBundle("org.ogema.ref-impl", "framework-administration").version(ogemaVersion).start()); }
public static Option flowCapableModelBundles() { return new DefaultCompositeOption( // mavenBundle(CONTROLLER_MODELS, "model-inventory").versionAsInProject() // ); }
/** * @return option containing models for testing purposes */ public static Option salTestModelBundles() { return new DefaultCompositeOption( // mavenBundle(CONTROLLER, "sal-test-model").versionAsInProject() ); }
/** * Create an provisioning option for the specified maven artifact * (groupId and artifactId), using the version found in the list * of dependencies of this maven project. * * @param groupId the groupId of the maven bundle * @param artifactId the artifactId of the maven bundle * @return the provisioning option for the given bundle */ protected static MavenArtifactProvisionOption mavenBundle(String groupId, String artifactId) { return CoreOptions.mavenBundle(groupId, artifactId).versionAsInProject(); }
/** * For use in the actual test code, which runs in OSGi and has no normal access to the configuration options * @param groupId * @param artifactId * @return */ public static MavenArtifactProvisionOption mavenBundleInTest(ClassLoader loader, String groupId, String artifactId) { return CoreOptions.mavenBundle().groupId(groupId).artifactId(artifactId) .version(getArtifactVersion(loader, groupId, artifactId)); }
public static UrlReference getCamelKarafFeatureUrl() { return mavenBundle(). groupId("org.apache.camel.karaf"). artifactId("apache-camel"). version(getCamelKarafFeatureVersion()). type("xml/features"); }
public static UrlReference getArtemisMQKarafFeatureUrl() { String type = "xml/features"; UrlReference urlReference = mavenBundle().groupId("org.apache.activemq"). artifactId("artemis-features").versionAsInProject().type(type); LOG.info("FeatureURL: " + urlReference.getURL()); return urlReference; }