Hi Harald Thanks for that!
If the testcase was intended to be a stand-alone test of published versions of Spring, I'd certainly exploit cacheing in the local Maven repository for efficiency. But we plan to integrate the testcase into the Spring build in due course ([1]) and so we'll want to grab the latest built version each time to cope with re-spins, so I'll avoid caching the Spring bundles for now. That certainly wasn't clear from the project, so I've added some text to the README. I have however adopted your suggestion for the EBR dependencies though as cacheing does make sense in that case. That also helps as I've blogged about the project ([2]) and it is now a more useful example for others. Regards, Glyn [1] https://jira.springsource.org/browse/SPR-8791 [2] http://underlap.blogspot.com/2011/12/osgi-testing-with-gradle-and-pax-exam.html On 8 Dec 2011, at 21:56, Harald Wellmann wrote: > 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 > [email protected] > http://lists.ops4j.org/mailman/listinfo/general _______________________________________________ general mailing list [email protected] http://lists.ops4j.org/mailman/listinfo/general
