Package org.ops4j.pax.exam.options

Examples of org.ops4j.pax.exam.options.MavenArtifactUrlReference


  private ServiceReference serviceReference;

  @Configuration
  public Option[] config() {
    MavenArtifactUrlReference karafUrl = maven()
        .groupId( "org.apache.karaf" )
        .artifactId( "apache-karaf" )
        .type( "tar.gz" )
        .versionAsInProject();
View Full Code Here


    @Configuration
    public Option[] getConfig() {

        String projectVersion = System.getProperty("project.version");
        String karafVersion = System.getProperty("karaf.version");
        MavenArtifactUrlReference karafUrl = maven().groupId("org.apache.karaf").artifactId("apache-karaf")
            .version(karafVersion).type("tar.gz");
        MavenUrlReference xkmsFeatures = maven().groupId("org.apache.cxf.services.xkms")
            .artifactId("cxf-services-xkms-features").version(projectVersion).type("xml");

        return new Option[] {
View Full Code Here

    String featuresVersion;

    @Configuration
    public static Option[] configuration() throws Exception {

        MavenArtifactUrlReference karafUrl = maven().groupId(DISTRIBUTION_GROUP_ID)
                .artifactId(DISTRIBUTION_ARTIFACT_ID)
                .versionAsInProject()
                .type("tar.gz");

        String jamesFeaturesVersion = MavenUtils.getArtifactVersion("org.apache.james.karaf", "james-karaf-features");
View Full Code Here

     * Creates a {@link org.ops4j.pax.exam.options.MavenArtifactUrlReference}.
     *
     * @return maven artifact url
     */
    public static MavenArtifactUrlReference maven() {
        return new MavenArtifactUrlReference();
    }
View Full Code Here

    @Inject
    protected Calculator calculator;

    @Configuration
    public Option[] config() {
        MavenArtifactUrlReference karafUrl = maven()
            .groupId("org.apache.karaf")
            .artifactId("apache-karaf")
            .version(karafVersion())
            .type("zip");
View Full Code Here

    @Test
    public void withBootClasspathMvn() throws BundleException, IOException,
        InterruptedException, NotBoundException, URISyntaxException {

        MavenArtifactUrlReference mvn = CoreOptions.maven(
            "org.kohsuke.metainf-services", "metainf-services", "1.2");
        startWithBootClasspath(mvn);
    }
View Full Code Here

      return new File(res.getFile());
    }

    @Configuration
    public Option[] config() {
        MavenArtifactUrlReference karafUrl = maven().groupId("org.apache.karaf").artifactId("apache-karaf").versionAsInProject().type("tar.gz");
        return new Option[]{
            // KarafDistributionOption.debugConfiguration("8889", true),
            karafDistributionConfiguration().frameworkUrl(karafUrl).name("Apache Karaf").unpackDirectory(new File("target/exam")),
            // enable JMX RBAC security, thanks to the KarafMBeanServerBuilder
            configureSecurity().enableKarafMBeanServerBuilder(),
View Full Code Here

    @Inject
    private BundleContext bundleContext;

    @Configuration
    public Option[] configuration() throws Exception {
        MavenArtifactUrlReference distributionUrl = maven().groupId("com.axemblr.provisionr")
            .artifactId("provisionr-assembly").versionAsInProject().type("tar.gz");

        return new Option[]{
            karafDistributionConfiguration()
                .frameworkUrl(distributionUrl)
View Full Code Here

     * Use the same Karaf version from the project for integration testing with Pax Exam
     */
    public static DefaultCompositeOption useDefaultKarafAsInProjectWithJunitBundles() {
        String karafVersion = getKarafVersionAsInProject();

        MavenArtifactUrlReference karafUrl = maven().groupId(KARAF_GROUP_ID)
            .artifactId(KARAF_ARTIFACT_ID)
            .version(karafVersion)
            .type("tar.gz");

        return new DefaultCompositeOption()
View Full Code Here

TOP

Related Classes of org.ops4j.pax.exam.options.MavenArtifactUrlReference

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.