On a side note, you could speed up your test significantly by using mvn:
URLs instead of raw http:
Your
provisionSpringBundle("spring-core")
expands to
bundle("http://maven.springframework.org/milestone/org/springframework/spring-core/3.1.0.RC2/spring-core-3.1.0.RC2.jar")
which means that all your bundles get downloaded via http every time you
run your test.
If you replace this by
bundle("mvn:http://maven.springframework.org/milestone!org.springframework/spring-core/3.1.0.RC2")
Pax Exam will use the mvn: protocol handler from Pax URL and resolve the
URL via the usual Maven mechanisms. The bundles will be downloaded just
once to your local repository.
See http://team.ops4j.org/wiki/display/paxurl/Mvn+Protocol for details.
This will work once you add org.ops4j.pax.url:pax-url-aether:1.3.5 to
your project dependencies.
For bundles from Maven Central, you can simply write
bundle("mvn:org.springframework/spring-core/3.0.6.RELEASE")
or
mavenBundle("org.springframework", "spring-core", "3.0.6.RELEASE")
Regards,
Harald
_______________________________________________
general mailing list
general@lists.ops4j.org
http://lists.ops4j.org/mailman/listinfo/general