public MavenArtifactUrlReference versionAsInProject() { return version(MavenUtils.asInProject()); }
public MavenArtifactUrlReference versionAsInProject() { return version(MavenUtils.asInProject()); }
public static String getKarafVersionAsInProject() { return MavenUtils.asInProject().getVersion(KARAF_GROUP_ID, KARAF_ARTIFACT_ID); }
/** * Set the project version as a Karaf system property * <p/> * This method assumes that the test-support bundle has the same * version as the code being tested */ public static SystemPropertyOption projectVersionAsSystemProperty() { String version = MavenUtils.asInProject() .getVersion("org.apache.provisionr", "provisionr-test-support"); return systemProperty("project.version").value(version); }
/** * Discovers the profile version out of the project. * To do so, the maven project should have a dependency on the profile and Pax Exam maven plugin configured to run * the "generate-depends-file" goal. * * @return itself, for fluent api usage */ public ProfileOption versionAsInProject() { return version( MavenUtils.asInProject().getVersion( "org.ops4j.pax.runner.profiles", getProfile() ) ); }
versionInProject = null; try { versionInProject = MavenUtils.asInProject().getVersion(groupId, artifactId); } catch (RuntimeException e) { logger.info("Can not find version of transitive dependency " + groupId + ":" + artifactId
public static Option paxJettyBundles() { return composite( mavenBundle().groupId("org.ops4j.pax.web") .artifactId("pax-web-jetty").version(asInProject()), mavenBundle().groupId("org.ops4j.pax.web") .artifactId("pax-web-runtime").version(asInProject()), mavenBundle().groupId("org.eclipse.jetty") .artifactId("jetty-util").version(asInProject()), mavenBundle().groupId("org.eclipse.jetty") .artifactId("jetty-io").version(asInProject()), mavenBundle().groupId("org.eclipse.jetty") .artifactId("jetty-http").version(asInProject()), mavenBundle().groupId("org.eclipse.jetty") .artifactId("jetty-continuation") .version(asInProject()), mavenBundle().groupId("org.eclipse.jetty") .artifactId("jetty-server").version(asInProject()), mavenBundle().groupId("org.eclipse.jetty") .artifactId("jetty-client").version(asInProject()), mavenBundle().groupId("org.eclipse.jetty") .artifactId("jetty-security").version(asInProject()), mavenBundle().groupId("org.eclipse.jetty") .artifactId("jetty-xml").version(asInProject()), mavenBundle().groupId("org.eclipse.jetty") .artifactId("jetty-servlet").version(asInProject())); }
if (versionAsInProject) try { version = MavenUtils.asInProject().getVersion(groupId, artifactId); } catch (Throwable e) { logger.error("Could not find version of " + groupId + ":" + artifactId + " in Maven project");
linkBundle("org.apache.xbean.finder"), mavenBundle().groupId("org.apache.xbean") .artifactId("xbean-reflect").version(asInProject()), mavenBundle("org.ow2.asm", "asm").versionAsInProject(), mavenBundle("org.ow2.asm", "asm-commons").versionAsInProject(), .type("jar") .classifier("uber") .version(asInProject()) .startLevel(2), workspaceBundle("org.ops4j.pax.web", "pax-web-jsp"), mavenBundle().groupId("org.eclipse.jdt.core.compiler") .artifactId("ecj").version(asInProject()), mavenBundle().groupId("javax.el").artifactId("javax.el-api").versionAsInProject()
.artifactId("javax.websocket-api").version(asInProject()), mavenBundle().groupId("org.ops4j.pax.web.itest") .artifactId("pax-web-itest-base").versionAsInProject(),
mavenBundle().groupId("javax.websocket").artifactId("javax.websocket-api").version(asInProject()), paxWebBundles(),