/** * @return Pax-Exam option to install custom invoker factory that waits for Nexus to start */ private static Option nexusPaxExam() { final String version = MavenUtils.getArtifactVersion("org.sonatype.nexus", "nexus-pax-exam"); Option result = mavenBundle("org.sonatype.nexus", "nexus-pax-exam", version).startLevel(0); final File nexusPaxExam = resolveBaseFile("target/nexus-pax-exam-" + version + ".jar"); if (nexusPaxExam.isFile()) { // when freshly built bundle of 'nexus-pax-exam' is available, copy it over to distribution's system repository final String systemPath = "system/org/sonatype/nexus/nexus-pax-exam/" + version + "/" + nexusPaxExam.getName(); result = composite(replaceConfigurationFile(systemPath, nexusPaxExam), result); } return result; } }
opt.noStart(); opt.startLevel(Integer.parseInt(value)); options.add(opt);
opt.noStart(); opt.startLevel(Integer.parseInt(value)); options.add(opt);
result.add(mavenBundle(b.getGroupId(), b.getArtifactId(), b.getVersion())); } else { result.add(mavenBundle(b.getGroupId(), b.getArtifactId(), b.getVersion()).startLevel(startLevel));
bundle.version(version); if (startLevel > 0) { bundle.startLevel(startLevel);
/** * Return the options required by this container implementation. * * @return local options */ private Option[] localOptions() { return new Option[] { // remote bundle context bundle mavenBundle().groupId( "org.ops4j.pax.exam" ).artifactId( "pax-exam-container-rbc" ).version( Info.getPaxExamVersion() ).update( Info.isPaxExamSnapshotVersion() ).startLevel( START_LEVEL_SYSTEM_BUNDLES ), // rmi communication port systemProperty( Constants.RMI_PORT_PROPERTY ).value( m_remoteBundleContextClient.getRmiPort().toString() ), // boot delegation for sun.*. This seems only necessary in Knopflerfish version > 2.0.0 bootDelegationPackage( "sun.*" ) }; }
.version( Info.getPaxExamVersion() ) .update( Info.isPaxExamSnapshotVersion() ) .startLevel( START_LEVEL_SYSTEM_BUNDLES ), mavenBundle() .groupId( "org.ops4j.pax.exam" ) .version( Info.getPaxExamVersion() ) .update( Info.isPaxExamSnapshotVersion() ) .startLevel( START_LEVEL_SYSTEM_BUNDLES ), mavenBundle() .groupId( "org.ops4j.pax.exam" ) .version( Info.getPaxExamVersion() ) .update( Info.isPaxExamSnapshotVersion() ) .startLevel( START_LEVEL_SYSTEM_BUNDLES ) );
public Option[] frameworkBundles() { return new Option[] { CoreOptions.mavenBundle("org.apache.felix", "org.apache.felix.framework.security", "2.6.0").start(), CoreOptions.mavenBundle("org.ogema.ref-impl", "permission-admin").version(ogemaVersion).startLevel(1) .start(), CoreOptions.mavenBundle("org.ogema.core", "models").version(ogemaVersion).startLevel(1).start(), CoreOptions.mavenBundle("org.ogema.core", "api").version(ogemaVersion).startLevel(1).start(), CoreOptions.mavenBundle("org.ogema.tools", "memory-timeseries").version(ogemaVersion).start(), CoreOptions.mavenBundle("org.ogema.ref-impl", "administration").version(ogemaVersion).start(), CoreOptions.mavenBundle("org.ogema.ref-impl", "resource-manager").version(ogemaVersion).start(), CoreOptions.mavenBundle("org.ogema.ref-impl", "resource-access-advanced").version(ogemaVersion).start(), CoreOptions.mavenBundle("org.ogema.ref-impl", "security").version(ogemaVersion).startLevel(4).start(), CoreOptions.mavenBundle("org.ogema.ref-impl", "ogema-security-manager").version(ogemaVersion).startLevel(4).start(), CoreOptions.mavenBundle("org.ogema.ref-impl", "persistence").version(ogemaVersion).start(), CoreOptions.mavenBundle("org.ogema.ref-impl", "channel-manager").version(ogemaVersion).start(),
public Option[] frameworkBundles() { return new Option[] { CoreOptions.mavenBundle("org.apache.felix", "org.apache.felix.framework.security", "2.6.0").start(), CoreOptions.mavenBundle("org.ogema.ref-impl", "permission-admin").version(ogemaVersion).startLevel(1) .start(), CoreOptions.mavenBundle("org.ogema.core", "models").version(ogemaVersion).startLevel(1).start(), CoreOptions.mavenBundle("org.ogema.core", "api").version(ogemaVersion).startLevel(1).start(), CoreOptions.mavenBundle("org.ogema.tools", "memory-timeseries").version(ogemaVersion).start(), CoreOptions.mavenBundle("org.ogema.ref-impl", "administration").version(ogemaVersion).start(), CoreOptions.mavenBundle("org.ogema.ref-impl", "resource-manager").version(ogemaVersion).start(), CoreOptions.mavenBundle("org.ogema.ref-impl", "resource-access-advanced").version(ogemaVersion).start(), CoreOptions.mavenBundle("org.ogema.ref-impl", "security").version(ogemaVersion).startLevel(4).start(), CoreOptions.mavenBundle("org.ogema.ref-impl", "ogema-security-manager").version(ogemaVersion).startLevel(4).start(), CoreOptions.mavenBundle("org.ogema.ref-impl", "persistence").version(ogemaVersion).start(), CoreOptions.mavenBundle("org.ogema.ref-impl", "channel-manager").version(ogemaVersion).start(),
.classifier("uber") .version(asInProject()) .startLevel(2),