/** * 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 Option jsfBundlesWithDependencies() { return composite( // MyFaces mavenBundle("org.apache.myfaces.core", "myfaces-api").versionAsInProject(), mavenBundle("org.apache.myfaces.core", "myfaces-impl").versionAsInProject(), mavenBundle("javax.interceptor", "javax.interceptor-api").version("1.2"), mavenBundle("javax.enterprise", "cdi-api").version("1.2"), mavenBundle("javax.validation", "validation-api").version("1.1.0.Final"), // Commons mavenBundle("commons-io", "commons-io").version("1.4"), mavenBundle("commons-codec", "commons-codec").version("1.10"), mavenBundle("commons-beanutils", "commons-beanutils").version("1.8.3"), mavenBundle("commons-collections", "commons-collections").version("3.2.2"), mavenBundle("commons-digester", "commons-digester").version("1.8.1"), mavenBundle("org.apache.commons", "commons-lang3").version("3.4") ); }
/** * Sets the junit version. * * @param version * junit version. * * @return itself, for fluent api usage */ public JUnitBundlesOption version(final String version) { ((MavenArtifactProvisionOption) getDelegate()).version(version); return this; }
/** * Sets the easymock version. * * @param version easymock version. * * @return itself, for fluent api usage */ public EasyMockBundlesOption version( final String version ) { ( (MavenArtifactProvisionOption) getDelegate() ).version( version ); return this; }
/** * Sets the junit version. * * @param version junit version. * * @return itself, for fluent api usage */ public JUnitBundlesOption version( final String version ) { ( (MavenArtifactProvisionOption) getDelegate() ).version( version ); return this; }
/** * Sets the junit version. * * @param version * junit version. * * @return itself, for fluent api usage */ public JUnitBundlesOption version(final String version) { ((MavenArtifactProvisionOption) getDelegate()).version(version); return this; }
/** * 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 * @param version the version of the maven bundle * @return the provisioning option for the given bundle */ protected static MavenArtifactProvisionOption mavenBundle(String groupId, String artifactId, String version) { return CoreOptions.mavenBundle(groupId, artifactId).version(version); }
/** * 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 * @param version the version of the maven bundle * @return the provisioning option for the given bundle */ protected static MavenArtifactProvisionOption mavenBundle(String groupId, String artifactId, String version) { return CoreOptions.mavenBundle(groupId, artifactId).version(version); }
/** * 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 * @param version the version of the maven bundle * @return the provisioning option for the given bundle */ protected static MavenArtifactProvisionOption mavenBundle(String groupId, String artifactId, String version) { return CoreOptions.mavenBundle(groupId, artifactId).version(version); }
/** * Felix remote shell bundles * @return Composite option */ public static CompositeOption felixRemoteShellBundles() { final String gogoVersion = "0.10.0"; return new DefaultCompositeOption( mavenBundle().groupId("org.apache.felix").artifactId("org.apache.felix.gogo.runtime").version(gogoVersion), mavenBundle().groupId("org.apache.felix").artifactId("org.apache.felix.gogo.shell").version(gogoVersion), mavenBundle().groupId("org.apache.felix").artifactId("org.apache.felix.gogo.command").version(gogoVersion), mavenBundle().groupId("org.apache.felix").artifactId("org.apache.felix.shell.remote").version("1.1.2") ); }
/** * Convenience method (shorter) for adding a maven bundle based on groupId/artifactId/version. * * @param groupId * artifact group id * @param artifactId * artifact id * @param version * artifact version * * @return maven specific provisioning option */ public static MavenArtifactProvisionOption mavenBundle(final String groupId, final String artifactId, final String version) { return mavenBundle().groupId(groupId).artifactId(artifactId).version(version); }
/** * Convenience method (shorter) for adding a maven bundle based on groupId/artifactId/version. * * @param groupId * artifact group id * @param artifactId * artifact id * @param version * artifact version * * @return maven specific provisioning option */ public static MavenArtifactProvisionOption mavenBundle(final String groupId, final String artifactId, final String version) { return mavenBundle().groupId(groupId).artifactId(artifactId).version(version); }
/** * 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 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 UrlReference getCamelKarafFeatureUrl() { return mavenBundle(). groupId("org.apache.camel.karaf"). artifactId("apache-camel"). version(getCamelKarafFeatureVersion()). type("xml/features"); }
/** * Constructor. */ public EasyMockBundlesOption() { super( mavenBundle() .groupId( "org.easymock" ) .artifactId( "com.springsource.org.easymock" ) .version( "2.3.0" ) ); noUpdate(); startLevel( START_LEVEL_SYSTEM_BUNDLES ); }
/** * Constructor. */ public JUnitBundlesOption() { super( mavenBundle() .groupId( "org.junit" ) .artifactId( "com.springsource.org.junit" ) .version( "4.4.0" ) ); noUpdate(); startLevel( START_LEVEL_SYSTEM_BUNDLES ); }
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()); }