Re: What scope for maven dependencies for code used in pax exam test?

2017-10-15 Thread 'Christoph Läubrich' via OPS4J
It all depends of the mode you rune your tests (mebedded or forked) pax-exma is pulling nothing "in" or exposing anything to OSGi if you do not ask for it. You should also distinguisch between maven-depndencies declared in your pom and maven-urls declared in feature files. The first are neve

Re: What scope for maven dependencies for code used in pax exam test?

2017-10-15 Thread Steinar Bang
> Steinar Bang : [snip!] >> What I would like to do, is to add the dependencies in >> compile and let karaf-maven-plugin generate a feature >> file from the compile dependencies, and then use that feature file in >> the pax exam karaf config. [snip!] >> What I would like to do, is to add the d

Re: What scope for maven dependencies for code used in pax exam test?

2017-10-14 Thread Steinar Bang
> Steinar Bang : > What happens if I put the dependencies in compile? > Will this mess up the pax exam OSGi runtime startup? > What I would like to do, is to add the dependencies in > compile and let karaf-maven-plugin generate a feature > file from the compile dependencies, and then use that

What scope for maven dependencies for code used in pax exam test?

2017-10-14 Thread Steinar Bang
What scope should be used for maven dependencies for code used in pax exam tests? Should the compilation dependencies be done by using test and the runtime dependencies be handled by adding a bundle to the pax exam config? What happens if I put the dependencies in compile? Will this mess up the