Aruna Karunarathna
Aruna Karunarathna

Reputation: 1021

Pax-Exam How to install bundles to container

How to install bundles to the Pax-Exam container from the local m2 repository?..

I was able to install from giving a file URL.

@Configuration
public Option[] config() {

    return options(
                  bundle("file:///home/sample/Desktop/sample.jar"),
                  junitBundles()
    );

But thats not scalable solution. So how can I tell the Pax-Exam to install bundles from the local m2 repository?.

Upvotes: 0

Views: 635

Answers (2)

Christian Schneider
Christian Schneider

Reputation: 19606

Pax exam has a confiuration option mavenBundle that will help with this. It also supports to use the version from the pom. So you do not need it in the java source.

See Configuration using Maven Plugin

Upvotes: 2

Aruna Karunarathna
Aruna Karunarathna

Reputation: 1021

Found the answer. Sorry for the noise.

bundle("mvn:org.sample.bundle/bundle-id/version")

https://ops4j1.jira.com/wiki/display/paxurl/Mvn+Protocol#MvnProtocol-local

Upvotes: 1

Related Questions